Documentation ¶
Index ¶
- Constants
- func Clear()
- func Draw(screen *ebiten.Image) error
- func IsCollision(x, y float64) bool
- func Update()
- func X() float64
- func Y() float64
- type SpriteData
- type World
- func (n *World) AnimationAttack() error
- func (n *World) AnimationGotHit() error
- func (n *World) Draw(screen *ebiten.Image) error
- func (n *World) EntityID() uint
- func (n *World) HID() string
- func (n *World) IsHit(x, y float64) bool
- func (n *World) Position() (float64, float64)
- func (n *World) SHeight() int
- func (n *World) SWidth() int
- func (n *World) SetPosition(x, y float64)
- func (n *World) Update()
- func (n *World) X() float64
- func (n *World) Y() float64
- type WorldData
Constants ¶
View Source
const ( WorldNone = iota WorldGrass )
Variables ¶
This section is empty.
Functions ¶
func IsCollision ¶
Types ¶
type SpriteData ¶
type SpriteData struct {
// contains filtered or unexported fields
}
type World ¶
type World struct {
// contains filtered or unexported fields
}
func (*World) AnimationAttack ¶
func (*World) AnimationGotHit ¶
func (*World) SetPosition ¶
type WorldData ¶
type WorldData struct { Tilemap *SpriteData Icon *SpriteData }
Click to show internal directories.
Click to hide internal directories.