Author |
Message |
Beastie
|
Posted: Tue Dec 14, 2004 11:40 pm Post subject: Pacman Racer |
|
|
hey this is my first game...tell me what you think
Description: |
|
Download |
Filename: |
Game.t |
Filesize: |
4.55 KB |
Downloaded: |
319 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Delos
|
Posted: 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
|
Posted: Wed Dec 15, 2004 11:46 am Post subject: (No subject) |
|
|
ahhhh my eyes
its good but that refresh thing is killing me
|
|
|
|
|
|
Tony
|
|
|
|
|
zomg
|
Posted: Wed Dec 15, 2004 1:02 pm Post subject: (No subject) |
|
|
lmao
ya it is kinda glitchy and the crazy refresh rate thing is really annoying
any way good start
|
|
|
|
|
|
Beastie
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
|
|
Beastie
|
Posted: 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
|
Posted: 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!! 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()
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
|