OSDN Git Service

ステージなおシー
authorisuke <namahage.toshi@gmail.com>
Mon, 26 Aug 2013 11:34:14 +0000 (20:34 +0900)
committerisuke <namahage.toshi@gmail.com>
Mon, 26 Aug 2013 11:34:14 +0000 (20:34 +0900)
www/stage/okubo.js
www/stage/sea.js

index 4a429dc..e24610c 100644 (file)
@@ -1,18 +1,3 @@
-
-// StageObjectsはステージに文字シンボルとして配置したいオブジェクト定義の連想配列である。
-// StageObjectの各項目の指定方法は以下の二通りある。
-// ・クラス名指定 ... コンストラクタがに引数が不要な時
-// a : BlockClass
-// ・拡張指定
-// a : {base : FreeItemClass,                  //鋳型となるクラス名
-//      args : '1190.png',                             //コンストラクタに指定する引数(一つだけの場合) stageは自動で指定されるので不要
-//      args : ['1190.png', callback], //二つ以上の場合。やはり第一引数のstageは不要
-//      prop : {times : 1},                            //各インスタンスに指定したいプロパティの連想配列。(省略可)
-                                                                               //この例ではaFreeItemClass.timesプロパティを1に指定している
-//      adjust : [-50, 50],                            //位置の微調整。必ずX座標、Y座標の相対位置を示す配列にする。(省略可)
-//      extid : 19                                             //ネットワークを超えて一つのオブジェクトである必要がある場合にはゼロではない値を取る(ステージ内で固有の値, 省略可; 既定0)
-//             sync : true                                             //ネットワーク同期を有効に(addStageObjectの第二引数)(省略可; 既定false)
-
 var stgObjects = {
        
        // BlockClass : 普通のブロック。 引数に画像名を指定
@@ -32,7 +17,7 @@ var stgObjects = {
     n : {base:BlockClass,args:'leaves.png'},
     p : {base:BlockClass,args:'glass.png'},
     ag : {base:BlockClass,args:'hosikusabelow.png'},
-    r : {base:HiddenBlockClass,args:'hosikusa.png'},
+    r : {base:HiddenBlockClass,args:'hosikusa.png', prop:{collidingMask:CollideBottom, collidingExcludeMask:(CollideRight | CollideTop | CollideLeft | CollideBody)}},
   
 
    
@@ -50,10 +35,10 @@ var stgObjects = {
     l : {base:SlopeBlockClass,args:['leavesedge1.png',16,0],prop:{enableDebugMode:true}},
     m : {base:SlopeBlockClass,args:['leavesedge2.png',0,16],prop:{enableDebugMode:true}},
     o : {base:SlopeBlockClass,args:['stop.png',35,35],prop:{enableDebugMode:true}},
-    q : {base:SlopeBlockClass,args:['hosikusa.png',8,8],prop:{enableDebugMode:true}},
+    q : {base:SlopeBlockClass,args:['hosikusa.png',9,9],prop:{enableDebugMode:true}},
     s : {base:SlopeBlockClass,args:['leaves.png',1500,1500],prop:{enableDebugMode:true}},
     u : {base:SlopeBlockClass,args:['1162.png',33,-3],prop:{enableDebugMode:true}},
-    w : {base:SlopeBlockClass,args:['1161.png',-4,33],prop:{enableDebugMode:true}},
+    w : {base:SlopeBlockClass,args:['1161.png',-3,33],prop:{enableDebugMode:true}},
     z : {base:SlopeBlockClass,args:['1164.png',33,-3],prop:{enableDebugMode:true}},
    aa : {base:SlopeBlockClass,args:['fence.png',600,600],prop:{enableDebugMode:true}},
    ad : {base:SlopeBlockClass,args:['fence.png',16,16],prop:{enableDebugMode:true}},
@@ -119,7 +104,7 @@ stage.runStage = function(){
        main.origin.x =0;
        main.origin.y =0;
        main.ownerUID = stage.manager.userID;
-        main.movingVelocity = 210;
+        main.movingVelocity = 205;
 
        stage.userControlledCharacter = main;
        stage.addStageObject(main, true);
@@ -133,7 +118,7 @@ stage.runStage = function(){
        e1.collisionMargin.top = 90;
        e1.collisionMargin.bottom = 10;
        e1.ownerUID = stage.manager.userID;
-        e1.movingVelocity = 115;
+        e1.movingVelocity = 130;
         e1.touchDamage = 30;
        
        
@@ -153,6 +138,7 @@ stage.runStage = function(){
        e2.origin.x =500;
        e2.origin.y =200;
        e2.chasingRange = 300;
+       
        e2.ownerUID = stage.manager.userID;
         e2.movingVelocity = 160;
         e2.max_HP = 10;
@@ -193,7 +179,7 @@ stage.runStage = function(){
        e5.origin.x =1440;
        e5.origin.y =220;
        e5.chasingRange = 270;
-       e5.collisionMargin.top = 4;
+       e5.collisionMargin.top = 15;
        e5.ownerUID = stage.manager.userID;
         e5.movingVelocity = 200;
         
@@ -318,7 +304,7 @@ barn.size.x = 200;
 barn.size.y = 150;
 barn.origin.x = 1332;
 barn.origin.y =236;
-barn.collisionMargin.top = 45;
+barn.collisionMargin.top = 44;
 barn.collisionMargin.right = 30;
 stage.addStageObject(barn);
 
index 85d2f51..9f4e125 100644 (file)
@@ -1,43 +1,31 @@
-// StageObjectsはステージに文字シンボルとして配置したいオブジェクト定義の連想配列である。
-// StageObjectの各項目の指定方法は以下の二通りある。
-// ・クラス名指定 ... コンストラクタがに引数が不要な時
-// a : BlockClass
-// ・拡張指定
-// a : {base : FreeItemClass,                  //鋳型となるクラス名
-//      args : '1190.png',                             //コンストラクタに指定する引数(一つだけの場合) stageは自動で指定されるので不要
-//      args : ['1190.png', callback], //二つ以上の場合。やはり第一引数のstageは不要
-//      prop : {times : 1},                            //各インスタンスに指定したいプロパティの連想配列。(省略可)
-                                                                               //この例ではaFreeItemClass.timesプロパティを1に指定している
-//      adjust : [-50, 50],                            //位置の微調整。必ずX座標、Y座標の相対位置を示す配列にする。(省略可)
-//      extid : 19                                             //ネットワークを超えて一つのオブジェクトである必要がある場合にはゼロではない値を取る(ステージ内で固有の値, 省略可; 既定0)
-//             sync : true                                             //ネットワーク同期を有効に(addStageObjectの第二引数)(省略可; 既定false)
-
 var stgObjects = {
        
        // BlockClass : 普通のブロック。 引数に画像名を指定
     a : {base:BlockClass,args:'1241.png'},
     d : {base:BlockClass,args:'1248.png'},
     e : {base:BlockClass,args:'1244.png'},
-    n : {base:HiddenBlockClass,args:'1244.png'},
+    n : {base:HiddenBlockClass,args:'1244.png', prop:{collidingMask:CollideRight, collidingExcludeMask:(CollideLeft | CollideTop | CollideBody)}},
+    p : {base:HiddenBlockClass,args:'1241.png', prop:{collidingMask:CollideBottom, collidingExcludeMask:(CollideLeft |CollideRight| CollideTop)}},
     f : {base:BlockClass,args:'1245.png'},
     o : {base:BlockClass,args:'palm_body.png'},
     // SlopeBlockClass : 当たり判定が斜めのブロック。
     // 引数 : 画像名, 当たり判定領域左側の開始位置のブロック上辺からの高さ, 当たり判定領域右側の...
     //        たとえば、この例のように 0, 32 と指定すれば右下がりの坂になり、32, 0と指定すれば左下がり、 16, 16と指定すれば半分の高さの長方形になる
     // enableBlockMode : 当たり判定領域をデバッグ表示する。
-    b : {base:SlopeBlockClass,args:['1243.png',0,32],prop:{enableDebugMode:true}},
-    g : {base:SlopeBlockClass,args:['1242.png',32,0],prop:{enableDebugMode:true}},
+    b : {base:SlopeBlockClass,args:['1243.png',-1,33],prop:{enableDebugMode:true}},
+    g : {base:SlopeBlockClass,args:['1242.png',33,-1],prop:{enableDebugMode:true}},
     h : {base:SlopeBlockClass,args:['1246.png',32,0],prop:{enableDebugMode:true}},
     i : {base:SlopeBlockClass,args:['1247.png',0,32],prop:{enableDebugMode:true}},
     j : {base:SlopeBlockClass,args:['1244.png',600,600],prop:{enableDebugMode:true}},
     k : {base:SlopeBlockClass,args:['1246.png',600,600],prop:{enableDebugMode:true}},
     l : {base:SlopeBlockClass,args:['1247.png',600,600],prop:{enableDebugMode:true}},
     m : {base:SlopeBlockClass,args:['1241.png',600,600],prop:{enableDebugMode:true}},
+    
    
     // FreeItemClass : キャラが取得するとコールバックが実行されるアイテム
     // callback : 誰かに取得されたときに発生するコールバック。アタックした人、そのアタック直後のx, y座標が引数にセットされる。
     // times : 取得できる回数で、-1で無限。
-    c : {base:FreeItemClass,args:["1234.png",callBack],prop:{times:1}},
+    c : {base:FreeItemClass,args:["1248.png",callBack],prop:{times:1}},
     
     // 何もブロックを置かない位置のためにかならずこのようなエントリーを記述
     _ : null
@@ -66,18 +54,18 @@ with(stgObjects){
                [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
                [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
                [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
-               [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
-               [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
-               [ , , , ,_, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
-               [ , , , , , , , , , , , , , ,_, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
-               [ , , , , , , , , , , , , , ,o, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
-               [ , , , , , , , , , , , , , ,o, , , , , , , , , , , , , , , , , , , , , , , ,g,a,a,a,a,a,a,a,b, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
+               [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,o, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
+               [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,_, , , ,o, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
+               [ , , , ,_, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,o, , , ,o, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
+               [ , , , , , , , , , , , , , ,_, , , , , , , , , , , , , , , , , , , , , , , , , , ,o, , , ,o, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
+               [ , , , , , , , , , , , , , ,o, , , , , , , , , , , , , , , , , , , , , , , , , , ,o, , , ,o, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
+               [ , , , , , , , ,_,p, , , , ,o, , , , , , , , , , , , , , , , , , , , , , , ,g,a,a,a,a,a,c,a,b, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
                [b, , , , , , , , , , , , , ,o, , , , , , , , , , , , , , , , , , , , ,g,a,a,m,m,m,m,m,m,m,m,m,a,a,a,a,b, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
-               [a,a,a,b, , , , , , , , ,_,g,a,b, , , , , , , ,_,_,g,a,a,a,a,a,a,a,a,a,a,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,b, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
-               [e,e,e,e,i,_,_,_,_,_,_,_,h,e,e,e,i,_,_,_,_,_,_,_,h,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
-               [e,e,e,e,e,i,_,_,_,_,_,h,e,e,f,e,e,e,e,i,_,_,_,h,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
-               [e,e,e,e,e,e,_,_,_,_,h,e,e,e,e,e,e,e,e,e,i,_,k,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
-               [e,e,f,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,j,e,e,j,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,f,e,e,e,e,e,e,e,e,e,e, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ]
+               [a,a,a,b, , , , ,_, , , ,_,g,a,b, , , , , , , ,_,_,g,a,a,a,a,a,a,a,a,a,a,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,b,p,p,p,g,a,a,a,b, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
+               [e,e,e,e,i,_,_,_,_,_,_,_,h,e,e,e,i,_,_,_,_,_,_,_,h,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,e,_,_,_,e,e,e,e,e,e,n,n,n,n,n,n,n,n,n,n,n,n,n,e,e,e,e,e,e,e,e,e,e, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
+               [e,e,e,e,e,i,_,_,_,_,_,h,e,e,f,e,e,e,e,i,_,_,_,h,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,e, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
+               [e,e,e,e,e,e,_,_,_,_,h,e,e,e,e,e,e,e,e,e,i,_,k,n,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,e, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ],
+               [e,e,f,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,j,e,e,j,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,j,e,e,e,f,e,e,e,e,e,e,i,_,_,_, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ]
        ];
 }
 
@@ -89,7 +77,7 @@ stage.runStage = function(){
        var main = new MainCharacterClass(stage, [["bowman1.png","bowman2.png","bowman3.png", "bowman4.png", "bowman3.png", "bowman2.png","bowman-aim.png","bowman-shot.png",]]);
        main.size.x = 32;
        main.size.y=64;
-       main.origin.x = 50;
+       main.origin.x = 1450;
        main.origin.y =0;
        main.collisionMargin.bottom = 0;
        main.ownerUID = stage.manager.userID;
@@ -109,6 +97,102 @@ leaf.collisionMargin.top = 900;
 leaf.collisionMargin.right = 0;
 stage.addStageObject(leaf);
 
+var leaf1 = new BlockClass(stage, ["palm_leaf.png",]);
+
+leaf1.size.x = 140;
+leaf1.size.y = 140;
+leaf1.origin.x = 1250;
+leaf1.origin.y =60;
+leaf1.collisionMargin.top = 900;
+leaf1.collisionMargin.right = 0;
+stage.addStageObject(leaf1);
+
+var leaf2 = new BlockClass(stage, ["palm_leaf.png",]);
+
+leaf2.size.x = 140;
+leaf2.size.y = 140;
+leaf2.origin.x = 1385;
+leaf2.origin.y =30;
+leaf2.collisionMargin.top = 900;
+leaf2.collisionMargin.right = 0;
+stage.addStageObject(leaf2);
+
+var cover = new BlockClass(stage, ["1245.png",]);
+
+cover.size.x = 32;
+cover.size.y = 32;
+cover.origin.x = 736;
+cover.origin.y =416;
+cover.collisionMargin.top =900;
+
+stage.addStageObject(cover);
+
+
+
+
+
+
+var e1 = new EnemyCharacterClass(stage, [["kani3.png","kani2.png","kani1.png","kani2.png",]]);
+       e1.size.x = 40;
+       e1.size.y=  40;
+       e1.origin.x =930;
+       e1.origin.y =0;
+       e1.chasingRange = 300;
+       e1.collisionMargin.top = 20;
+       e1.hurt = 0
+        e1.movingVelocity = 50;
+        e1.touchDamage = 20;
+        stage.addStageObject(e1);
+        
+        var e2 = new EnemyCharacterClass(stage, [["kani3.png","kani2.png","kani1.png","kani2.png",]]);
+       e2.size.x = 40;
+       e2.size.y=  40;
+       e2.origin.x =990;
+       e2.origin.y =0;
+       e2.chasingRange = 300;
+       e2.collisionMargin.top = 20;
+       e2.hurt= 0;
+        e2.movingVelocity = 50;
+        e2.touchDamage = 20;
+        stage.addStageObject(e2);
+        
+        var e3 = new EnemyCharacterClass(stage, [["kani3.png","kani2.png","kani1.png","kani2.png",]]);
+       e3.size.x = 40;
+       e3.size.y=  40;
+       e3.origin.x =1050;
+       e3.origin.y =0;
+       e3.chasingRange = 300;
+       e3.collisionMargin.top = 20;
+       e3.hurt=0;
+        e3.movingVelocity = 50;
+        e3.touchDamage = 20;
+        stage.addStageObject(e3);
+        
+        var e4 = new EnemyCharacterClass(stage, [["kani3.png","kani2.png","kani1.png","kani2.png",]]);
+       e4.size.x = 40;
+       e4.size.y=  40;
+       e4.origin.x =1110;
+       e4.origin.y =0;
+       e4.chasingRange = 300;
+       e4.collisionMargin.top = 20;
+       
+        e4.movingVelocity = 50;
+        e4.touchDamage = 20;
+        e4.hurt = 0;
+        stage.addStageObject(e4);
+        
+        var e5 = new EnemyCharacterClass(stage, [["kani3.png","kani2.png","kani1.png","kani2.png",]]);
+       e5.size.x = 40;
+       e5.size.y=  40;
+       e5.origin.x =1210;
+       e5.origin.y =0;
+       e5.chasingRange = 300;
+       e5.collisionMargin.top = 20;
+       
+        e5.movingVelocity = 50;
+        e5.touchDamage = 20;
+        e5.hurt = 0;
+        stage.addStageObject(e4);
 },