game

package
v0.0.0-...-9c16532 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(host string)

Types

type ConnectingScene

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

func (*ConnectingScene) Update

func (s *ConnectingScene) Update(dt float64)

type DyingScene

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

func NewDeath

func NewDeath(win *pixelgl.Window, conn net.Connection) *DyingScene

func (*DyingScene) Update

func (s *DyingScene) Update(dt float64)

type PlayingScene

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

func NewPlaying

func NewPlaying(win *pixelgl.Window, conn net.Connection, self entity.ID) *PlayingScene

func (*PlayingScene) Update

func (s *PlayingScene) Update(dt float64)

type Scene

type Scene interface {
	Update(dt float64)
}
var CurrentScene Scene

type SpawnMenuScene

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

func NewSpawnMenu

func NewSpawnMenu(win *pixelgl.Window, conn net.Connection) *SpawnMenuScene

func (*SpawnMenuScene) Update

func (s *SpawnMenuScene) Update(_ float64)

type SpawningScene

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

func NewSpawning

func NewSpawning(win *pixelgl.Window, conn net.Connection, name string) *SpawningScene

func (*SpawningScene) Update

func (s *SpawningScene) Update(_ float64)

Jump to

Keyboard shortcuts

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