2021-05-11 05:28:20 +00:00
|
|
|
import { AnimatableTile } from './animatable_tile.js';
|
|
|
|
|
export class SimpleTile extends AnimatableTile {
|
2021-05-17 04:26:18 +00:00
|
|
|
constructor(width, height, masks, animations, image_url) {
|
|
|
|
|
super(width, height, masks, animations);
|
2021-05-11 02:57:17 +00:00
|
|
|
this.elem.style.backgroundImage = `url('${encodeURIComponent(image_url)}')`;
|
|
|
|
|
this.elem.style.backgroundSize = 'cover';
|
2021-05-11 03:12:32 +00:00
|
|
|
}
|
2021-05-11 02:57:17 +00:00
|
|
|
}
|
|
|
|
|
//# sourceMappingURL=simple_tile.js.map
|