瀏覽代碼

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));
+}