Skip to content

Instantly share code, notes, and snippets.

@Enome
Created July 26, 2011 20:59
Show Gist options
  • Save Enome/1108023 to your computer and use it in GitHub Desktop.
Save Enome/1108023 to your computer and use it in GitHub Desktop.
class Bullet(){
function fire(){
//move event
};
function move(el){
};
};
class Player(){
function shoot(){
var bullet = new Bullet();
this.addChild( bullet );
bullet.fire();
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment