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

Username:   Password: 
 RegisterRegister   
 Pacman Racer
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Beastie




PostPosted: Tue Dec 14, 2004 11:40 pm   Post subject: Pacman Racer

hey this is my first game...tell me what you think


Game.t
 Description:
Hope you like it

Download
 Filename:  Game.t
 Filesize:  4.55 KB
 Downloaded:  304 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Wed Dec 15, 2004 11:45 am   Post subject: (No subject)

Not bad at all for a first try. Look around a bit and look up 'setscreen ("offscreenonly")' and such commands - will smooth out your animation.
Also, your use of procedures needs a bit of work - you've got a good start, but you need to compartmentalize your proggie a bit more. Try this: write your entire programme in procedures, and write it such that every proc is no more than, say, 15 lines long. If you find that there is something being done within the procedure that could be generalized instead of being hardcoded - make a proc/function of it!

+ bits
Linux




PostPosted: Wed Dec 15, 2004 11:46 am   Post subject: (No subject)

ahhhh my eyes Nuty Eyes
its good but that refresh thing is killing me
Tony




PostPosted: Wed Dec 15, 2004 12:12 pm   Post subject: (No subject)

Posted Image, might have been reduced in size. Click Image to view fullscreen.


pac_haxxor.jpg
 Description:
 Filesize:  32.63 KB
 Viewed:  5152 Time(s)

pac_haxxor.jpg


Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
zomg




PostPosted: Wed Dec 15, 2004 1:02 pm   Post subject: (No subject)

lmao Laughing

ya it is kinda glitchy and the crazy refresh rate thing is really annoying Sad

any way good start Smile
Beastie




PostPosted: Wed Dec 15, 2004 3:45 pm   Post subject: (No subject)

How would i make another level for it?Im not sure how to clear the screen and then have another maze there?Also how would i put a time limit on it and have it show how much time you have left?
Neo




PostPosted: Wed Dec 15, 2004 4:22 pm   Post subject: (No subject)

Make a variable called levels and wrap your drawfillbox for each level around if statements. So if level=1 then draw the maze for level one, if level=2 draw the other maze, etc.
Cervantes




PostPosted: Wed Dec 15, 2004 4:32 pm   Post subject: (No subject)

As for time, good use of the Time.Elapsed function will help you.
Sponsor
Sponsor
Sponsor
sponsor
Beastie




PostPosted: Wed Dec 15, 2004 9:54 pm   Post subject: (No subject)

K, i figured out everything but how can i have a bouncing ball in it. I cant get the ball moving and move my pacman? can someone plz help me?
Tony




PostPosted: Wed Dec 15, 2004 10:41 pm   Post subject: (No subject)

oh wow, what is that?

it's a bird!
it's a plane!
it's two boxes moving at the same time!! Shocked wow

code:

for i : 1 .. maxy
    Draw.FillBox (100, i, 105, i + 5, blue)
    Draw.FillBox (150, maxy - i, 155, maxy - i + 5, red)
    delay (10)
    cls
end for


Just move one, then the other. Don't wait for user input, use Input.KeyDown()
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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  [ 10 Posts ]
Jump to:   


Style:  
Search: