Documentation ¶
Index ¶
- func OpenFile(path string) error
- type Game
- func (g *Game) Draw(screen *ebiten.Image)
- func (g *Game) GetOptions() *data.Options
- func (g *Game) GetPlayerByName(p string) *world.Player
- func (g *Game) Init() (err error)
- func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int)
- func (g *Game) Net() *net.Connection
- func (g *Game) Players() []*world.Player
- func (g *Game) SetState(s State) error
- func (g *Game) Update() error
- type HelpOverlay
- type MapList
- type MenuState
- type Message
- type MusicMenuState
- type NetworkMenuState
- func (s *NetworkMenuState) Await()
- func (s *NetworkMenuState) AwaitLan(joiner bool)
- func (s *NetworkMenuState) Cancel()
- func (s *NetworkMenuState) CreateNet()
- func (s *NetworkMenuState) Dispose() error
- func (s *NetworkMenuState) Draw(screen *ebiten.Image)
- func (s *NetworkMenuState) Find()
- func (s *NetworkMenuState) Host()
- func (s *NetworkMenuState) Init() error
- func (s *NetworkMenuState) JoinByIP()
- func (s *NetworkMenuState) StartGame()
- func (s *NetworkMenuState) Update() error
- type NoError
- type PlayState
- type SoloMenuState
- type State
- type TravelState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Game ¶
type Game struct { Options data.Options HelpOverlayShown bool // contains filtered or unexported fields }
Game is our ebiten engine interface compliant type.
func (*Game) Draw ¶
func (g *Game) Draw(screen *ebiten.Image)
Draw draws to the given ebiten screen buffer image.
func (*Game) GetOptions ¶
func (*Game) Layout ¶
Layout sets up "virtual" screen dimensions in contrast to the window's dimensions.
func (*Game) Net ¶
func (g *Game) Net() *net.Connection
type HelpOverlay ¶
type HelpOverlay struct { }
func (*HelpOverlay) Draw ¶
func (o *HelpOverlay) Draw(screen *ebiten.Image)
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message represents a timed message that should show on screen but disappear after a time.
type MusicMenuState ¶
type MusicMenuState struct {
// contains filtered or unexported fields
}
func (*MusicMenuState) Dispose ¶
func (s *MusicMenuState) Dispose() error
func (*MusicMenuState) Draw ¶
func (s *MusicMenuState) Draw(screen *ebiten.Image)
func (*MusicMenuState) Init ¶
func (s *MusicMenuState) Init() error
func (*MusicMenuState) Update ¶
func (s *MusicMenuState) Update() error
type NetworkMenuState ¶
type NetworkMenuState struct {
// contains filtered or unexported fields
}
func (*NetworkMenuState) Await ¶
func (s *NetworkMenuState) Await()
func (*NetworkMenuState) AwaitLan ¶
func (s *NetworkMenuState) AwaitLan(joiner bool)
func (*NetworkMenuState) Cancel ¶
func (s *NetworkMenuState) Cancel()
func (*NetworkMenuState) CreateNet ¶
func (s *NetworkMenuState) CreateNet()
func (*NetworkMenuState) Dispose ¶
func (s *NetworkMenuState) Dispose() error
func (*NetworkMenuState) Draw ¶
func (s *NetworkMenuState) Draw(screen *ebiten.Image)
func (*NetworkMenuState) Find ¶
func (s *NetworkMenuState) Find()
func (*NetworkMenuState) Host ¶
func (s *NetworkMenuState) Host()
func (*NetworkMenuState) Init ¶
func (s *NetworkMenuState) Init() error
func (*NetworkMenuState) JoinByIP ¶
func (s *NetworkMenuState) JoinByIP()
func (*NetworkMenuState) StartGame ¶
func (s *NetworkMenuState) StartGame()
func (*NetworkMenuState) Update ¶
func (s *NetworkMenuState) Update() error
type PlayState ¶
type PlayState struct {
// contains filtered or unexported fields
}
func (*PlayState) AddMessage ¶
type SoloMenuState ¶
type SoloMenuState struct {
// contains filtered or unexported fields
}
func (*SoloMenuState) Dispose ¶
func (s *SoloMenuState) Dispose() error
func (*SoloMenuState) Draw ¶
func (s *SoloMenuState) Draw(screen *ebiten.Image)
func (*SoloMenuState) Init ¶
func (s *SoloMenuState) Init() error
func (*SoloMenuState) StartGame ¶
func (s *SoloMenuState) StartGame()
func (*SoloMenuState) Update ¶
func (s *SoloMenuState) Update() error
type TravelState ¶
type TravelState struct {
// contains filtered or unexported fields
}
func (*TravelState) Dispose ¶
func (s *TravelState) Dispose() error
func (*TravelState) Draw ¶
func (s *TravelState) Draw(screen *ebiten.Image)
func (*TravelState) Init ¶
func (s *TravelState) Init() (err error)
func (*TravelState) LoadLevel ¶
func (s *TravelState) LoadLevel() (err error)
func (*TravelState) Update ¶
func (s *TravelState) Update() error
Click to show internal directories.
Click to hide internal directories.