Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ScreenWidth is the width of the screen. ScreenWidth = 640 // ScreenHeight is the height of the screen. ScreenHeight = 480 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectingState ¶
type ConnectingState struct {
// contains filtered or unexported fields
}
ConnectingState represents the state when the game is connecting to the server.
func NewConnectingState ¶
func NewConnectingState(game *Game) *ConnectingState
NewConnectingState creates a new ConnectingState.
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
Game represents the main game object.
func (*Game) Draw ¶
func (g *Game) Draw(screen *ebiten.Image)
Draw delegates the drawing logic to the current game state.
Click to show internal directories.
Click to hide internal directories.