Documentation ¶
Index ¶
- Constants
- func Clear()
- func Draw(screen *ebiten.Image) error
- func HitUpdate()
- func MoveToFront(item *Item)
- func Update()
- type Item
- func (n *Item) AnimationAttack() error
- func (n *Item) AnimationGotHit() error
- func (n *Item) Draw(screen *ebiten.Image) error
- func (n *Item) EntityID() uint
- func (n *Item) HID() string
- func (n *Item) IsDead() bool
- func (n *Item) IsHit(x, y float64) bool
- func (n *Item) Position() (float64, float64)
- func (n *Item) SHeight() int
- func (n *Item) SWidth() int
- func (n *Item) SetAnimation(name string) error
- func (n *Item) SetPosition(x, y float64)
- func (n *Item) X() float64
- func (n *Item) Y() float64
- type ItemData
Constants ¶
View Source
const ( ItemNone = iota ItemRupee ItemGreenRupee ItemRedRupee ItemHeart )
Variables ¶
This section is empty.
Functions ¶
func MoveToFront ¶
func MoveToFront(item *Item)
Types ¶
type Item ¶
type Item struct { Data *ItemData // contains filtered or unexported fields }
func (*Item) AnimationAttack ¶
func (*Item) AnimationGotHit ¶
func (*Item) SetAnimation ¶
SetAnimation sets the animation of the item
func (*Item) SetPosition ¶
Click to show internal directories.
Click to hide internal directories.