OSDN Git Service

辛夷祭初日の緊急修正多数。
[h58pcdgame/GameScriptCoreLibrary.git] / www / corelib / classes / EnemyCharacters / EnemyCharacterClass_Frog.js
1 var EnemyCharacterClass_Frog = function(stage, args){\r
2         EnemyCharacterClass_Frog.base.apply(this, [stage, [["toad.png","toad2.png","toad3.png",]]]);\r
3 \r
4         this.size.x = 32;\r
5         this.size.y = 32;\r
6         \r
7         this.chasingRange = 300;\r
8         \r
9         this.movingVelocity = 100;\r
10         this.max_HP = 10;\r
11         this.HP = this.max_HP;\r
12 \r
13         this.jumpPower = 100;\r
14         \r
15         stage.addStageObject(this);\r
16 }.extend(EnemyCharacterClass, {\r
17         className: "EnemyCharacterClass_Frog",\r
18         goLeft : function(){\r
19                 EnemyCharacterClass_Frog.base.prototype.goLeft.apply(this);\r
20                 EnemyCharacterClass_Frog.base.prototype.jump.apply(this);\r
21         },\r
22         \r
23         //\92Ê\8fí\89E\82É\90i\82Þ\82Æ\82«\82É\8cÄ\82Î\82ê\82é\81B\r
24         goRight : function(){\r
25                 EnemyCharacterClass_Frog.base.prototype.goRight.apply(this);\r
26                 EnemyCharacterClass_Frog.base.prototype.jump.apply(this);\r
27         },\r
28 \r
29         tick : function()\r
30         {\r
31                 this.checkTouchingDirection();\r
32                 if((this.touchingDirection & CollideBottom) != 0)\r
33                 {\r
34                         this.isGround = true;\r
35                 }\r
36                 \r
37                 EnemyCharacterClass_Frog.base.prototype.tick.apply(this);\r
38         },\r
39         \r
40 });\r