Player = {
height : 96,
width : 60,
x : 0,
y : 0,
sprite : new Sprite('player', this.x, this.y, 60, 96, 4, 16),
draw : function(){
this.sprite.draw(this.x, this.y);
},
update : function(){
this.sprite.update(this.x, this.y);
}
};
Player = {
height : 96,
width : 60,
x : 0,
y : 0,
draw : function(){
this.sprite.draw(this.x, this.y);
},
update : function(){
this.sprite.update(this.x, this.y);
}
};
Player.sprite = new Sprite('player', Player.x, Player.y, Player.width, Player.height, 4, 16),