Skip to content

Commit

Permalink
test(gameLoop): add tests for gameLoop.js
Browse files Browse the repository at this point in the history
refactor(all): change the set function to be called init since it's doing more than just setting properties, it's also giving defaults and initializing other properties
docs(examples): update examples to reflect name change
  • Loading branch information
straker committed Sep 20, 2015
1 parent 2a0156c commit be2a587
Show file tree
Hide file tree
Showing 14 changed files with 381 additions and 150 deletions.
4 changes: 2 additions & 2 deletions examples/galaxian/js/galaxian.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ kontra.loadAssets(
isAlive: function() {
return !this.audio.ended;
},
set: function() {
init: function() {
this.audio.play();
},
// set required properties
Expand Down Expand Up @@ -341,7 +341,7 @@ kontra.loadAssets(
kontra.audios.kick_shock.currentTime = 0;
kontra.audios.kick_shock.play();

player.position.set(280, 270);
player.position.init(280, 270);
};

startGame();
Expand Down
Loading

0 comments on commit be2a587

Please sign in to comment.