change snake spawn chance
This commit is contained in:
parent
5d9d43e4a4
commit
2cd51cdbbd
|
@ -37,7 +37,7 @@ export default class Tutorial extends GameLevel {
|
||||||
super.updateScene(deltaT);
|
super.updateScene(deltaT);
|
||||||
|
|
||||||
//spawn snake()
|
//spawn snake()
|
||||||
if(Math.random() < .002){
|
if(Math.random() < .001){
|
||||||
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)),{
|
||||||
player: this.player,
|
player: this.player,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user