-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.go
65 lines (50 loc) · 1.17 KB
/
vars.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package main
import (
"image/color"
"sync"
"time"
)
var (
//Web assembly mode
WASMMode bool = false
//If new network data has been rendered or not
dataDirty bool = true
//-dev argument
devMode bool
//Login, playing, reconnect, etc
gameMode = MODE_Start
gameModeLock sync.Mutex
//Our local player's data (id, etc)
localPlayer playerData
//Player ID to name map
playerNames map[uint32]*pNameData
//Direction we are walking
goingDirection DIR
//Our position from server
localPlayerPos XY
oldLocalPlayerPos XY
//Players from server
playerList map[uint32]*playerData
creatureList map[uint32]*playerData
drawLock sync.Mutex
//World object list
wObjList []*worldObject
//Player name BG color
colorNameBG = color.RGBA{R: 16, G: 16, B: 16, A: 128}
//Server URL
authSite = "https://gommo.go-game.net/gs"
//Reconnect throttle
reconnectTime time.Time
//Reconnect count and cap
ReconnectCount = 0
RecconnectDelayCap = 30
//Useful while designing or debugging UI
windowDebugMode = false
//Help string
helpText string = ""
//Settings
vSync bool = true
smallMode bool = false
debugLine bool = false
greenScreen bool = false
)