Computer Science Canada

a game concept

Author:  JayLo [ 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...

Author:  Asok [ Sun Mar 16, 2003 7:02 pm ]
Post subject: 

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

Author:  JayLo [ 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.

Author:  Asok [ Sun Mar 16, 2003 7:06 pm ]
Post 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).

Author:  JayLo [ Sun Mar 16, 2003 7:15 pm ]
Post subject: 

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

Author:  JayLo [ Sun Mar 16, 2003 9:31 pm ]
Post subject: 

my boxes don't come out.

Author:  Asok [ Sun Mar 16, 2003 9:40 pm ]
Post subject: 

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

Author:  JayLo [ Sun Mar 16, 2003 10:22 pm ]
Post subject: 

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

Author:  JayLo [ Mon Mar 17, 2003 9:23 pm ]
Post subject: 

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

Author:  Dan [ Mon Mar 17, 2003 10:14 pm ]
Post 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


: