Documentation ¶
Index ¶
- type Game
- 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
- 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
- type InputBits
- type InputButton
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
func (*Game) InitNetworking ¶
func (*Game) RunHeadless ¶
RunHeadless runs the game without using the display. Game.Draw is never called.
type GameSession ¶
type GameSession struct {
// contains filtered or unexported fields
}
func NewGameSession ¶
func NewGameSession() *GameSession
func (*GameSession) AdvanceFrame ¶
func (g *GameSession) AdvanceFrame(flags int)
func (*GameSession) LoadGameState ¶
func (g *GameSession) LoadGameState(stateID int)
func (*GameSession) LogGameState ¶
func (g *GameSession) LogGameState(fileName string, buffer []byte, len int)
func (*GameSession) OnEvent ¶
func (g *GameSession) OnEvent(info *ggpo.Event)
func (*GameSession) SaveGameState ¶
func (g *GameSession) SaveGameState(stateID int) int
func (*GameSession) SetBackend ¶
func (g *GameSession) SetBackend(backend ggpo.Backend)
type InputButton ¶
type InputButton int
const ( ButtonLeft InputButton = iota + 1 ButtonRight ButtonDown ButtonUp ButtonPunch ButtonKick ButtonBlock ButtonTaunt ButtonStart )
Click to show internal directories.
Click to hide internal directories.