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
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.
They can be easily customized to meet the unique requirements of your project.
















(70 votes, average: 4.56 out of 5)









This post has 53 comments
shiv
Its really cool!
Even I was planning to make a peculiar flash pool game, but this one is really awesome.
Alejandro
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
Frederik J
Fantastic. Thanks alot. I think I’m gonna visit his blog everyday like yours.
Mike
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.
Emanuele Feronato
it’s a cs3 project
styxtwo
emanuele are you going to release AS2 tutorials? i was wondering because as3 is to expensive for me and probably for more people ;)
shiv
I completely agree with styxtwo.
It is not available in India and I dont buy pirated stuff.
shiv
And one addition I would like to suggest to Alejandro.
-If you make a game with levels and achieving scores you should add powerups
Alejandro
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.
Adam Owen
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!
abhilash
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
RJ
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.
shiv
RJ,
Emanuele’s source codes are quite acessible.
They open up in flash 8
RJ
I meant the pool game
Anyway, I wasn’t complaining, only explaining them because I saw them quite confused
shiv
when did I say you were complaining?
RJ
I’m sorry. I missunderstood you
Wall Dodge - game made from Metro Siberia Underground tutorial : Emanuele Feronato - italian geek and PROgrammer
[...] the Complete Flash pool game with highscores, this is the second full game with source code to be published [...]
Kriss Daniels
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
arm
hey,..iam newbie in flash game, thanks for the code,…i’ll learn it.
free tutorials for flash game development - the coolest tutorials in web to create your own flash game- The Design Superhero
[...] 1.Complete Flash pool game with highscores [...]
Sniper
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
Como criar jogos em Flash - Compilação
[...] Jogo de sinuca; [...]
Source Code | Cool Flash pool game with highscores « Flash Enabled Blog
[...] Download the source and read original post No Comments Leave a Commenttrackback addressThere was an error with your comment, please try again. name (required)email (will not be published) (required)url [...]
Arch Games Webmasters - Arcade Webmasters » Game Developer tutorial List
[...] http://www.emanueleferonato.com/2008/01/05/complete-flash-pool-game-with-highscores/ [...]
bkelly
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.
Ruslan
Thanks great .I am PHP , C++ and Flash developer . I would be happy to help you in anyway .
rahul mehta
hi Friends,
i am looking for some good flash programmer for my new company .. we have 100 of flash games which we have to complete in this year end..
our studio based in INDIA- MUMBAI – THANE ..
if anyone interested pls drop me a mail .. – rahulmehta5@gmail.com / rahul_ni1@rediffmail.com
or u can call me – +91-09223246436
its a full time position ..!!
warm regards
Rahul
Adobe Flash CS3- AS3 and AS2 game tutorials roundup | Lemlinh.com
[...] Read more [...]
The Design Superhero » Blog Archive » free tutorials for flash game development - the coolest tutorials in web to create your own flash game
[...] 1.Complete Flash pool game with highscores [...]
klaine
hi there!
i’m a amateur programmer of flash but i can help you in making games… i’m good in coding but i’m poor in designs.. you can contact me at keith_velasco2008@yahoo.com if you want..
romeo
hello peopels :-)
I just wanted to open the zip-file.. but a message always says… that the file is damaged and cant be opened :-( .. does somebody can help me? :-)
kind greetings
Romeo
Project 3 concept « Isaac Fowler Design
[...] are some more nice links: A list of game tutorials A pool game with high scores tutorial Tower Defense tutorial Matching game tutorial A blog that supposedly has amazing Flash resources, [...]
Como criar jogos online (em flash)?
[...] 20. Jogo de sinuca [...]
maheedhar
very nice tutorials.The pool game is very nice……Can u help me! how to create a platform or racing game with camera movement effect? thanx.
tony hawk
Airwalk techincality
Como criar jogos em Flash
[...] Jogo de sinuca [...]
20 Best Flash Game Tutorials to Create Your Own Flash Game | Dzine Blog
[...] 2. )Pool Game [...]
eagrapho » 20 Best Flash Game Tutorials to Create Your Own Flash Game
[...] 2. )Pool Game [...]
?????20???Flash?? | ??????
[...] 2. )Pool Game [...]
dalton
hey its a cool game but wont open in flash 8. if theres a new version i can use, please tell me
gil
i like this hame but how i can make it for two ?
20 Best Flash Game Tutorials to Create Your Own Flash Game | Design Trip Blog
[...] 2. )Pool Game [...]
Moonstar
It’s really good tutorial for learning.But it hasn’t aio, so I can’t play :”me vs computer” :(
20??????????flash??????? | ??????
[...] 2. )Pool Game [...]
Rebecca Pugh
Thank you for this outstanding article! I just found this place through dogpile, and I’m very estatic that I did. Keep up the quality work!
20 Best Flash Game Tutorials to Create Your Own Flash Game | dzinebook.com | DzineBook
[...] 2.) Pool Game [...]
downlad free full games
I would like to say thanks for posting up this site. I’m just getting in to this will give me a kickstart.
Billiard Spiel Source? - Flashforum
[...] ein Source Code in AS3 eines Billard Spiels? (Also nur die Ballphysik plus Lochkollision) Ich habe das hier gefunden doch der Code ist doch zu komplex. Hat jemand was zu verschenken? Gruss, Mirza [...]
8 bài h??ng d?n chuy?n PSD sang HTML | Blog thi?t k? Website
[...] 4. Bi-a [...]
» 40 Top Flash Game Tutorial Roundup stuff i like
[...] 6. Complete Flash Pool Game with Highscore flash game tutorial [...]
Sokna
Hello! I like games…
aaditya
it does nt play proper & very slow
oyun
Nice game tutorials.Very usefull information.Thanx for sharing..