asdf-games/asdf/TileSprite.js

12 lines
246 B
JavaScript
Raw Normal View History

import Sprite from "./Sprite.js";
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 };
}
}
export default TileSprite;