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,7 +1,7 @@
import { Tile } from './tile.js';
export class SequenceTile extends Tile {
constructor(width, height, tiles, delay, repeat) {
super(width, height);
import { AnimatableTile } from './animatable_tile.js';
export class SequenceTile extends AnimatableTile {
constructor(width, height, animations, tiles, delay, repeat) {
super(width, height, animations);
this.elem.style.position = 'relative';
const tile_chunk = 1 / tiles.length;
let animation = null;