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 / Structure code for my platform game

Author
Message
Dmas_Zero
20
Years of Service
User Offline
Joined: 9th Feb 2004
Location:
Posted: 3rd Mar 2004 15:17
ok here's how it goes:
-Make a sprite for the player and another one for the floor
-Make an animated sprite for the tiles

-Loop
-player input
-gravity and jumping functions
-update sprites
-update tiles
-update screen
-End Loop

i only have one sprite for all tiles (animated sprite) which i chage it's frame every time i want to put a diffrent tile.
i need sprite for every collision detection with the player.

is it good? it's all done to code here it is:

Dreamora
22
Years of Service
User Offline
Joined: 20th Sep 2002
Location: Switzerland
Posted: 3rd Mar 2004 16:10
yeah seems to be quite good although you should intend the whole code for better readability
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 3rd Mar 2004 16:40
he meant indent...



Also you may want to more strongly type your variables in your global section...

intXPos As Integer = 20
etc
etc

-RUST-
"What the... Mooooooooooo!"

Login to post a reply

Server time is: 2024-11-26 07:32:03
Your offset time is: 2024-11-26 07:32:03