Walkable mask painting
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { AnimatableTile } from './animatable_tile.js';
|
||||
export class SimpleTile extends AnimatableTile {
|
||||
constructor(width, height, image_url, animations) {
|
||||
super(width, height, animations);
|
||||
constructor(width, height, masks, animations, image_url) {
|
||||
super(width, height, masks, animations);
|
||||
this.elem.style.backgroundImage = `url('${encodeURIComponent(image_url)}')`;
|
||||
this.elem.style.backgroundSize = 'cover';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user