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 / Sprites and backgrounds

Author
Message
jdeimund
21
Years of Service
User Offline
Joined: 2nd Jun 2003
Location:
Posted: 3rd Jun 2003 07:02 Edited at: 3rd Jun 2003 07:03
Hello all, I'm new to game programming but I do have some VB experience. I really like DBPro and I'm eager to try it out.

I'd like to put together a simple 2D-lunar lander game, but I have a few questions: What should I use to draw the background (maybe a paint program .bmp)? If I do use a simple bitmap, how can I tell if the lander-sprite has touched down on the surface?

I understand about sprite collisions, but this isn't really a sprite hitting another sprite, this is the sprite touching the background graphics.

Any demo code or ideas would be greatly appreciated.

soap_shoes
21
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United States
Posted: 3rd Jun 2003 08:57
hey there....

actually, I, too, am quite new to programming, but i think i may have an answer or two to ur questions........

to the questions about making sprites...i use microsoft paint (gayest, cheapest software.. ) but i would recommend using paintshop since it is more elaborate than paint, and you can do some hardcore stuff to your bmp's.

i dont know much about 2D, but im guessing that you will be using sprite collisions if you make your background a sprite also....if not then i dont have a clue... :-s

someone else might have an idea...

max

Do not give up for the beginning
is always the hardest...........
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 3rd Jun 2003 19:52
you could make the ground a sprite then just use the background image for the background. or if there no platforms in your game ie. theres only one peice of ground, you could say that when sprite y = a certain point on the screen ie. ground level it would be like a collision and it would stop

ARE YOU A 3D MODELER??? IF SO WE NEED YOU!!!
EMAIL mynameisnoneofyourbuisness@hotmail.com to work on the new Star Strike project!!!
CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 5th Jun 2003 06:26
POINT
This command will return the pixel color value from the screen at the specified Coordinates. The
parameters should be specified using integer values. You can also read from bitmaps by using the SET
CURRENT BITMAP command.

Login to post a reply

Server time is: 2024-11-24 16:34:37
Your offset time is: 2024-11-24 16:34:37