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),
class Hero {
...
public alterEgo?: string;
constructor(..., _alterEgo?: string) {
this.alterEgo = _alterEgo;
}
}