goonscape/constants.go

22 lines
479 B
Go
Raw Normal View History

2024-10-31 01:06:39 +01:00
package main
import "time"
const (
MapWidth = 50
MapHeight = 50
TileSize = 32
TileHeight = 2.0
2025-01-12 23:57:18 +01:00
TickRate = 600 * time.Millisecond // Server tick rate (600ms)
2024-10-31 01:06:39 +01:00
serverAddr = "localhost:6969"
2025-01-13 00:31:15 +01:00
// RuneScape-style tick rate (600ms)
ServerTickRate = 600 * time.Millisecond
// Client might run at a higher tick rate for smooth rendering
ClientTickRate = 50 * time.Millisecond
// Maximum number of ticks we can get behind before forcing a resync
MaxTickDesync = 5
2024-10-31 01:06:39 +01:00
)