Documentation ¶
Index ¶
- func DrawText(o *TextOptions, txt string)
- type Camera
- func (c *Camera) GetMultiplier() float64
- func (c *Camera) Position() (float64, float64)
- func (c *Camera) Rotation() float64
- func (c *Camera) ScreenToWorld(x, y float64) (float64, float64)
- func (c *Camera) SetMode(mode CameraMode)
- func (c *Camera) SetPosition(x, y float64)
- func (c *Camera) SetRotation(rotation float64)
- func (c *Camera) SetRotationAt(rotation float64, speed float64)
- func (c *Camera) SetStory(level int)
- func (c *Camera) SetTextOffset(offset float64)
- func (c *Camera) SetZoom(zoom float64)
- func (c *Camera) Story() int
- func (c *Camera) TextOffset() float64
- func (c *Camera) Transform(options *Options)
- func (c *Camera) Update()
- func (c *Camera) WorldToScreen(x, y float64) (float64, float64)
- func (c *Camera) Zoom() float64
- func (c *Camera) ZoomIn()
- func (c *Camera) ZoomOut()
- type CameraMode
- type InterpNumber
- type Options
- type Originable
- type Positionable
- type Renderable
- type Rotateable
- type Sizeable
- type Sprite
- func NewSprite(name string) (*Sprite, error)
- func NewSpriteFromImage(image *ebiten.Image) *Sprite
- func NewSpriteFromStaxie(name string, stackName string) (*Sprite, error)
- func NewSpriteFromStaxieAnimation(name string, stackName string, animName string) (*Sprite, error)
- func NewSubSprite(dataSprite *Sprite, x, y, w, h int) (*Sprite, error)
- func (s *Sprite) Draw(o *Options)
- func (s *Sprite) Height() float64
- func (s *Sprite) SetStaxie(name, stackName string) error
- func (s *Sprite) SetStaxieAnimation(name, stackName, animName string) error
- func (s *Sprite) Size() (float64, float64)
- func (s *Sprite) Update()
- func (s *Sprite) Width() float64
- type Stack
- func (s *Stack) Draw(o *Options)
- func (s *Stack) Height() int
- func (s *Stack) SetAnimation(name string) error
- func (s *Stack) SetFrame(index int) error
- func (s *Stack) SetOriginToCenter()
- func (s *Stack) SetStack(name string) error
- func (s *Stack) SetStaxie(name string) error
- func (s *Stack) SliceCount() int
- func (s *Stack) Stacks() []string
- func (s *Stack) Update()
- func (s *Stack) Width() int
- type Stacks
- type TextDrawer
- type TextOptions
- type VGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawText ¶
func DrawText(o *TextOptions, txt string)
Types ¶
type Camera ¶
type Camera struct { Originable Pitch float64 Mode CameraMode // contains filtered or unexported fields }
func (*Camera) GetMultiplier ¶
func (*Camera) SetMode ¶
func (c *Camera) SetMode(mode CameraMode)
func (*Camera) SetPosition ¶
func (*Camera) SetRotation ¶
func (*Camera) SetRotationAt ¶
func (*Camera) SetTextOffset ¶
func (*Camera) TextOffset ¶
type CameraMode ¶
type CameraMode int
const ( CameraModeTower CameraMode = iota CameraModeStack CameraModeSuperZoom )
type InterpNumber ¶
type InterpNumber struct {
Current, Target, Speed float64
}
func (*InterpNumber) Set ¶
func (i *InterpNumber) Set(target, speed float64)
func (*InterpNumber) Update ¶
func (i *InterpNumber) Update() bool
type Originable ¶
type Originable struct {
// contains filtered or unexported fields
}
func (*Originable) Origin ¶
func (p *Originable) Origin() (float64, float64)
func (*Originable) SetOrigin ¶
func (p *Originable) SetOrigin(x, y float64)
type Positionable ¶
type Positionable struct {
// contains filtered or unexported fields
}
func (*Positionable) Position ¶
func (p *Positionable) Position() (float64, float64)
func (*Positionable) SetPosition ¶
func (p *Positionable) SetPosition(x, y float64)
func (*Positionable) X ¶
func (p *Positionable) X() float64
func (*Positionable) Y ¶
func (p *Positionable) Y() float64
type Renderable ¶
type Rotateable ¶
type Rotateable struct {
// contains filtered or unexported fields
}
func (*Rotateable) Rotation ¶
func (r *Rotateable) Rotation() float64
func (*Rotateable) RotationDistance ¶
func (r *Rotateable) RotationDistance() float64
func (*Rotateable) SetRotation ¶
func (r *Rotateable) SetRotation(rotation float64)
func (*Rotateable) SetRotationDistance ¶
func (r *Rotateable) SetRotationDistance(rotationDistance float64)
type Sprite ¶
type Sprite struct { Positionable Originable Rotateable Scale float64 Transparency float32 // contains filtered or unexported fields }
func NewSpriteFromImage ¶
func NewSpriteFromImage(image *ebiten.Image) *Sprite
func (*Sprite) SetStaxieAnimation ¶
type Stack ¶
type Stack struct { Positionable Rotateable Originable MaxSliceIndex int VgroupOffset int SliceOffset int SliceColorOffset int SliceColorMin float64 HeightOffset float64 NoLighting bool Transparency float32 ColorScale ebiten.ColorScale // contains filtered or unexported fields }
func (*Stack) SetAnimation ¶
func (*Stack) SetOriginToCenter ¶
func (s *Stack) SetOriginToCenter()
func (*Stack) SliceCount ¶
type Stacks ¶
type Stacks []*Stack
func (*Stacks) SetOrigins ¶
func (*Stacks) SetPositions ¶
func (*Stacks) SetRotations ¶
type TextDrawer ¶
type TextDrawer struct {
Options TextOptions
}
func NewTextDrawer ¶
func NewTextDrawer(o TextOptions) *TextDrawer
func (*TextDrawer) Draw ¶
func (t *TextDrawer) Draw(txt string, x, y float64)
type TextOptions ¶
type VGroup ¶
type VGroup struct { Positionable Images []*ebiten.Image Depth int Width int Height int Debug bool }
VGroup manages a slice of images intended to be rendered at offsets. This is basically an offscreen framebuffer for stack slice rendering.
func NewVGroup ¶
NewVGroup creates a new VGroup. Destroy() _MUST_ be called once the VGroup is no longer needed.
Click to show internal directories.
Click to hide internal directories.