소스 검색

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