func (o *explosion) HandleEvent(ev tcell.Event) bool { switch ev := ev.(type) { case *EventSpriteFrame: if ev.Frame() == "" { o.level.RemoveSprite(ev.Sprite()) } } return false }