Prototype walking monster

This commit is contained in:
Ian Gulliver
2021-05-13 04:09:46 +00:00
parent 6cc4e620ee
commit d1bdcf5485
28 changed files with 127 additions and 848 deletions

View File

@@ -1,8 +1,9 @@
import { AnimatableTile } from './animatable_tile.js';
import { Tile } from './tile.js';
export class SequenceTile extends Tile {
constructor(width: number, height: number, tiles: Tile[], delay: number, repeat: boolean) {
super(width, height);
export class SequenceTile extends AnimatableTile {
constructor(width: number, height: number, animations: Map<string, [Keyframe[], object]>, tiles: Tile[], delay: number, repeat: boolean) {
super(width, height, animations);
this.elem.style.position = 'relative';