scene

package
v0.0.0-...-d471c43 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package scene contains all the scenes used in Xaro.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

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

Game is the main game scene for Xaro.

func NewGame

func NewGame(player *p.Player, sceneName string, logger logging.Logger) *Game

NewGame stores the player and scene name and sets up the rest of the scene fields in the Game struct.

func (*Game) Preload

func (g *Game) Preload()

Preload loads in all essential graphics and assets for the scene.

func (*Game) Setup

func (g *Game) Setup(u engo.Updater)

Setup creates and instantiates all the gameobjects in the world.

func (*Game) Type

func (g *Game) Type() string

Type returns the name of the given scene.

type MainMenu struct{}

MainMenu is the starting scene and way to access the game scene.

func (*MainMenu) Preload()

Preload loads in all essential graphics and assets for the scene.

func (*MainMenu) Setup(u engo.Updater)

Setup creates and instantiates all the gameobjects in the world.

func (*MainMenu) Type() string

Type returns the name of the given scene.

Jump to

Keyboard shortcuts

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