Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageProvider ¶
ImageProvider is the contract that the Visualizer needs to retrieve images to use for Sprites.
type Visualizer ¶
type Visualizer struct {
// contains filtered or unexported fields
}
Visualizer is a System that draws visible things to the screen with the ebiten game engine.
func NewVisualizer ¶
func NewVisualizer(images ImageProvider) *Visualizer
NewVisualizer creates a new Visualizer.
func (*Visualizer) Render ¶
func (r *Visualizer) Render(screen *ebiten.Image, mgr *ecs.World, focusX, focusY, zoom, screenW, screenH float64) error
Render all sprites in the world to the screen. We need to know where in the world we are focused, as well as how zoomed in we are, and the dimensions of the screen.
Click to show internal directories.
Click to hide internal directories.