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

Username:   Password: 
 RegisterRegister   
 Car Game (Handheld) Cool New Game I Made! UPDATED! June 13th
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
the_short1




PostPosted: Sun Jun 13, 2004 10:30 am   Post subject: Car Game (Handheld) Cool New Game I Made! UPDATED! June 13th

i was inspired like 4 weeks back to make a game similiar to this little handheld ive had since i was like 7... took me up to now to finally get the time to make it..... u have 3 lanes and u dodge the cars........ so now ... i made in turing!

HARDEST PART: drawing those 2 dam CARS!! please dont steal my crappy craphics!

Please Post Any Comment!!!

Note: Move with arrow keys....
you can push more then one arrow so u can move diagonely

the game will get harder.... for every 100 score u get... the enemies will be more bunched together!


for tony: guess what...! not a single FORK!
i used the SMART way for time... and movement is NOT forked!


IMPORTANT NOTE:

speed 1 = fast
speed 2 = medium
speed 3 = slow

hows the speed on ur comp?
if its WAY too fast... tell me and ill slow it down!



yea... i kinda whiped it up last nite and this morning... tell me what u think!


EDIT: added some stuf.... check my third post for details!



should i add some sounds??? like a background beat and then a crash sound????



Dodge_The_Cars.zip
 Description:
only 200 lines! nice and NEAT! using TONS of procs! :)

Download
 Filename:  Dodge_The_Cars.zip
 Filesize:  149.18 KB
 Downloaded:  381 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Sun Jun 13, 2004 10:46 am   Post subject: (No subject)

Nice...nice.

Bug: At any speed, I simply have to move as far up as I can on the screen and not a single car will come my way.

Must be a problem with your Rand.Int()ings somewhere.

Have you ever considered putting an FPS limit on your games? It should mean that you won't have to have the option of Speeds...theoretically, FPS limits make sure that stuff runs just about the same one most comps...

There's a tutorial lying around somewhere...check it out.
Tony




PostPosted: Sun Jun 13, 2004 12:39 pm   Post subject: (No subject)

come on the_short1, I was expecting it to be better from you Rolling Eyes I'm kinda disappointed
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
the_short1




PostPosted: Sun Jun 13, 2004 1:00 pm   Post subject: (No subject)

what u mean tony??? i think it lookz and works cool...
what can i do to improve on it..... i just started last nite during my homework break...... and i was lost on any ideas to improve on it...
sorry if i disapointed u.... didn't know expectations of programs i make are that high Confused ... well i gues since i made pacman,.,. hahahah...


hmm.... at the start the enemies come by very slowly delos..


enemyx (1-5) := Rand.Int (6,dist)*125

6*125 is just of the screen on the right... and at the start dist is 20... so they can come from a larger distance more spread out...... try waiting longer... turing's randomize aint too good... it wa prob 20 20 20 20 20 20 for each car.. hahahah

cuz if ur score is over 1500 then dist is only 10 .... so it gets really fast.... * dist gets lowered every 100....



wait.... in the real game their was FUEL....... ok.. that i can add.... run outa fuel slowly... then have pitstops on side....

any suggestions fell free to post! its still a work in progress... me outa ideas
Mazer




PostPosted: Sun Jun 13, 2004 2:16 pm   Post subject: (No subject)

code:

proc Certify
    if programmer (1) not= "K" or programmer (5) not= "n" or programmer (*) not= "z" or programmer (7) not= "F" then

        colorback (green)
        color (black)
        cls
        for a : 1 .. 50
            put programmer, " < IS A CODE STEALING THEIF! Contact Compsci.ca And Report This Please!"
        end for
        certification := false
    end if
end Certify

Laughing
Maybe you could do something ilke that for CD copy protection...
the_short1




PostPosted: Sun Jun 13, 2004 3:12 pm   Post subject: (No subject)

hey... i got that idea from someone else.... i think it was one of aikan's progries... meh... i forget now..


please edit that post so the whole world dont know it... a noob programmer who would acually just change the name and hand it in would prob not understand the rest of my code / nor look at it to find that.... .... norm i dont post my stuff in source.... for that reason... ... its one added little protection against those shitheads who steal stuff....

thx mazer


anyways..


check it out... i updated it:

made a fuel can graphic
added fuel... every 5 game loops you loose 1 fuel (u start with 100)
their are fuel cans that apear at 20-25, 45-50,70-75 fuel levels.... they each give u 25 fuel...
crashing takes away 5 fuel...
their is a crashing sound
background sound..
added pause feature... press 'p' to pause... any key to unpause..



and about FPS.... nah... not worth it in this small little proggie..


btw: the speeds are to change the dificulty really... thats how it wad in handheld...

EDIT: i will re-update my progg later to give u a bonus acording to speed..

speed 1 + 100 score
speed 2 + 50 score
speed 3 + 25 score


ill think about FPS... unless ppl start complainning about speeds.... meh..
hope that makes tony happy Smile
this_guy




PostPosted: Sun Jul 04, 2004 5:49 pm   Post subject: (No subject)

there arent any cars on the top lane...
i stayed on that lane for like 2 mins and some error came up on line 174 (Low value passed to "randint" greater than high value.)
the_short1




PostPosted: Sun Jul 04, 2004 7:05 pm   Post subject: (No subject)

thats really odd... just bad odds.. it randomizes perfectly for me..


i will recompile and check ut that line...


thx for posting specific enuf details!

maybe i somehow compiled a slightly older version ... hmm....

when i recompile it i will mention that date on the first post so ppl will know... cuz im kidna busy now..
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: