
-----------------------------------
Beastie
Tue Dec 14, 2004 11:40 pm

Pacman Racer
-----------------------------------
hey this is my first game...tell me what you think

-----------------------------------
Delos
Wed Dec 15, 2004 11:45 am


-----------------------------------
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
Wed Dec 15, 2004 11:46 am


-----------------------------------
ahhhh my eyes :eyes: 
its good but that refresh thing is killing me

-----------------------------------
Tony
Wed Dec 15, 2004 12:12 pm


-----------------------------------
http://www.compsci.ca/bbs/files/pac_haxxor.jpg

-----------------------------------
zomg
Wed Dec 15, 2004 1:02 pm


-----------------------------------
lmao :lol: 

ya it is kinda glitchy and the crazy refresh rate thing is really annoying :( 

any way good start :)

-----------------------------------
Beastie
Wed Dec 15, 2004 3:45 pm


-----------------------------------
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
Wed Dec 15, 2004 4:22 pm


-----------------------------------
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
Wed Dec 15, 2004 4:32 pm


-----------------------------------
As for time, good use of the Time.Elapsed function will help you.

-----------------------------------
Beastie
Wed Dec 15, 2004 9:54 pm


-----------------------------------
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
Wed Dec 15, 2004 10:41 pm


-----------------------------------
oh wow, what is that?

it's a bird!
it's a plane!
it's two boxes moving at the same time!! :shock: wow


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()
