Fix OOB and refactor

This commit is contained in:
2024-10-31 01:06:39 +01:00
parent 2b9ece3c10
commit 5c5040cd42
13 changed files with 579 additions and 508 deletions

12
constants.go Normal file
View File

@ -0,0 +1,12 @@
package main
import "time"
const (
MapWidth = 50
MapHeight = 50
TileSize = 32
TileHeight = 2.0
TickRate = 2600 * time.Millisecond // Server tick rate (600ms)
serverAddr = "localhost:6969"
)