Pool Game Engine

Pool Game Engine

A pool engine to build pool games on. Modular, structured code that can be easily extended and modified.

  • Language: ActionScript
  • Released: May 22, 2011
    Last Update: May 22, 2011

The pool engine is an external swf file that you can import into a host swf and with use of the events, you can create the additional pool game logic and even a multiplayer online pool game.



The component is used with internal events when loaded with the Loader class:

//set up listeners
_poolGame.content.addEventListener("ALL_BALLS_STOPPED", allBallsStopped);
_poolGame.content.addEventListener("SHOT_MADE", shotMade);
_poolGame.content.addEventListener("GAME_STEP", gameStepped);

//so, when somebody makes a shot
protected function shotMade(e:SuperEvent):void {

      trace("I made shot in the game: ");       
      trace("Strength of shot: " + e.get("str"));
      trace("Angle of shot: " + e.get("angle"));


//when after the shot all balls stop to move, we check here the result
//how many balls were made to pockets?
protected function allBallsStopped(e:SuperEvent):void {

                       //the infor about all the balls made in that shot
            var ballInfo:Array = e.get("ballData");

            //how many?
            var ballsMade:uint = ballInfo.length;

                        //what kind of ball was made, it can be SOLID, STRIPED, BLACK, WHITE
                        var type:String =  ballInfo[0].type;

                        //this is all the info we need to create a nice pool game logic :-)


//use setEnabled(true / false) to enable / disable the game for a while
You need to log-in or create an account
  • Create an account
  • Log-in
Please use your real name.
Activation link will be sent to this address.
Minimum 8 characters
Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.


Save your watchlist

Fill your details below to receive project updates from your watch list - including new versions, price changes and discounts.

I agree to the terms of use and privacy policy.

1 license From » $99.99 14 day money-back guarantee View Licenses
or Get a quote

for customization or integration services

Post a comment

Or enter your name and Email
  • Mirza Hatipovic Developer 2 years ago
    hi abdul unfortunately no options at all. Its just written in AS3 and has the pool basics implemented. Sound etc. is not there, not effects. Let me know all other things you need to know.
  • AE Abdul R Ermes 2 years ago
    hi, i'm interested in this engine, is this for an sdk starter kit or just this engine? does this include menu, levels, sound fx, music etc? are there any options for in-app purchases etc? thanks