started skeleton and zombie, added GUI and menu system

Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
2020-07-16 04:42:39 +02:00
parent e3b9eff67d
commit f1d6c7d69f
15 changed files with 1636 additions and 80 deletions
+21
View File
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2020. Antonio Martinez Casadesus and Pascal Syma.
* All rights reserved.
*/
import Enemy from "./Enemy";
export default class Zombie extends Enemy {
constructor(scene, item) {
super(scene, item, "zombie");
}
turnedActive() {
super.turnedActive();
const vel = this.spawnPoint.properties.filter(obj => obj.name === "velocity")[0].value;
this.body.velocity.x = vel;
}
}