OSDN Git Service

クラス名のミスを修正
[h58pcdgame/GameScriptCoreLibrary.git] / www / corelib / classes / EnemyCharacters / EnemyCharacterClass_PanTank.js
1 var EnemyCharacterClass_PanTank = function(stage, args){
2         EnemyCharacterClass_PanTank.base.apply(this, [stage, [["pantank1.png","pantank2.png","pantank3.png","pantankaim.png","pantankfire.png","pantankcooldown.png",]]]);
3
4         this.size.x = 128;
5         this.size.y = 128;
6         
7         this.chasingRange = 700;
8         this.collisionMargin.top = 90;
9         this.collisionMargin.bottom = 10;
10         
11         this.movingVelocity = 130;
12         
13         this.touchDamage = 30;
14         this.hurt = 0;
15         this.max_HP = 80;
16         this.HP = this.max_HP;
17         
18         this.isItemCollector = false;
19         this.isWeaponed = true;
20
21         stage.addStageObject(this);
22 }.extend(EnemyCharacterClass, {
23         className: "EnemyCharacterClass_PanTank",
24         fire: function()
25         {
26                 if(this.lastFireTick < this.ownerStage.manager.tickCount - this.fireTickInterval){
27                         var f = new FireObjectClass(this.ownerStage, [["bullet.png"]]);
28                         f.maxBoundCount = 1;
29                         f.size.x = 16;
30                         f.size.y = 16;
31                         f.fire(this);
32                         this.lastFireTick = this.ownerStage.manager.tickCount;
33                 }
34         },
35 });