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 / restart game?

Author
Message
squirrel 890
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location: aaaaaaaaaaaaaaaaaaaaa i remeber i forgot
Posted: 27th Jan 2005 05:52
how do i make my game restart??
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 27th Jan 2005 06:08
Well maybe you could use this(It will reset the box if you press spacekey control the box around with the arrow keys.)




looking for Royalty free 3D objects?
then Check PanzerGames at this link : http://www.freewebs.com/panzergames
MDTalley
19
Years of Service
User Offline
Joined: 13th Jan 2005
Location: Mobile, AL
Posted: 27th Jan 2005 06:53
Break your game initialization code down into two groups: InitProgram and InitGame. InitProgram is things you only need to do the first time you run the game (i.e. load images, create sprites, build arrays, etc.), InitGame is something you need to do each time the game starts (i.e. redraw screen, reposition sprites, etc.).

Call both InitProgrm and InitGame when the game first runs, but only call InitGame when you want to start a new game.
squirrel 890
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location: aaaaaaaaaaaaaaaaaaaaa i remeber i forgot
Posted: 27th Jan 2005 07:55
ok thax

i i would have my load commands like

do
if load=0
playgame..
endif

if load=1
load...
endif
loop

Login to post a reply

Server time is: 2024-11-27 21:35:37
Your offset time is: 2024-11-27 21:35:37