Explorar o código

Initial Commit

Michael Tang %!s(int64=3) %!d(string=hai) anos
pai
achega
38e3272a58
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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));
+}