Documentation
¶
Index ¶
- func FindPath(start, end types.Tile) []types.Tile
- func GetMapGrid() [][]types.Tile
- func GetNeighbors(tile types.Tile) []types.Tile
- func GetTile(x, y int) types.Tile
- func GetTileHeight(x, y int) float32
- func InitWorld()
- func RayIntersectsBox(ray rl.Ray, boxMin, boxMax rl.Vector3) bool
- func UpdateCamera(camera *rl.Camera3D, player rl.Vector3, deltaTime float32)
- type Chat
- type Game
- func (g *Game) Cleanup()
- func (g *Game) DrawMap()
- func (g *Game) DrawMenu()
- func (g *Game) DrawPlayer(player *types.Player, model rl.Model)
- func (g *Game) GetTileAtMouse() (types.Tile, bool)
- func (g *Game) HandleInput()
- func (g *Game) HandleServerMessages(messages []*pb.ChatMessage)
- func (g *Game) LoadAssets() error
- func (g *Game) Render()
- func (g *Game) Shutdown()
- func (g *Game) Update(deltaTime float32)
- type LoginScreen
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapGrid ¶
func GetTileHeight ¶
Types ¶
type Chat ¶
type Chat struct {
// contains filtered or unexported fields
}
func (*Chat) AddMessage ¶
func (*Chat) HandleServerMessages ¶
func (c *Chat) HandleServerMessages(messages []*pb.ChatMessage)
type Game ¶
type Game struct { Player *types.Player OtherPlayers map[int32]*types.Player Camera rl.Camera3D Models []types.ModelAsset Music rl.Music Chat *Chat MenuOpen bool QuitChan chan struct{} // Channel to signal shutdown // contains filtered or unexported fields }
func (*Game) HandleInput ¶
func (g *Game) HandleInput()
func (*Game) HandleServerMessages ¶
func (g *Game) HandleServerMessages(messages []*pb.ChatMessage)
func (*Game) LoadAssets ¶
type LoginScreen ¶
type LoginScreen struct {
// contains filtered or unexported fields
}
func NewLoginScreen ¶
func NewLoginScreen() *LoginScreen
func (*LoginScreen) Draw ¶
func (l *LoginScreen) Draw()
func (*LoginScreen) SetError ¶
func (l *LoginScreen) SetError(msg string)
Click to show internal directories.
Click to hide internal directories.