Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Need Help in a plane game.
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Galea




PostPosted: Sat Apr 03, 2004 11:59 am   Post subject: Need Help in a plane game.

Hello. I am making a plane game for turing. I have a counter, but when it reaches zero, I want it to pause the game and put something like "Game over"

here is a zip of my game.

the planes are a little fast but that is because at school they go much slower...I think it's their pc's.



Plane Game.zip
 Description:
My Plane game.

Download
 Filename:  Plane Game.zip
 Filesize:  1.54 MB
 Downloaded:  336 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
poly




PostPosted: Sat Apr 03, 2004 1:37 pm   Post subject: (No subject)

To be a bit more "efficient" change your if structure...Right now its like this:
if this then
%blahblah
end if
if this then
%blahblah
end if
etc. etc.

change it so its like:
if this then
%blahblah
elsif this then
%blahblah
end if

and for the timer, just make it so when the timer reaches 0 it exits the loop, stops the music, clears the screen and displays GAME OVER
Galea




PostPosted: Sat Apr 03, 2004 10:24 pm   Post subject: (No subject)

how can I do that last point?
Tony




PostPosted: Sat Apr 03, 2004 10:59 pm   Post subject: (No subject)

if you got a single loop then just exit if you have multiple loops, then you have to set up quit flags.

the easiest way I image though is
code:

put "game over"
return
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: