Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Any idea on a first game idea?

Author
Message
cloneboy
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Ontario, Canada
Posted: 28th Aug 2005 23:18
Yes, I am aware that Pong and Tetris are always good choices, but I'd like to learn to actually use models and so on. I've had darkBASIC for well over a couple of years and I still can't figure it out. I'm just now really trying hard to learn. I am 15, and I'm trying to get Matedit, but my Dad doesn't like me downloading anything.so I'm stuck without a matrix editor, or a model / character creator. (Also, I REALLY have no idea about Artificial Intelligence.
Ooska
20
Years of Service
User Offline
Joined: 29th Aug 2004
Location:
Posted: 29th Aug 2005 06:14
Ill tell ya what i did for my first game.
Theres a sprite. You can move it around. Whenever he moves, you lose energy. When the sprite hits sprite 2 his energy is replenished.

Maybe even make some lava thatll kill you if you touch it.

And as for the A.I. I have no idea either. (also a beginner)

Weird = Unique. Unique = Human.
Im human.
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 29th Aug 2005 06:50
So, you can't download models or model creators, but you'd like to make some kind of game with models involved. Hmm. Tricky.

If you're not adverse to using the dark basic object creation commands, there are lots of things you can do with just placeholder objects until you can eventually get extra models.

For example - you could try to make a spaceship game using a cone or a cube (or a collection of objects, attached as limbs) as a ship. Maybe you could make a little game with a single area of space that you can shoot asteroids in (see RiiDii's asteroid creating code in Snippets, under 'Useful Functions') and pick up minerals from (floating coloured cubes?). You could then sell them at space stations (floating cylinders?)

If you can get that working, you could then slowly work on having pirate spaceships that attack you. Sure, AI is hard, but to begin with, just have them floating in space, and when you get close they turn towards you and shoot. Then, when you're a bit more confident, you can have them move.

And then you'll have the basics of a space-trading-combat game. If you ever do get models, you can just plug them in and it'll look even better. Remember - graphics do not make the game!
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 29th Aug 2005 08:18
3D maze game built entirely out of plains?
or is that too boring?

...maybe one day I'll finish a project
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 29th Aug 2005 11:00
Darkbasic comes with models. Use Windows Explorer and go to your darbasic directory (mine is c:\program files\darkbasic) then goto the directory "media" then "models". There will be other directories (animated, textured, and static)... just pick one and copy out some .x files into the same directory as your code.

Also if you look at the forum "3 Dimensional Chat" there are many people that upload models. If you show your Dad how this place is very moderated he may allow you to download from here.

The simplest AI is a check to see where the players X and Y is vs the npc... and move the npc towards the players X and Y.
thinkdigital
20
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 30th Aug 2005 04:31 Edited at: 30th Aug 2005 04:37
Just use the DB-provided models.

Or... Make your own modelling program. I'm crazy? Possibly, but I did a few years ago. Just make yourself a program that you can use to create DB primitives (like spheres, plains, boxes, cones, cylinders, etc...), position, and color/texture them. Then save the texture/color and position information to a file that you can use in your own DB programs. Of course, that always presents the problem that in the end, you'd be stuck with several different objects. It's tricky, but possible...

And getting back to reality: Try making your own matrix editor (just start simple! You'd be surprised how you might make progress) In the meantime, instead of using models, just create 2d images, texture them onto plains, and rotate those plains to face the player.
cloneboy
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Ontario, Canada
Posted: 30th Aug 2005 17:11
ok... Lets begin where I have problems with this...

Tinkergirl : I can't program the A.I. I don't know how to program it to "Turn towards me and shoot" as you said. That's where I need help.

Grog Grueslayer : I really don't need a Samurai in a spaceship or anything like that. Sorry to be so blunt, but I don't mean to be rude. (I meant custom models)


Oh man... Grog gave me an exellent game idea. Samurai in Space!!! He can kill goblins and so on, but I still don't know how to program A.I.
thinkdigital
20
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 30th Aug 2005 23:23
cloneboy:

This program is entitled, "Turn towards me, and Shoot!" </sarcasm>

Something Like this (assuming object 3 is an enemy and object 2 is the bullet, and 1 is the player):



Basically what we're doing is telling object 3 (the enemy) to point itself at the player. bulletLife keeps track of how long the bullet continues to travel before it runs out of energy. shootTimer makes sure that there is at least two seconds in between each of the enemy's shots. (See TDK's timer thread for more info, if I'm not making sense )
So long as bulletLife is above 0, the bullet keeps moving in the directon it was shot.
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 31st Aug 2005 00:52
Have you tried the Monster Hunt tutorial? I'm sure it would help a great deal.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 31st Aug 2005 05:44
Quote: "Grog Grueslayer : I really don't need a Samurai in a spaceship or anything like that. Sorry to be so blunt, but I don't mean to be rude. (I meant custom models) "


You said "I'd like to learn to actually use models and so on" and "Dad doesn't like me downloading anything.". How does one learn to use models when one cannot download a model maker or models? Use the ones that come with Darkbasic.

Of course since you said "Dad doesn't like" i'm sure you've disobeyed him and downloaded stuff before. Show him what you'd like to download. I'm betting he just doesn't want you to infect the computer with viruses or fill it with porn.
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 31st Aug 2005 14:01
Here is an enemy FOV function:



You can determine the enemy's fov and it will tell you if it sees the target.

Immunity and Annihalation makes Immunihalation...
cloneboy
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Ontario, Canada
Posted: 31st Aug 2005 17:16
Yay!!! I got Matedit!!! Happy day!!!

Anyone know of any model creators made BY darkBASIC? My dad seems to not hate things made by db.

Login to post a reply

Server time is: 2024-09-24 03:27:36
Your offset time is: 2024-09-24 03:27:36