boxbrawl/world/world.go

41 lines
634 B
Go

package world
import (
"code.rocketnine.space/tslocum/boxbrawl/component"
"github.com/assemblaj/ggpo"
)
const (
DefaultTPS = 60
DefaultScreenWidth = 1280
DefaultScreenHeight = 720
InternalScreenWidth, InternalScreenHeight = 854, 480
)
var (
TPS = DefaultTPS
ScreenWidth, ScreenHeight = 0, 0
LocalPort int
ConnectPromptVisible = true // When false, we are connected
ConnectPromptText string
ConnectPromptHost bool
ConnectPromptConfirmed bool
ConnectionActive bool
Debug = 1 // TODO
WASM bool
Player1 component.Player
Player2 component.Player
CurrentPlayer = 1
Backend ggpo.Backend
)