Tower class hierarchy
This commit is contained in:
10
js/simple_tile.js
Normal file
10
js/simple_tile.js
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user