game

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlayerSpawnName = "PlayerSpawn"
	NPCSpawnName    = "NPCSpawn"
)
View Source
const SceneType string = "GameScene"

SceneType is the unique type identifier for Scene.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scene

type Scene struct {
	World   *ecs.World
	Tilemap *util.Tilemap
}

Scene is a playable world scene in the game.

func (*Scene) Preload

func (g *Scene) Preload()

Preload is called before loading resources.

func (*Scene) Setup

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

Setup is called before the main loop.

func (*Scene) Type

func (g *Scene) Type() string

Type returns a unique string representation of Scene.

Jump to

Keyboard shortcuts

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