OSDN Git Service

Merge branch 'master' of https://scm.sourceforge.jp/gitroot/h58pcdgame/GameScriptCore...
[h58pcdgame/GameScriptCoreLibrary.git] / www / stage / okubo.js
1
2 // StageObjectsはステージに文字シンボルとして配置したいオブジェクト定義の連想配列である。
3 // StageObjectの各項目の指定方法は以下の二通りある。
4 // ・クラス名指定 ... コンストラクタがに引数が不要な時
5 // a : BlockClass
6 // ・拡張指定
7 // a : {base : FreeItemClass,                   //鋳型となるクラス名
8 //      args : '1190.png',                              //コンストラクタに指定する引数(一つだけの場合) stageは自動で指定されるので不要
9 //      args : ['1190.png', callback],  //二つ以上の場合。やはり第一引数のstageは不要
10 //      prop : {times : 1},                             //各インスタンスに指定したいプロパティの連想配列。(省略可)
11                                                                                 //この例ではaFreeItemClass.timesプロパティを1に指定している
12 //      adjust : [-50, 50],                             //位置の微調整。必ずX座標、Y座標の相対位置を示す配列にする。(省略可)
13 //      extid : 19                                              //ネットワークを超えて一つのオブジェクトである必要がある場合にはゼロではない値を取る(ステージ内で固有の値, 省略可; 既定0)
14 //              sync : true                                             //ネットワーク同期を有効に(addStageObjectの第二引数)(省略可; 既定false)
15
16 var stgObjects = {
17         
18         // BlockClass : 普通のブロック。 引数に画像名を指定
19   
20     b : {base:BlockClass,args:'1150.png'},
21     f : {base:BlockClass,args:'1190.png'},
22     t : {base:BlockClass,args:'1160.png'},
23    x : {base:BlockClass,args:'1236.png'},
24     j : {base:BlockClass,args:'1238.png'},
25     y : {base:BlockClass,args:'1240.png'},
26     h : {base:BlockClass,args:'1239.png'},
27   ab: {base:BlockClass,args:'bridge.png'},
28   
29     
30   
31     i : {base:BlockClass,args:'1235.png'},
32     n : {base:BlockClass,args:'leaves.png'},
33     p : {base:BlockClass,args:'glass.png'},
34     ag : {base:BlockClass,args:'hosikusabelow.png'},
35     r : {base:HiddenBlockClass,args:'hosikusa.png'},
36   
37
38    
39     
40     // SlopeBlockClass : 当たり判定が斜めのブロック。
41     // 引数 : 画像名, 当たり判定領域左側の開始位置のブロック上辺からの高さ, 当たり判定領域右側の...
42     //        たとえば、この例のように 0, 32 と指定すれば右下がりの坂になり、32, 0と指定すれば左下がり、 16, 16と指定すれば半分の高さの長方形になる
43     // enableBlockMode : 当たり判定領域をデバッグ表示する。
44  
45     c : {base:SlopeBlockClass,args:['1152.png',32,0],prop:{enableDebugMode:true}},
46     d : {base:SlopeBlockClass,args:['1213.png',16,16],prop:{enableDebugMode:true}},
47     a : {base:SlopeBlockClass,args:['kusa.png',64,64],prop:{enableDebugMode:true}},
48     g : {base:SlopeBlockClass,args:['1151.png',0,32],prop:{enableDebugMode:true}},
49     e : {base:SlopeBlockClass,args:['1214.png',128,128],prop:{enableDebugMode:true}},
50     l : {base:SlopeBlockClass,args:['leavesedge1.png',16,0],prop:{enableDebugMode:true}},
51     m : {base:SlopeBlockClass,args:['leavesedge2.png',0,16],prop:{enableDebugMode:true}},
52     o : {base:SlopeBlockClass,args:['stop.png',32,32],prop:{enableDebugMode:true}},
53     q : {base:SlopeBlockClass,args:['hosikusa.png',8,8],prop:{enableDebugMode:true}},
54     s : {base:SlopeBlockClass,args:['leaves.png',1500,1500],prop:{enableDebugMode:true}},
55     u : {base:SlopeBlockClass,args:['1162.png',33,-1],prop:{enableDebugMode:true}},
56     w : {base:SlopeBlockClass,args:['1161.png',0,33],prop:{enableDebugMode:true}},
57     z : {base:SlopeBlockClass,args:['1164.png',33,0],prop:{enableDebugMode:true}},
58    aa : {base:SlopeBlockClass,args:['fence.png',600,600],prop:{enableDebugMode:true}},
59    ad : {base:SlopeBlockClass,args:['fence.png',16,16],prop:{enableDebugMode:true}},
60    ae : {base:SlopeBlockClass,args:['toge.png',28,28],prop:{enableDebugMode:true}},
61    af : {base:SlopeBlockClass,args:['toge.png',0,0],prop:{enableDebugMode:true}},
62
63     // FreeItemClass : キャラが取得するとコールバックが実行されるアイテム
64     // callback : 誰かに取得されたときに発生するコールバック。アタックした人、そのアタック直後のx, y座標が引数にセットされる。
65     // times : 取得できる回数で、-1で無限。
66     k : {base:FreeItemClass,args:["1234.png",callBack],prop:{times:1}},
67     
68     ac : {base:FreeItemClass,args:["bridgedameged.png",callBack],prop:{times:141,}},
69     // 何もブロックを置かない位置のためにかならずこのようなエントリーを記述
70     _ : null
71 };
72
73 // FreeItemClassのコールバック
74 function callBack(obj, obj_x, obj_y)
75 {
76         if(obj instanceof MainCharacterClass){
77
78         }
79 }
80
81 var stgInfo = {
82     width: 6400,                                //横サイズ
83     height: 480,                                //縦サイズ
84     background: "back2.png",            //背景画像。横幅は640pxである必要はない。
85     BGM:   "boss.mp3"
86                   //"Metal_Gear_Solid_OST_Encounter.mp3",
87         //"Mount_Blade_With_Fire_and_Sword_OST_-_Happy_Song.mp3",
88 };
89
90 with(stgObjects) {
91     var tbl = [
92          [_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,],
93          [_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,],
94          [_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,],
95          [_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,],
96          [_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,r,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,i,_,_,_,i,i],
97          [_,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b,b,b,b,b,b,b,b,b,b,_,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,],
106          [f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,j,_,_,_,_,_,_,_,_,_,_,_,_,h,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,_,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,]
107  
108     ];
109 }
110 //約束事
111 var stage = new PCDSLStageClass(stgInfo, tbl);
112
113
114 stage.runStage = function(){
115         PCDSLStageClass.prototype.runStage.apply(this, []);
116         var main = new MainCharacterClass(stage, [["nakedman.png","nakedman2.png",]]);
117         main.size.x = 32;
118         main.size.y=64;
119         main.origin.x =0;
120         main.origin.y =0;
121         main.ownerUID = stage.manager.userID;
122         main.movingVelocity = 220;
123
124         stage.userControlledCharacter = main;
125         stage.addStageObject(main, true);
126         
127         var e1 = new EnemyCharacterClass(stage, [["pantank1.png","pantank2.png","pantank3.png","pantankaim.png","pantankfire.png","pantankcooldown.png",]]);
128         e1.size.x = 128;
129         e1.size.y=   128;
130         e1.origin.x =2800;
131         e1.origin.y =0;
132         e1.chasingRange = 700;
133         e1.collisionMarginTop = 90;
134         e1.collisionMarginBottom = 10;
135         e1.ownerUID = stage.manager.userID;
136         e1.movingVelocity = 110;
137
138         
139         stage.addStageObject(e1);
140         
141         var e2 = new EnemyCharacterClass(stage, [["baka_om1.png","baka_om2.png","baka_om3.png","baka_om4.png",]]);
142         e2.size.x = 32;
143         e2.size.y=   32;
144         e2.origin.x =500;
145         e2.origin.y =200;
146         e2.chasingRange = 300;
147         e2.ownerUID = stage.manager.userID;
148         e2.movingVelocity = 160;
149         
150         stage.addStageObject(e2);
151         
152         var e3 = new EnemyCharacterClass(stage, [["farmer1.png","farmer2.png","farmer3.png","farmer4.png","farmeraim.png","farmerfire.png","farmercooldown.png","farmerrelord.png","farmerfire.png","farmercooldown.png","farmerrelord.png","farmerfire.png","farmercooldown.png","farmerrelord.png","farmerfire.png","farmercooldown.png","farmerfire.png","farmer3.png","farmer2.png",]]);
153         e3.size.x = 50;
154         e3.size.y=   100;
155         e3.origin.x =6200;
156         e3.origin.y =300;
157         e3.chasingRange = 600;
158         e3.ownerUID = stage.manager.userID;
159         e3.movingVelocity = 150;
160         
161         stage.addStageObject(e3);
162         
163           var e4 = new EnemyCharacterClass(stage, [["kuma1.png","kuma2.png","kuma3.png","kuma4.png","kumaready.png","kumaswang.png","kuma3.png","kuma2.png",]]);
164         e4.size.x = 64;
165         e4.size.y=   64;
166         e4.origin.x =5000;
167         e4.origin.y =300;
168         e4.chasingRange = 400;
169         e4.ownerUID = stage.manager.userID;
170         e4.movingVelocity = 130;
171         
172         stage.addStageObject(e4);
173         
174         var e5 = new EnemyCharacterClass(stage, [["baka_om1.png","baka_om2.png","baka_om3.png","baka_om4.png",]]);
175         e5.size.x = 32;
176         e5.size.y=   32;
177         e5.origin.x =1440;
178         e5.origin.y =220;
179         e5.chasingRange = 270;
180         e5.collisionMarginTop = 4;
181         e5.ownerUID = stage.manager.userID;
182         e5.movingVelocity = 200;
183         
184         stage.addStageObject(e5);
185         
186          var e7 = new EnemyCharacterClass(stage, [["baka_om1.png","baka_om2.png","baka_om3.png","baka_om4.png",]]);
187         e7.size.x = 32;
188         e7.size.y=   32;
189         e7.origin.x =5596;
190         e7.origin.y =0;
191         e7.chasingRange = 270;
192         e7.ownerUID = stage.manager.userID;
193         e7.movingVelocity = 70;
194         
195         stage.addStageObject(e7);
196         
197          var e8 = new EnemyCharacterClass(stage, [["baka_om1.png","baka_om2.png","baka_om3.png","baka_om4.png",]]);
198         e8.size.x = 32;
199         e8.size.y=   32;
200         e8.origin.x =5532;
201         e8.origin.y =0;
202         e8.chasingRange = 270;
203         e8.ownerUID = stage.manager.userID;
204         e8.movingVelocity = 70;
205         
206         stage.addStageObject(e8);
207         
208         
209          var e9 = new EnemyCharacterClass(stage, [["baka_om1.png","baka_om2.png","baka_om3.png","baka_om4.png",]]);
210         e9.size.x = 32;
211         e9.size.y=   32;
212         e9.origin.x =5564;
213         e9.origin.y =0;
214         e9.chasingRange = 270;
215         e9.ownerUID = stage.manager.userID;
216         e9.movingVelocity = 70;
217         
218         stage.addStageObject(e9);
219         
220         
221         
222         
223         
224         var c1 = new EnemyCharacterClass(stage, [["cowm1.png","cowm2.png","cowm3.png","cowm4.png","cowm3.png","cowm2.png",]]);
225         c1.size.x = 100;
226         c1.size.y=  50;
227         c1.origin.x =730;
228         c1.origin.y =0;
229         c1.chasingRange = 200;
230         c1.ownerUID = stage.manager.userID;
231         c1.movingVelocity = 80;
232         c1.collisionMarginTop = 14;
233         c1.collisionMarginRight = 16;
234         c1.collisionMarginLeft = 16;
235         
236         stage.addStageObject(c1);
237         
238         
239         var c2 = new EnemyCharacterClass(stage, [["cowm1.png","cowm2.png","cowm3.png","cowm4.png","cowm3.png","cowm2.png",]]);
240         c2.size.x = 105;
241         c2.size.y=  55;
242         c2.origin.x =820;
243         c2.origin.y =0;
244         c2.chasingRange = 200;
245         c2.ownerUID = stage.manager.userID;
246         c2.movingVelocity = 150;
247         c2.collisionMarginTop = 14;
248         c2.collisionMarginRight = 16;
249         c2.collisionMarginLeft = 16;
250         
251         stage.addStageObject(c2);
252
253         
254         
255         
256         
257
258 var barn = new BlockClass(stage, ["barn.png",]);;
259
260 barn.size.x = 200;
261 barn.size.y = 150;
262 barn.origin.x = 1300;
263 barn.origin.y =236;
264 barn.collisionMarginTop = 45;
265 barn.collisionMarginRight = 30;
266 stage.addStageObject(barn);
267
268 var barn2 = new SlopeBlockClass(stage, ["barn.png", 49, 49]);
269
270 barn2.size.x = 170;
271 barn2.size.y = 150;
272 barn2.origin.x = 3700;
273 barn2.origin.y =266;
274 stage.addStageObject(barn2);
275
276 var windmill = new SlopeBlockClass(stage, ["windmill.png", 5, 5]);
277 windmill.size.x = 50;
278 windmill.size.y = 150;
279 windmill.origin.x = 1600;
280 windmill.origin.y =236;
281 stage.addStageObject(windmill);
282
283
284
285 var fence0 = new SlopeBlockClass(stage, ["fence.png", 16, 16]);
286 fence0.size.x = 32;
287 fence0.size.y = 32;
288 fence0.origin.x = 672;
289 fence0.origin.y = 352;
290 stage.addStageObject(fence0);
291
292 var fence13 = new SlopeBlockClass(stage, ["fence.png", 32, 32]);
293 fence13.size.x = 32;
294 fence13.size.y = 32;
295 fence13.origin.x = 704;
296 fence13.origin.y = 352;
297 stage.addStageObject(fence13);
298
299 var fence = new SlopeBlockClass(stage, ["fence.png", 32, 32]);
300 fence.size.x = 32;
301 fence.size.y = 32;
302 fence.origin.x = 736;
303 fence.origin.y = 352;
304 stage.addStageObject(fence);
305
306 var fence2 = new SlopeBlockClass(stage, ["fence.png", 32, 32]);
307 fence2.size.x = 32;
308 fence2.size.y = 32;
309 fence2.origin.x = 768;
310 fence2.origin.y = 352;
311 stage.addStageObject(fence2);
312
313 var fence3 = new SlopeBlockClass(stage, ["fence.png", 32, 32]);
314 fence3.size.x = 32;
315 fence3.size.y = 32;
316 fence3.origin.x = 800;
317 fence3.origin.y = 352;
318 stage.addStageObject(fence3);
319
320 var fence4 = new SlopeBlockClass(stage, ["fence.png", 32, 32]);
321 fence4.size.x = 32;
322 fence4.size.y = 32;
323 fence4.origin.x = 832;
324 fence4.origin.y = 352;
325 stage.addStageObject(fence4);
326
327 var fence5 = new SlopeBlockClass(stage, ["fence.png", 32, 32]);
328 fence5.size.x = 32;
329 fence5.size.y = 32;
330 fence5.origin.x = 864;
331 fence5.origin.y = 352;
332 stage.addStageObject(fence5);
333
334 var fence6 = new SlopeBlockClass(stage, ["fence.png", 32, 32]);
335 fence6.size.x = 32;
336 fence6.size.y = 32;
337 fence6.origin.x = 896;
338 fence6.origin.y = 352;
339 stage.addStageObject(fence6);
340
341 var fence7 = new SlopeBlockClass(stage, ["fence.png", 32, 32]);
342 fence7.size.x = 32;
343 fence7.size.y = 32;
344 fence7.origin.x = 928;
345 fence7.origin.y = 352;
346 stage.addStageObject(fence7);
347
348 var fence8 = new SlopeBlockClass(stage, ["fence.png", 32, 32]);
349 fence8.size.x = 32;
350 fence8.size.y = 32;
351 fence8.origin.x = 960;
352 fence8.origin.y = 352;
353 stage.addStageObject(fence8);
354
355 var fence9 = new SlopeBlockClass(stage, ["fence.png", 32, 32]);
356 fence9.size.x = 32;
357 fence9.size.y = 32;
358 fence9.origin.x = 992;
359 fence9.origin.y = 352;
360 stage.addStageObject(fence9);
361
362 var fence10 = new SlopeBlockClass(stage, ["fence.png", 16, 16]);
363 fence10.size.x = 32;
364 fence10.size.y = 32;
365 fence10.origin.x = 1024;
366 fence10.origin.y = 352;
367 stage.addStageObject(fence10);
368
369 var fence11 = new SlopeBlockClass(stage, ["fence.png", 16, 16]);
370 fence11.size.x = 32;
371 fence11.size.y = 32;
372 fence11.origin.x = 3712;
373 fence11.origin.y = 384;
374 stage.addStageObject(fence11);
375
376 var fence12 = new SlopeBlockClass(stage, ["fence.png", 16, 16]);
377 fence12.size.x = 32;
378 fence12.size.y = 32;
379 fence12.origin.x = 3680;
380 fence12.origin.y = 384;
381 stage.addStageObject(fence12);
382
383 var cow4 = new SlopeBlockClass(stage, ["cow.png", 14, 14]);
384 cow4.size.x = 100;
385 cow4.size.y = 50;
386 cow4.origin.x = 4010;
387 cow4.origin.y = 367;
388 stage.addStageObject(cow4);
389
390 var cow5 = new SlopeBlockClass(stage, ["cow2.png", 14, 14]);
391 cow5.size.x = 100;
392 cow5.size.y = 50;
393 cow5.origin.x = 4180;
394 cow5.origin.y = 367;
395 stage.addStageObject(cow5);
396
397 var cow6 = new SlopeBlockClass(stage, ["cow.png", 70, 70]);
398 cow6.size.x = 100;
399 cow6.size.y = 50;
400 cow6.origin.x = 4420;
401 cow6.origin.y = 367;
402 stage.addStageObject(cow6);
403
404 var cow7 = new SlopeBlockClass(stage, ["cow2.png", 14, 14]);
405 cow7.size.x = 100;
406 cow7.size.y = 50;
407 cow7.origin.x = 4510;
408 cow7.origin.y = 367;
409 stage.addStageObject(cow7);
410
411
412 },
413
414
415 stage;