fix game
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 6m49s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 6m49s
This commit is contained in:
@@ -91,21 +91,26 @@ type JoinRequest struct {
|
||||
}
|
||||
|
||||
type PlayerState struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
X float64 `json:"x"`
|
||||
Y float64 `json:"y"`
|
||||
VX float64 `json:"vx"`
|
||||
VY float64 `json:"vy"`
|
||||
State string `json:"state"`
|
||||
OnGround bool `json:"on_ground"`
|
||||
OnWall bool `json:"on_wall"` // Ist an einer Wand
|
||||
LastInputSeq uint32 `json:"last_input_seq"` // Letzte verarbeitete Input-Sequenz
|
||||
Score int `json:"score"` // Punkte des Spielers
|
||||
IsAlive bool `json:"is_alive"` // Lebt der Spieler noch?
|
||||
IsSpectator bool `json:"is_spectator"` // Ist im Zuschauer-Modus
|
||||
HasDoubleJump bool `json:"has_double_jump"` // Hat Double Jump Powerup
|
||||
HasGodMode bool `json:"has_godmode"` // Hat Godmode Powerup
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
X float64 `json:"x"`
|
||||
Y float64 `json:"y"`
|
||||
VX float64 `json:"vx"`
|
||||
VY float64 `json:"vy"`
|
||||
State string `json:"state"`
|
||||
OnGround bool `json:"on_ground"`
|
||||
OnWall bool `json:"on_wall"` // Ist an einer Wand
|
||||
LastInputSeq uint32 `json:"last_input_seq"` // Letzte verarbeitete Input-Sequenz
|
||||
Score int `json:"score"` // Punkte des Spielers
|
||||
IsAlive bool `json:"is_alive"` // Lebt der Spieler noch?
|
||||
IsSpectator bool `json:"is_spectator"` // Ist im Zuschauer-Modus
|
||||
HasDoubleJump bool `json:"has_double_jump"` // Hat Double Jump Powerup
|
||||
DoubleJumpUsed bool `json:"double_jump_used"` // Wurde zweiter Sprung schon benutzt?
|
||||
DoubleJumpRemainingSeconds float64 `json:"double_jump_remaining_seconds"` // Verbleibende Double-Jump-Zeit in Sekunden
|
||||
HasGodMode bool `json:"has_godmode"` // Hat Godmode Powerup
|
||||
GodModeRemainingSeconds float64 `json:"godmode_remaining_seconds"` // Verbleibende Godmode-Zeit in Sekunden
|
||||
HasMagnet bool `json:"has_magnet"` // Hat Magnet Powerup
|
||||
MagnetRemainingSeconds float64 `json:"magnet_remaining_seconds"` // Verbleibende Magnet-Zeit in Sekunden
|
||||
}
|
||||
|
||||
type GameState struct {
|
||||
|
||||
Reference in New Issue
Block a user