Ver código fonte

Initial Commit

Michael Tang 3 anos atrás
pai
commit
38e3272a58
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      orange/whack-a-ninja

+ 5 - 0
orange/whack-a-ninja

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