asdf-games/lib/TileSprite.js

12 lines
218 B
JavaScript
Raw Normal View History

2020-02-29 13:45:56 +01:00
var Sprite = require("./Sprite");
2020-02-20 08:40:50 +01:00
class TileSprite extends Sprite {
constructor(texture, w, h) {
super(texture);
this.tileW = w;
this.tileH = h;
this.frame = { x: 0, y: 0 };
}
}
2020-02-29 13:45:56 +01:00
module.exports = TileSprite;