-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathzzt.go
54 lines (47 loc) · 1.37 KB
/
zzt.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
// ZZT ported to Go
/*
TODO:
- ensure len>0 for things like: switch state.Lines[lpos-1][0]
- timer handling, timeout of message display
- editor: EditorTransferBoard
- sounds
- performance
+ optimize when to call VideoShow
+ stat.Data should probably be []byte instead of string
*/
package main
func main() {
WorldFileDescCount = 7
WorldFileDescKeys[0] = "TOWN"
WorldFileDescValues[0] = "TOWN The Town of ZZT"
WorldFileDescKeys[1] = "DEMO"
WorldFileDescValues[1] = "DEMO Demo of the ZZT World Editor"
WorldFileDescKeys[2] = "CAVES"
WorldFileDescValues[2] = "CAVES The Caves of ZZT"
WorldFileDescKeys[3] = "DUNGEONS"
WorldFileDescValues[3] = "DUNGEONS The Dungeons of ZZT"
WorldFileDescKeys[4] = "CITY"
WorldFileDescValues[4] = "CITY Underground City of ZZT"
WorldFileDescKeys[5] = "BEST"
WorldFileDescValues[5] = "BEST The Best of ZZT"
WorldFileDescKeys[6] = "TOUR"
WorldFileDescValues[6] = "TOUR Guided Tour ZZT's Other Worlds"
StartupWorldFileName = "TOWN"
ResourceDataFileName = "ZZT.DAT"
GameTitleExitRequested = false
EditorEnabled = true
VideoInstall()
TextWindowInit(5, 3, 50, 18)
VideoHideCursor()
VideoClrScr()
TickSpeed = 4
DebugEnabled = false
SavedGameFileName = "SAVED"
SavedBoardFileName = "TEMP"
GenerateTransitionTable()
WorldCreate()
GameTitleLoop()
SoundUninstall()
SoundClearQueue()
VideoUninstall()
}