Computer Science Canada

Pacman Racer

Author:  Beastie [ Tue Dec 14, 2004 11:40 pm ]
Post subject:  Pacman Racer

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

Author:  Delos [ Wed Dec 15, 2004 11:45 am ]
Post 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

Author:  Linux [ Wed Dec 15, 2004 11:46 am ]
Post subject: 

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

Author:  Tony [ Wed Dec 15, 2004 12:12 pm ]
Post subject: 

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

Author:  zomg [ Wed Dec 15, 2004 1:02 pm ]
Post subject: 

lmao Laughing

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

any way good start Smile

Author:  Beastie [ Wed Dec 15, 2004 3:45 pm ]
Post 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?

Author:  Neo [ Wed Dec 15, 2004 4:22 pm ]
Post 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.

Author:  Cervantes [ Wed Dec 15, 2004 4:32 pm ]
Post subject: 

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

Author:  Beastie [ Wed Dec 15, 2004 9:54 pm ]
Post 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?

Author:  Tony [ Wed Dec 15, 2004 10:41 pm ]
Post 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()


: