Versions in this module Expand all Collapse all v0 v0.0.2 Jun 29, 2022 Changes in this version + const BehaviorBoomerang + const BehaviorCircle + const BehaviorKnockback + const BehaviorLasso + const BehaviorLinear + const BehaviorNone + const BehaviorUp + const BehaviorWave + const BulletNone + const BulletPlain + func Clear() + func Draw(screen *ebiten.Image) error + func HitUpdate() + func MoveToFront(bullet *Bullet) + func Update() + type Bullet struct + func At(x, y float64) *Bullet + func Bullets() []*Bullet + func HID(hid string) *Bullet + func Key(index int) *Bullet + func New(b *BulletData, player entity.Entiter, direction int, lifespan time.Time, ...) (*Bullet, error) + func (n *Bullet) AnimationAttack() error + func (n *Bullet) AnimationGotHit() error + func (n *Bullet) Draw(screen *ebiten.Image) error + func (n *Bullet) EntityID() uint + func (n *Bullet) HID() string + func (n *Bullet) IsDead() bool + func (n *Bullet) IsHit(x, y float64) bool + func (n *Bullet) Position() (float64, float64) + func (n *Bullet) SHeight() int + func (n *Bullet) SWidth() int + func (n *Bullet) SetAnimation(name string) error + func (n *Bullet) SetPosition(x, y float64) + func (n *Bullet) X() float64 + func (n *Bullet) Y() float64 + type BulletData struct + BehaviorType int + Damage int + Distance float64 + IsImmortal bool + LayerName string + Lifespan time.Time + MoveSpeed float64 + OffsetX float64 + OffsetY float64 + SourceWeaponType int + SpriteName string