scene

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawTitle

func DrawTitle(r *sdl.Renderer, text string) error

DrawTitle draws a title with given "text".

Types

type Scene

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

Scene represent the scene of the game.

func NewScene

func NewScene(r *sdl.Renderer) (*Scene, error)

NewScene returns new instance of the Scene.

func (*Scene) Destroy

func (s *Scene) Destroy()

Destroy destroys the scene.

func (*Scene) Run

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

Run runs the Scene.

Jump to

Keyboard shortcuts

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