OSDN Git Service

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