new server

This commit is contained in:
Smile Rex
2026-01-21 18:49:12 +03:00
parent cb586cd5ce
commit 280d9801d6
19 changed files with 157 additions and 452 deletions

12
protocol.go Normal file
View 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"`
}