-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHateVirus.as
38 lines (30 loc) · 1 KB
/
HateVirus.as
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package classes {
import starling.events.Event;
import flash.utils.*;
public class HateVirus extends Combatant{
public var idleMc:SuperMovieClip = new SuperMovieClip('hateVirus', GV.BOSS4_SPRITESHEET, 0, -10);
public var projectileMc:SuperMovieClip = new SuperMovieClip('invisImg', GV.COMBATANT_SPRITESHEET, 0, 0, true);
public function HateVirus(){
introMessage = introMessageRandomizer(new <String>["My power is immeasurable."]);
floats = true;
}
public function uniqueAi():void{
startAbility(slots[BLUE]);
attackAI();
if(GV.arena.currEnemyNum < GV.MAX_ENEMY_NUM){
startAbility(slots[GREEN], GV.arena.getRandomFreePos());
}
}
public function uniqueNullItAll():void{
superNull(idleMc); idleMc = null;
superNull(projectileMc); projectileMc = null;
}
public function abilityAnimation():void{
shakeAnimation(250, false);
FX.showParticleEffect(FX.poofPool, x, y, 0.1);
}
public function uniqueIdleAnimation():void{
changeAnimation(idleMc);
}
}
}