22 lines
479 B
Go
22 lines
479 B
Go
package main
|
|
|
|
import "time"
|
|
|
|
const (
|
|
MapWidth = 50
|
|
MapHeight = 50
|
|
TileSize = 32
|
|
TileHeight = 2.0
|
|
TickRate = 600 * time.Millisecond // Server tick rate (600ms)
|
|
serverAddr = "localhost:6969"
|
|
|
|
// 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
|
|
)
|