Allegro.cc - Online Community

Allegro.cc Forums » The Depot » [Holiday Game] XP

This thread is locked; no one can reply to it. rss feed Print
[Holiday Game] XP
BAF
Member #2,981
December 2002
avatar

The quick game I made today, XP [Xmas Pong], is basically done. Hacked this together in a short amount of time, just a simple holiday pong game. Source code is in the zip. Just extract it and run main.exe.

By the way, this uses NyanNyan's Collegro Collision Detection library. :)

Click to download

{"name":"xpscreeny1.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/b\/0b94b7b9f23c16b00a181d3b08b78417.png","w":806,"h":632,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/b\/0b94b7b9f23c16b00a181d3b08b78417"}xpscreeny1.png {"name":"xpscreeny2.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/3\/f3201ec770488b25e04059183102d0cd.png","w":806,"h":632,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/3\/f3201ec770488b25e04059183102d0cd"}xpscreeny2.png

Controls are:
Up and down arrows: Move your paddle up and down.
Left/Right Shift: While depressed, speeds up your paddle's movement.

Compiling requires: Allegro 4.2, Allegromp3, Collegro, and loadpng.

And since you can't find AllegroMP3 easily anymore, I uploaded it as well.

Billybob
Member #3,136
January 2003

That didn't take you long.

Hmm, the music is annoying, but whatever. It seems like the reflection is flat, so it doesn't matter where the ball hits the paddle. Isn't the ball supposed to reflect at more extreme angles the further away from the center of the paddle it hits?

Onewing
Member #6,152
August 2005
avatar

And here I was thinking you'd go for option 3. :)

Quote:

3. Find cure for cancer.

------------
Solo-Games.org | My Tech Blog: The Digital Helm

BAF
Member #2,981
December 2002
avatar

William: it doesn't have extreme physics :P just a simple reversal of dx/dy.

Paul whoknows
Member #5,081
September 2004
avatar

Can you post a screeenshot, not one of those, an in game screenshot.

____

"The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner.

BAF
Member #2,981
December 2002
avatar

Added one to post 1.

NyanKoneko
Member #5,617
March 2005
avatar

I like the music.

I'm also glad to hear you were able to succesfully implement collegro. Thank you.

I think the game is very cute.

Archon
Member #4,195
January 2004
avatar

The next Christmas game should be where you steal presents from houses while avoiding the children!

Inphernic
Member #1,111
March 2001

Internet said:

I mean, come on, no matter how shitty game X looks, it'll get at least a few "looks good!" comments..

Mary Poppins said:

I like the music.

I'm also glad to hear you were able to succesfully implement collegro. Thank you.

I think the game is very cute.

QED..? ;)

Jonny Cook
Member #4,055
November 2003

My Christmas game is Klabutong. I don't care if I didn't make it, it's mine and I'm keeping it.

The face of a child can say it all, especially the mouth part of the face.

BAF
Member #2,981
December 2002
avatar

I never said this game was good, I was just posting the result of my 1 hour boredom time yesterday. :P

Jonny Cook
Member #4,055
November 2003

Put some cool looking brackground in and have some pretty particle snowflakes. That would be more christmassy.

The face of a child can say it all, especially the mouth part of the face.

BAF
Member #2,981
December 2002
avatar

By the way, William, as for the music, you can replace media/cv.mp3. :)

NyanKoneko
Member #5,617
March 2005
avatar

Quote:

QED..? ;)

I didn't say that graphics were good. ;D

But it's Candy Cane and Peppermint Pong. I smiled. It's definately a cute game.

Peter Hull
Member #1,136
March 2001

Quote:

Can you post a screeenshot, not one of those, an in game screenshot.

Eh? It's Pong! What were you expecting ;)

Pete

wiseguy
Member #44
April 2000
avatar

BAF,

Just wanted to let you know that if you switch away from the program in windows...the MP3 gets "stuck" and starts skipping until the program gets the focus back, which can be rather annoying. I had that problem with my mp3 player too, and I fixed it by using the following

if (is_windowed_mode())
set_display_switch_mode(SWITCH_BACKGROUND);
else
set_display_switch_mode(SWITCH_BACKAMNESIA);

The only problem I would see for your game using that is that this will keep the program running and thats not to good for a game to be running when the player can't control it...in your case I would recomment using SWITCH_PAUSE...

Go to: