scene

package
v0.0.0-...-bbac6e9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: MIT Imports: 6 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 holds paints and state of the current game

func New

func New(d grafio.Drawer) (*Scene, error)

New create new Scene with given parameters

func (*Scene) Run

func (s *Scene) Run(events <-chan sdl.Event) <-chan error

Run runs goroutine and updates all paints and listening of events

Jump to

Keyboard shortcuts

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