[common] bonus config duration
This commit is contained in:
@@ -125,6 +125,8 @@ class Render extends SpriteView implements EngineListener {
|
||||
}
|
||||
}
|
||||
|
||||
public function onChange(entity:EntityType):Void {}
|
||||
|
||||
public function onCollision(entity:EntityType, with:EntityType):Void {
|
||||
switch [entity, with] {
|
||||
case [EntityType.BULLET(_), EntityType.EAGLE(eagle)]:
|
||||
|
||||
@@ -278,8 +278,8 @@ class BonusItem extends AnimateItem<Bonus> {
|
||||
}
|
||||
|
||||
override public function redraw():Void {
|
||||
var image = Assets.getBitmapData('resources/image/bonus/${value.bonusType}.png');
|
||||
view.frames = AnimateBundle.bonusFrames(value.bonusType);
|
||||
var image = Assets.getBitmapData('resources/image/bonus/${value.config.type}.png');
|
||||
view.frames = AnimateBundle.bonusFrames(value.config.type);
|
||||
view.playing = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user