whack-a-ninja 163 B

12345
  1. //Scene - Initialize When Scene Starts
  2. //Generate random number between 1 and 5;
  3. if($this.scene.state() == "PLAY"){
  4. $this.ninjaNum = Math.round(random(5,1));
  5. }