The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: Wojtek.wk on January 01, 2010, 09:51:06 PM

Title: Pong in MASM
Post by: Wojtek.wk on January 01, 2010, 09:51:06 PM
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!
Title: Re: Pong in MASM
Post by: Magicle on January 31, 2010, 03:58:09 PM
That includes implementation of colliding objects + angles \ etc...
I'd recommend to Google it for more info.
Title: Re: Pong in MASM
Post by: keinplan on April 25, 2010, 01:50:38 AM
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