sshpong/internal/pong/state.go
2024-08-26 10:02:05 -06:00

26 lines
291 B
Go

package pong
type GameState struct {
Score map[string]int
Player1 Player
Player2 Player
Ball Ball
}
type Vector struct {
X float32
Y float32
}
type Player struct {
client GameClient
Pos Vector
Size Vector
Speed float32
}
type Ball struct {
Pos Vector
Vel Vector
}