asdf-games/lib/Sprite.js

11 lines
220 B
JavaScript

class Sprite {
constructor(texture) {
this.texture = texture;
this.pos = { x: 0, y: 0 };
this.anchor = { x: 0, y: 0 };
this.scale = { x: 1, y: 1 };
this.rotation = 0;
}
}
module.exports = Sprite;