Complete Flash pool game with highscores

Read all posts about "" game

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.

Get the most popular Phaser 3 book

Through 202 pages, 32 source code examples and an Android Studio project you will learn how to build cross platform HTML5 games and create a complete game along the way.

Get the book

215 GAME PROTOTYPES EXPLAINED WITH SOURCE CODE
// 1+2=3
// 100 rounds
// 10000000
// 2 Cars
// 2048
// A Blocky Christmas
// A Jumping Block
// A Life of Logic
// Angry Birds
// Angry Birds Space
// Artillery
// Astro-PANIC!
// Avoider
// Back to Square One
// Ball Game
// Ball vs Ball
// Ball: Revamped
// Balloon Invasion
// BallPusher
// Ballz
// Bar Balance
// Bejeweled
// Biggification
// Block it
// Blockage
// Bloons
// Boids
// Bombuzal
// Boom Dots
// Bouncing Ball
// Bouncing Ball 2
// Bouncy Light
// BoxHead
// Breakout
// Bricks
// Bubble Chaos
// Bubbles 2
// Card Game
// Castle Ramble
// Chronotron
// Circle Chain
// Circle Path
// Circle Race
// Circular endless runner
// Cirplosion
// CLOCKS - The Game
// Color Hit
// Color Jump
// ColorFill
// Columns
// Concentration
// Crossy Road
// Crush the Castle
// Cube Jump
// CubesOut
// Dash N Blast
// Dashy Panda
// Deflection
// Diamond Digger Saga
// Don't touch the spikes
// Dots
// Down The Mountain
// Drag and Match
// Draw Game
// Drop Wizard
// DROP'd
// Dudeski
// Dungeon Raid
// Educational Game
// Elasticity
// Endless Runner
// Erase Box
// Eskiv
// Farm Heroes Saga
// Filler
// Flappy Bird
// Fling
// Flipping Legend
// Floaty Light
// Fuse Ballz
// GearTaker
// Gem Sweeper
// Globe
// Goat Rider
// Gold Miner
// Grindstone
// GuessNext
// Helicopter
// Hero Emblems
// Hero Slide
// Hexagonal Tiles
// HookPod
// Hop Hop Hop Underwater
// Horizontal Endless Runner
// Hundreds
// Hungry Hero
// Hurry it's Christmas
// InkTd
// Iromeku
// Jet Set Willy
// Jigsaw Game
// Knife Hit
// Knightfall
// Legends of Runeterra
// Lep's World
// Line Rider
// Lumines
// Magick
// MagOrMin
// Mass Attack
// Math Game
// Maze
// Meeblings
// Memdot
// Metro Siberia Underground
// Mike Dangers
// Mikey Hooks
// Nano War
// Nodes
// o:anquan
// One Button Game
// One Tap RPG
// Ononmin
// Pacco
// Perfect Square!
// Perfectionism
// Phyballs
// Pixel Purge
// PixelField
// Planet Revenge
// Plants Vs Zombies
// Platform
// Platform game
// Plus+Plus
// Pocket Snap
// Poker
// Pool
// Pop the Lock
// Pop to Save
// Poux
// Pudi
// Pumpkin Story
// Puppet Bird
// Pyramids of Ra
// qomp
// Quick Switch
// Racing
// Radical
// Rebuild Chile
// Renju
// Rise Above
// Risky Road
// Roguelike
// Roly Poly
// Run Around
// Rush Hour
// SameGame
// SamePhysics
// Save the Totem
// Security
// Serious Scramblers
// Shrink it
// Sling
// Slingy
// Snowflakes
// Sokoban
// Space Checkers
// Space is Key
// Spellfall
// Spinny Gun
// Splitter
// Spring Ninja
// Sproing
// Stabilize!
// Stack
// Stairs
// Stick Hero
// String Avoider
// Stringy
// Sudoku
// Super Mario Bros
// Surfingers
// Survival Horror
// Talesworth Adventure
// Tetris
// The Impossible Line
// The Moops - Combos of Joy
// The Next Arrow
// Threes
// Tic Tac Toe
// Timberman
// Tiny Wings
// Tipsy Tower
// Toony
// Totem Destroyer
// Tower Defense
// Trick Shot
// Tunnelball
// Turn
// Turnellio
// TwinSpin
// vvvvvv
// Warp Shift
// Way of an Idea
// Whack a Creep
// Wheel of Fortune
// Where's my Water
// Wish Upon a Star
// Word Game
// Wordle
// Worms
// Yanga
// Yeah Bunny
// Zhed
// zNumbers