PONG in AS3 in ~1KB :-)

pong

pong

Hi Again!

This time I’ve rewritten my old AS2 Pong Game source code to an AS3 class. This is useful for a loader i.ex. or just for fun… :) The game is as simple as I could get (and buggy too!) so don’t expect a WOW – the idea was not to complicate the game – just make it simple and small :) Hope You like it…

Usage:

You can see that in the example file.

var my_pong:pong_game = new pong_game(game width , game height , sprite to attach);

The Example:

http://thinq.pl/pong

The Source Code:

http://thinq.pl/pong/pong.zip

Feel free to use and modify what you want. Comments warmly welcomed as always :)

Have fun!

FLAIM

5 Responses to “PONG in AS3 in ~1KB :-)”

  1. Dark Vyper Says:

    At 1.51KB, wouldn’t it be more accurate to say ~2KB?

  2. flaim Says:

    Not really if you remove comments and change the variable names to shorter ;-)

  3. Amit Says:

    Hi nice game, I played it after reading your post. I kind of liked it. Thanks for sharing! Really addictive one!

  4. Thomas Francis Says:

    Hey, just to let you know, I used your source code to make pong for the Zune, if you want to check it out, you can just go to my website. The game is called Zong.

    Thanks.

  5. Building a multitouch table « blog.thirdvillage.com Says:

    [...] on each side of the table. An easy concept, great to start with. So I grabbed the source of 1KB pong and changed the source a bit (sorry!) to use it with the touch [...]


Leave a Reply