News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Pong in MASM

Started by Wojtek.wk, January 01, 2010, 09:51:06 PM

Previous topic - Next topic

Wojtek.wk

Hello Everyone! First of all, sorry for my bad English... I'd like to write some kind of Pong game in MASM, in 320x200, 256-color mode, but more simply one. It only has to implement moving one paddle with keys and ball's bouncing off the walls and paddle. It has to be like Pong with one paddle, and ball moving from one wall to second one. Does anyone has some examples of such a program, some pieces of advice, or anything what could help me? I'm looking for any kind of help. I'd really appreciate it.
Thanks in advance, regards and happy New Year!

Magicle

That includes implementation of colliding objects + angles \ etc...
I'd recommend to Google it for more info.

keinplan

Hello Wojtek.wk.

An easy way to get a quick&dirty collision detection is to just check for color-values. If your walls have color x, the ball must just check if there is a color x value on its way. Is there one, there is a collision, if not, no collision. It works, i have used this once for a pacman game.

Greetz,
keinplan