Walkable mask painting
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { Mask } from './mask.js';
|
||||
import { Tile } from './tile.js';
|
||||
|
||||
export abstract class AnimatableTile extends Tile {
|
||||
animations: Map<string, [Keyframe[], object]>;
|
||||
|
||||
constructor(width: number, height: number, animations: Map<string, [Keyframe[], object]>) {
|
||||
super(width, height);
|
||||
constructor(width: number, height: number, masks: Map<string, Mask>, animations: Map<string, [Keyframe[], object]>) {
|
||||
super(width, height, masks);
|
||||
this.animations = animations;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user