ebitenrenderer

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package ebitenrenderer provides a ebiten impementation of the renderer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(initialWidth, initialHeight int) render.Renderer

New creates the renderer.

Types

type Game

type Game struct {
	// contains filtered or unexported fields
}

Game holds the state.

func (*Game) Draw

func (g *Game) Draw(screen *ebiten.Image)

Draw implements the ebiten.Game interface.

Draws the rendered wireframe on screen.

func (*Game) Layout

func (g *Game) Layout(outsideWidth, outsideHeight int) (w, h int)

Layout implements the ebiten.Game interface.

func (*Game) Update

func (g *Game) Update() error

Update implements the ebiten interface.

Handles key presses.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL