added attacks and dynamic enemy spawning

Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
2020-07-13 16:37:56 +02:00
parent 7c4d08cf8f
commit c2befeaa2b
9 changed files with 80 additions and 16 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ export default class AttackA extends Hitbox {
constructor(player) {
super(player, 5);
this.body.setSize(42, 32, true);
this.body.setOffset(1, -10);
this.body.setSize(42, 20, true);
this.body.setOffset(1, 8);
}
start() {