output

package
Version: v0.0.0-...-3f3636f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageProvider

type ImageProvider interface {
	GetImage(name string) (val image.Image, ok bool)
}

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to