Skip to content

Commit

Permalink
#16 update player to match specification, remove unnecessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenHaug committed Dec 11, 2016
1 parent 61e0030 commit 2319da4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/public/js/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ game.state.start('main');*/


function addPlayerToGame(){
var player = new Player(game, 0, 0, 'paddle');
console.log(player);
var player = new Player(game, 0, 0, 'paddle', 0);
game.add.existing(player);
return player;
}
Expand Down
6 changes: 2 additions & 4 deletions src/public/js/Player.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

var Player = function (game, x, y, key){
console.log(game);
console.log(key);
Phaser.Sprite.call(this, game, x, y, key);
var Player = function (game, x, y, key, frame){
Phaser.Sprite.call(this, game, x, y, key, frame);
var _buffer = [];

this.addPositionToBuffer = function(x, y){
Expand Down

0 comments on commit 2319da4

Please sign in to comment.