33 lines
906 B
ActionScript
33 lines
906 B
ActionScript
package com.arc.dh.objects
|
|
{
|
|
import com.arc.dh.util.Data;
|
|
import com.arc.flixel.ArcParticleSystem;
|
|
|
|
public class BulletSpreader extends Bullet
|
|
{
|
|
|
|
public static const sprite:Class = BulletSpreader_sprite;
|
|
|
|
public static const spriteGreen:Class = BulletSpreader_spriteGreen;
|
|
|
|
public function BulletSpreader(param1:Number, param2:Number, param3:Number, param4:Number)
|
|
{
|
|
super(param1,param2,param3,param4);
|
|
loadGraphic(sprite,false,false,4,4);
|
|
}
|
|
|
|
override public function kill() : void
|
|
{
|
|
ArcParticleSystem.emit(Data.state.particles,"prime",x + width / 2,y + width / 2,1,1,3,400,-60,60,-100,0);
|
|
alive = false;
|
|
exists = false;
|
|
}
|
|
|
|
public function green() : void
|
|
{
|
|
loadGraphic(spriteGreen,false,false,4,4);
|
|
}
|
|
}
|
|
}
|
|
|