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.

2D All the way! / help with a bit of collision please

Author
Message
Robot
22
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 17th Dec 2004 21:11
I'm trying to make a game where you get chased by lines. How would i make it so that when you hit a line you lose.



The happenings of tommorow are behind us now
Flashing Blade
23
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 18th Dec 2004 01:41 Edited at: 18th Dec 2004 01:45
I'd use arrays
I've altered you code a bit:



you got the makings of a good puzzler game there - a timer as the score - the longer you last etc.


*edit* to make game harder (or easier) just change line 64:
gametime=timer()+20


The word "Gullible" cannot be found in any English Dictionary.
Robot
22
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 18th Dec 2004 01:50
thank you that is exactly what i wanted.

The happenings of tommorow are behind us now
Flashing Blade
23
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 18th Dec 2004 01:59
one more thing you should probably change this:

to this:



The word "Gullible" cannot be found in any English Dictionary.
Robot
22
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 18th Dec 2004 02:36
thats a good point thank you again.

The happenings of tommorow are behind us now
Robot
22
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 18th Dec 2004 03:13
I have added in a score system now



The happenings of tommorow are behind us now
Robot
22
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 18th Dec 2004 20:32 Edited at: 19th Dec 2004 00:00
have now added options of choosing amounts of lines and difficulty



EDIT now with a better scoring system based onthe difficulty and colourful lines



The happenings of tommorow are behind us now

Login to post a reply

Server time is: 2026-06-11 14:49:11
Your offset time is: 2026-06-11 14:49:11