Complete Flash pool game with highscores

Today is a very important day. For three reasons.

First: For the first time (as far as I know) a coder that published a complete game with MochiAds released the full source code of its game.

Second: It’s a damn good and complete game with loading, splash, gameplay, game over, and highscore table.

Third: I am the first to publish the source code, with the full permission of Alejadro Quarto, from Argentina

Alejandro runs a blog mainly about Flash Examples, and even if the blog is running only since october 2007, it’s full of useful tutorials. The name of the blog is alejandroquarto.com and I think it will be a “must read everyday” very soon.

Unfortunately some of the content is written in spanish, but even spanish posts contain a link to english content published by the aouthor elesewhere.

But let’s get back to the game.

As said, Alejandro is releasing the full source code of his pool game. I really want you to play it because you must see how good is the game. It’s called PocketPool

Alejandro Quarto Pool

That’s how he describes his work:

I have to say, the physics are not real, cos it can take a long while to play with all the Newton’s laws. Anyway, simulation is playable, and compared with any webgame arround. If you want to play real pool, development can take more than few hours.
This is the game screenshot:

Art is based on pics i found on google, and some Flash edition, you know, filters like shadow, glow, etc. The game is complete, with loading, splash, gameplay, game over, and highscore. All the highscore system is provided by MochiAds. Really simple to integrate and it works really cool.

He is trying to monetize the game with MochiAds, and that’s how it’s going:

after 2 weeks of bad luck, im having between 1300 and 1700 impressions at day.

Alejandro made this game in a day (!!!), so the source code may be not the cleanest ever, and some variables and functions have spanish names, but I found it very clear and it’s amazing how he made the entire game in a bit more than 700 lines of code.

On his blog, he plans to make a step by step tutorial of the game as soon as he can

But what makes this entry a special one is that a developer is releasing the source code of a game he is trying to monetize.

I would like it to be an example for all game developers out there… if we share our knowledge and experience, this will lead to better games and higher earnings.

Download the source and give Alejandro feedback and deserve him good luck with his game.

Now it’s my time to dive into 700+ lines of actionscript and learn as much as I can.

If you liked this post buy me a beer (or two)

» Flash Templates provided by Template Monster are pre-made web design products developed using Flash technology.
They can be easily customized to meet the unique requirements of your project.

20 Comment(s)

  1. shiv | Jan 5, 2008 | Reply

    Its really cool!
    Even I was planning to make a peculiar flash pool game, but this one is really awesome.

  2. Alejandro | Jan 5, 2008 | Reply

    Thanks Emanuele!

    As always, you made a complete review and a great work publishing content.
    I hope to get good feedback here, or at my blog, to be able to improve myself in the next crazy game :D.
    By the other side, will be cool to see if anybody can fix my game, and release a really cool pool outthere, will be an honor to me.
    Again, thanks a lot, keep working on cool things as usual :D

    Ale

  3. Frederik J | Jan 5, 2008 | Reply

    Fantastic. Thanks alot. I think I’m gonna visit his blog everyday like yours.

  4. Mike | Jan 5, 2008 | Reply

    Hi,

    This is really cool and I applaud Alejandro for the initiative, however, when I try to open the .fla with Flash 8, I get the following error:

    Unexpected file format.

  5. Emanuele Feronato | Jan 5, 2008 | Reply

    it’s a cs3 project

  6. styxtwo | Jan 6, 2008 | Reply

    emanuele are you going to release AS2 tutorials? i was wondering because as3 is to expensive for me and probably for more people ;)

  7. shiv | Jan 6, 2008 | Reply

    I completely agree with styxtwo.
    It is not available in India and I dont buy pirated stuff.

  8. shiv | Jan 6, 2008 | Reply

    And one addition I would like to suggest to Alejandro.

    -If you make a game with levels and achieving scores you should add powerups

  9. Alejandro | Jan 6, 2008 | Reply

    Shiv,

    Thanks for your feedback, you are completely right about the powerups. I didn’t worked on that cos the game is just one day development. I will release a new version of the game as soon i finish the tutorial, thinking about all the feedback i got.

    Btw, maybe im crazy, but Emanuele works on AS 2.0, Also i. I can save the game source for Flash 8 if you want, so you can open it.

  10. Adam Owen | Jan 7, 2008 | Reply

    Fantastic work on releasing the source code Alejandro, it’s refreshing to see people like Emanuele and yourself really pushing to help others.

    An AS2 version would be a great help to many I’m sure. While I have CS3 I know plenty don’t and it’d be a shame for them to miss out on such valuable information!

  11. abhilash | Jan 7, 2008 | Reply

    i played the game, and it was really fun but the source code was in AS3 so it was not helpful for many people(who have flash 7 or 8 or even lower) and like shiv said, in India flash CS3 is not available and if it available, its too expensive…..so please can you do a tutorial in AS2 becoz i really liked the game

  12. RJ | Jan 7, 2008 | Reply

    I think you’re a bit confused:

    Flash CS3 supports AS2 and AS3, BUT Flash CS3 files can’t be opened with Macromedia Flash 8, even if they’re in AS2.

    Emanuele uses AS2, but CS3, so you can’t open the files provided by him.

  13. shiv | Jan 8, 2008 | Reply

    RJ,
    Emanuele’s source codes are quite acessible.
    They open up in flash 8

  14. RJ | Jan 8, 2008 | Reply

    I meant the pool game

    Anyway, I wasn’t complaining, only explaining them because I saw them quite confused

  15. shiv | Jan 9, 2008 | Reply

    when did I say you were complaining?

  16. RJ | Jan 9, 2008 | Reply

    I’m sorry. I missunderstood you

  17. Kriss Daniels | Jan 23, 2008 | Reply

    I keep all of my flash games (and other code) inside a publicly visible subversion repository and have done for years.

    Which is not to say that all the code is yours for the taking, nor is it all perfect. I just keep it visible for the rare people that might want to actually learn something rather than modify a few images and post the same game again and again to newgrounds. I have yet to meet this person but one lives in hope.

    Some of the parts are however explicitly provided under an MIT license and available for you to do with as you wish… There will be more parts like that, the chat client/server code for instance is intended to be but I’m holding back on such things until I’m happy with the design.

    https://trac.xixs.com

  18. arm | Jan 25, 2008 | Reply

    hey,..iam newbie in flash game, thanks for the code,…i’ll learn it.

  19. Sniper | Feb 9, 2008 | Reply

    hey is it possible to try the poll and if it works can i put it in my website for my guest to play my guest

  20. bkelly | Jun 11, 2008 | Reply

    I want to congratulate you on such a fine pool game you have created, I was amazed at what you had done in 1 day of coding.

    I am a educational video game developer. We have created an free educational game for children with AD/HD. Part of our game is teaching math concepts through playing pool. We would like to use your pool game, with slight modifications to help these children. We will credit you at the end of the game with your name and website. We wanted to have your approval before using this.

    Thank you for all of your help in teaching others what you have learned.

5 Trackback(s)

  1. Jan 21, 2008: Wall Dodge - game made from Metro Siberia Underground tutorial : Emanuele Feronato - italian geek and PROgrammer
  2. Jan 25, 2008: free tutorials for flash game development - the coolest tutorials in web to create your own flash game- The Design Superhero
  3. Feb 28, 2008: Como criar jogos em Flash - Compilação
  4. Apr 24, 2008: Source Code | Cool Flash pool game with highscores « Flash Enabled Blog
  5. May 13, 2008: Arch Games Webmasters - Arcade Webmasters » Game Developer tutorial List

Post a Comment