scene

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scene

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

Scene represents an entire scene in the game.

func New

func New() *Scene

New creates a new scene.

func (*Scene) Draw

func (s *Scene) Draw(win *pixelgl.Window)

Draw the scene.

func (*Scene) Load

func (s *Scene) Load(path string)

Load a pattern from file.

func (*Scene) Save

func (s *Scene) Save(path string)

Save the scene to file.

func (*Scene) Update

func (s *Scene) Update(win *pixelgl.Window, dt float64)

Update the scene.

Jump to

Keyboard shortcuts

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