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

Username:   Password: 
 RegisterRegister   
 a game concept
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
JayLo




PostPosted: Sun Mar 16, 2003 7:00 pm   Post subject: a game concept

you know those games where there is some type of flying object and you have to dodge some obstacles?
http://www.addictinggames.com/helicopter.html
is it possible to do this in turing?
I have a very preliminary one going but it's pretty stupid...



ball game.t
 Description:

Download
 Filename:  ball game.t
 Filesize:  4.69 KB
 Downloaded:  253 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Asok




PostPosted: Sun Mar 16, 2003 7:02 pm   Post subject: (No subject)

This is possible to accomplish in turing, in fact, Daniel Green (dumb loser) made a racing game on the exact same concept.
JayLo




PostPosted: Sun Mar 16, 2003 7:03 pm   Post subject: any ideas how?

i mean like the moving background thingie and box generator, I find pretty hard.
Asok




PostPosted: Sun Mar 16, 2003 7:06 pm   Post subject: (No subject)

Well here's basically what you'll need, the hellicopter can be drawn and controlled the Pic.Draw. You'll need a variable for distance between top and bottom. You'll need to have everything in a loop. You'll need to randomly generate the boxes (Rand.Int).
JayLo




PostPosted: Sun Mar 16, 2003 7:15 pm   Post subject: (No subject)

aww man... this is turning into grade 10 math all over again! Razz oh well, thanks a bunch asok.
JayLo




PostPosted: Sun Mar 16, 2003 9:31 pm   Post subject: (No subject)

my boxes don't come out.


Whale.zip
 Description:

Download
 Filename:  Whale.zip
 Filesize:  5.41 KB
 Downloaded:  227 Time(s)

Asok




PostPosted: Sun Mar 16, 2003 9:40 pm   Post subject: (No subject)

This is because Procedure obstacle isn't getting called. so it is never getting the message to draw.
JayLo




PostPosted: Sun Mar 16, 2003 10:22 pm   Post subject: (No subject)

try calling in 'obstacle'. oh and about generating a background, how?
JayLo




PostPosted: Mon Mar 17, 2003 9:23 pm   Post subject: (No subject)

should I divide my window into sections to check if the object hit something? please give some base code.


Sub.zip
 Description:

Download
 Filename:  Sub.zip
 Filesize:  16.58 KB
 Downloaded:  229 Time(s)

Dan




PostPosted: Mon Mar 17, 2003 10:14 pm   Post subject: (No subject)

i think you whont to use closione dection for this one, so yes you kind of need to diived up your window to see if the sub is hitying anyting.

we have a tutorale on this here: http://www.compsci.ca/bbs/viewtopic.php?t=75
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
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  [ 10 Posts ]
Jump to:   


Style:  
Search: