Skip to content

Instantly share code, notes, and snippets.

@martinwells
Created June 21, 2012 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinwells/2968047 to your computer and use it in GitHub Desktop.
Save martinwells/2968047 to your computer and use it in GitHub Desktop.
function getNewBullet(x, y)
{
// ... previous code
// initialize the bullet
b.x = x;
b.y = y;
b.state = NORMAL;
return b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment