|
Breakout |
ultratar
Member #8,178
January 2007
|
I want to know how to make a very basic breakout game.... |
LennyLen
Member #5,313
December 2004
|
ultratar
Member #8,178
January 2007
|
Thank you... but the code and stuff is kinda complex and difficult to understand... are there any more simpler or easy-to-understand ones?:D |
LennyLen
Member #5,313
December 2004
|
Quote: are there any more simpler or easy-to-understand ones? I doubt it, those weren't that complicated really. Perhaps you should try something simpler first.
|
Kris Asick
Member #1,424
July 2001
|
Having worked on a breakout clone in 3D before, I know the logic in making one can be stifling. Here are some tips to help you out:
The 3D version I was making was complicated by having to make the ball roll in 3D, along with having a smart camera that viewed the playfield optimally. I never completed it, but it's still on my system if I ever want to try. Making it in 3D was what really jumped the production time of it and why I had to stop. --- Kris Asick (Gemini) --- Kris Asick (Gemini) |
ultratar
Member #8,178
January 2007
|
Thank you! You've just made it seem so much simpler to do! Okay... I need a bit of help. My friend finished this much code (for our project)... but it's glitchy! The startNew function doesn't work. bar image
|
James Stanley
Member #7,275
May 2006
|
Quote: by multiplying by -1 You could, but you could also do: xspeed = -xspeed I assume that would be quicker, but I don't know |
Kris Asick
Member #1,424
July 2001
|
James Stanley: I think compiler optimization probably converts multiplying by -1 to exactly that, since that is faster. It was just easier to explain the way I did. ultratar: Here are some suggestions:
--- Kris Asick (Gemini) --- Kris Asick (Gemini) |
LennyLen
Member #5,313
December 2004
|
Quote: I checked the code a few times and I just don't get why it's not working properly. The organisation is a bit chaotic, which really doesn't help. Try restructuring the game loop. Here's a pseudocode suggestion: This keeps your logic seperate from your drawing routines, which will help once you add timers to control the speed of the game. Some other suggestions:
</li>
|
|