Documentation
¶
Index ¶
- func DrawAll(grid *geometry.ScreenGrid, screen *ebiten.Image, s *world.Surface, ...)
- func Register[I Image, F Font]()
- func Systems[I Image, F Font]() loki.System
- type AirDashAnimation
- type Animation
- type ColoredCircle
- type ColoredRect
- type Drawable
- type EdgeGrabAnimation
- type FallAnimation
- type Font
- type HoverSprite
- type HoverText
- type IdleAnimation
- type Image
- type JumpAnimation
- type LandAnimation
- type NeighborMappedBlockRenderer
- type NeighborTileSet
- type SimpleBlockRenderer
- type Sprite
- type Text
- type WalkAnimation
- type XIndexedBlockRenderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AirDashAnimation ¶
type AirDashAnimation[I Image] struct { loki.Attribute[AirDashAnimation[I]] Animation[I] }
type ColoredCircle ¶
type ColoredCircle struct {
loki.Attribute[visuals.Renderable]
Slot int
Layer visuals.Layer
Radius fixed.Fixed
Color color.Color
Offset geometry.Vector
}
func (ColoredCircle) Draw ¶
func (r ColoredCircle) Draw(grid *geometry.ScreenGrid, pos geometry.Vector, screen *ebiten.Image)
func (ColoredCircle) GetLayer ¶
func (r ColoredCircle) GetLayer() visuals.Layer
func (ColoredCircle) GetSlot ¶
func (r ColoredCircle) GetSlot() int
type ColoredRect ¶
type ColoredRect struct {
loki.Attribute[visuals.Renderable]
Slot int
Layer visuals.Layer
Bounds geometry.Rectangle
Color color.Color
Offset geometry.Vector
}
func (ColoredRect) Draw ¶
func (r ColoredRect) Draw(grid *geometry.ScreenGrid, pos geometry.Vector, screen *ebiten.Image)
func (ColoredRect) GetLayer ¶
func (r ColoredRect) GetLayer() visuals.Layer
func (ColoredRect) GetSlot ¶
func (r ColoredRect) GetSlot() int
type EdgeGrabAnimation ¶
type EdgeGrabAnimation[I Image] struct { loki.Attribute[EdgeGrabAnimation[I]] Animation[I] }
type FallAnimation ¶
type FallAnimation[I Image] struct { loki.Attribute[FallAnimation[I]] Animation[I] }
type HoverSprite ¶
type IdleAnimation ¶
type IdleAnimation[I Image] struct { loki.Attribute[IdleAnimation[I]] Animation[I] }
type JumpAnimation ¶
type JumpAnimation[I Image] struct { loki.Attribute[JumpAnimation[I]] Animation[I] }
type LandAnimation ¶
type LandAnimation[I Image] struct { loki.Attribute[LandAnimation[I]] Animation[I] }
type NeighborMappedBlockRenderer ¶
type NeighborMappedBlockRenderer[I Image] struct { loki.Behavior[visuals.StructureElementRenderer] Grid geometry.BlockGrid Layer visuals.Layer Scale geometry.Vector TileSet NeighborTileSet[I] }
func (NeighborMappedBlockRenderer[I]) Render ¶
func (r NeighborMappedBlockRenderer[I]) Render(ctx loki.Context, blocks []world.StructureElement, queue visuals.RenderQueue)
type NeighborTileSet ¶
type NeighborTileSet[I Image] interface { Get(visuals.NeighborMask) I }
type SimpleBlockRenderer ¶
type SimpleBlockRenderer[I Image] struct { loki.Behavior[visuals.StructureElementRenderer] Grid geometry.BlockGrid Layer visuals.Layer Scale geometry.Vector Sprite I }
func (SimpleBlockRenderer[I]) Render ¶
func (r SimpleBlockRenderer[I]) Render(ctx loki.Context, blocks []world.StructureElement, queue visuals.RenderQueue)
type Sprite ¶
type Sprite[I Image] struct { loki.Attribute[visuals.Renderable] Slot int Image I Layer visuals.Layer Scale geometry.Vector Rotation float64 Offset geometry.Vector }
type Text ¶
type Text[F Font] struct { loki.Attribute[visuals.Renderable] Slot int Layer visuals.Layer Content string Font F Size float64 Color color.RGBA Scale geometry.Vector Rotation float64 Centered bool Offset geometry.Vector }
type WalkAnimation ¶
type WalkAnimation[I Image] struct { loki.Attribute[WalkAnimation[I]] Animation[I] }
func (WalkAnimation[I]) Unwrap ¶
func (a WalkAnimation[I]) Unwrap() WalkAnimation[I]
type XIndexedBlockRenderer ¶
type XIndexedBlockRenderer[I Image] struct { loki.Behavior[visuals.StructureElementRenderer] Grid geometry.BlockGrid Layer visuals.Layer Scale geometry.Vector Sprites []I }
func (XIndexedBlockRenderer[I]) Render ¶
func (r XIndexedBlockRenderer[I]) Render(ctx loki.Context, blocks []world.StructureElement, queue visuals.RenderQueue)
Click to show internal directories.
Click to hide internal directories.