fix: bug
This commit is contained in:
parent
35a7067f55
commit
6f995ae005
|
@ -39,14 +39,13 @@ export default class Tutorial extends GameLevel {
|
||||||
//spawn snake()
|
//spawn snake()
|
||||||
if(Math.random() < .0001){
|
if(Math.random() < .0001){
|
||||||
console.log("RANDOM SNAKE!");
|
console.log("RANDOM SNAKE!");
|
||||||
this.addEnemy("Snake", this.player.position.clone().add(new Vec2(0,-320)),{
|
this.addEnemy("Snake", this.player.position.clone().add(new Vec2(0,-320)), EnemyAI, {
|
||||||
player: this.player,
|
player: this.player,
|
||||||
health: 50,
|
health: 50,
|
||||||
tilemap: "Main",
|
tilemap: "Main",
|
||||||
size: new Vec2(14,10),
|
size: new Vec2(14,10),
|
||||||
offset : new Vec2(0, 22),
|
offset : new Vec2(0, 22),
|
||||||
exp: 50,
|
exp: 50,
|
||||||
weapon : this.createWeapon("knife")
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user