فهرست منبع

Initial Commit

Michael Tang 3 سال پیش
والد
کامیت
38e3272a58
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  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));
+}