Skip to content

Instantly share code, notes, and snippets.

@ingrid
Created April 15, 2012 05:22
Show Gist options
  • Save ingrid/2390229 to your computer and use it in GitHub Desktop.
Save ingrid/2390229 to your computer and use it in GitHub Desktop.
Add player to the vertical shooter.
function initialize(){
var game = jam.Game(800, 600, document.body);
game._canvas.style.border="1px solid black";
var player = jam.Sprite(400, 500);
player.setImage("ship.png");
game.add(player);
game.run();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment