12 lines
247 B
JavaScript
12 lines
247 B
JavaScript
import Sprite from "./Sprite.js";
|
|
|
|
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; |