Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultTPS = 60 DefaultScreenWidth = 1280 DefaultScreenHeight = 720 InternalScreenWidth, InternalScreenHeight = 854, 480 Gravity = 3 JumpVelocity = 20 GroundWidth = 600 GroundHeight = 100 MaxDebug = 2 )
Variables ¶
View Source
var ( TPS = DefaultTPS Fullscreen bool DisableVsync bool Headless bool // Run without using the display ScreenWidth, ScreenHeight = 0, 0 CamX, CamY = 0, 0 // TODO currently static StartMuted bool // Start with music muted. LocalPort int ConnectPromptVisible = true // When false, we are connected ConnectPromptText string ConnectPromptHost bool ConnectPromptConfirmed bool ConnectionActive bool Debug int WASM bool CurrentPlayer = 1 Local bool // Playing against computer AI AIType // AI configuration Backend ggpo.Backend )
These variables are cached to prevent race conditions.
View Source
var PhysicsRects = []image.Rectangle{ image.Rect(-GroundWidth/2, 0, GroundWidth/2, -GroundHeight), }
View Source
var TPSPresets = []int{1, 2, 4, 10, 30, 60, 120}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.