asdf-games/lib/Sprite.js

12 lines
239 B
JavaScript
Raw Normal View History

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.pivot = { x: 0, y: 0 };
this.rotation = 0;
}
}
2020-02-29 13:45:56 +01:00
module.exports = Sprite;