Versions in this module Expand all Collapse all v1 v1.0.0 Feb 1, 2023 Changes in this version + type Game struct + Players []component.Player + Winner int + func NewGame() (*Game, error) + func (g *Game) AdvanceFrame(inputs []InputBits, disconnectFlags int) + func (g *Game) Checksum() int + func (g *Game) Draw(screen *ebiten.Image) + func (g *Game) Exit() + func (g *Game) InitNetworking(localPort int, numPlayers int, players []ggpo.Player, numSpectators int) + func (g *Game) Layout(_, _ int) (screenWidth, screenHeight int) + func (g *Game) ReadInputsP1() InputBits + func (g *Game) ReadInputsP2() InputBits + func (g *Game) RunFrame() + func (g *Game) RunHeadless() error + func (g *Game) RunLocalFrame() + func (g *Game) String() string + func (g *Game) Update() error + func (g *Game) UpdateByInputs(inputs []InputBits) + type GameSession struct + func NewGameSession() *GameSession + func (g *GameSession) AdvanceFrame(flags int) + func (g *GameSession) LoadGameState(stateID int) + func (g *GameSession) LogGameState(fileName string, buffer []byte, len int) + func (g *GameSession) OnEvent(info *ggpo.Event) + func (g *GameSession) SaveGameState(stateID int) int + func (g *GameSession) SetBackend(backend ggpo.Backend) + type Input struct + ButtonMap int + func NewInput() Input + func (i Input) String() string + type InputBits int + type InputButton int + const ButtonBlock + const ButtonDown + const ButtonKick + const ButtonLeft + const ButtonPunch + const ButtonRight + const ButtonStart + const ButtonTaunt + const ButtonUp