10 lines
379 B
JavaScript
10 lines
379 B
JavaScript
import { Tile } from './tile.js';
|
|
export class SimpleTile extends Tile {
|
|
constructor(width, height, image_url, animations) {
|
|
super(width, height);
|
|
this.elem.style.backgroundImage = `url('${encodeURIComponent(image_url)}')`;
|
|
this.elem.style.backgroundSize = 'cover';
|
|
this.animations = animations;
|
|
}
|
|
}
|
|
//# sourceMappingURL=simple_tile.js.map
|