new server
This commit is contained in:
12
protocol.go
Normal file
12
protocol.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
type InputMessage struct {
|
||||
PlayerID string
|
||||
DX float64 `json:"dx"`
|
||||
DY float64 `json:"dy"`
|
||||
}
|
||||
|
||||
type StateMessage struct {
|
||||
Type string `json:"type"`
|
||||
Payload any `json:"payload"`
|
||||
}
|
||||
Reference in New Issue
Block a user