2011-08-20 14:49:54 +02:00
|
|
|
|
|
2011-08-20 18:30:12 +02:00
|
|
|
|
#DATA_PATH = "../data/"
|
2011-08-20 18:18:52 +02:00
|
|
|
|
|
2011-08-20 14:49:54 +02:00
|
|
|
|
; Global variables
|
|
|
|
|
Global Fullscreen = 0
|
2011-08-20 17:49:22 +02:00
|
|
|
|
Global Title.s = "ESCape - Build " + Str(#PB_Editor_BuildCount)
|
2011-08-20 14:49:54 +02:00
|
|
|
|
Global Screen.ScreenDimension\width = 800
|
|
|
|
|
Screen.ScreenDimension\height = 600
|
|
|
|
|
|
2011-08-20 20:15:44 +02:00
|
|
|
|
; Player
|
|
|
|
|
Global Player.MapPoint\X = 10
|
|
|
|
|
Player.MapPoint\Y = 10
|
|
|
|
|
|
|
|
|
|
; Them map
|
|
|
|
|
Global Dim GameField(50, 50)
|
|
|
|
|
|
2011-08-20 14:49:54 +02:00
|
|
|
|
NewMap GameStates.GameState()
|
|
|
|
|
Global NewMap Menus.GameMenu()
|
|
|
|
|
Global CurrentState.s = "MAIN_MENU"
|
|
|
|
|
Global *ActiveMenu.GameMenu
|
|
|
|
|
|
|
|
|
|
; Fonts
|
2011-08-20 20:15:44 +02:00
|
|
|
|
Global Font_H1 = LoadFont(1, "Arial", 40, #PB_Font_Bold)
|
2011-08-20 17:40:18 +02:00
|
|
|
|
Global Font_H2 = LoadFont(2, "Verdana", 18)
|
|
|
|
|
|
|
|
|
|
; Graphics
|
2011-08-20 20:14:22 +02:00
|
|
|
|
Global GFXLogo.i
|
|
|
|
|
Global GFXTileset.i
|
2011-08-20 18:18:52 +02:00
|
|
|
|
|
|
|
|
|
; Sounds
|
2011-08-20 19:11:45 +02:00
|
|
|
|
LoadSound(0, #DATA_PATH + "sound/menu_change.wav")
|
|
|
|
|
LoadSound(1, #DATA_PATH + "sound/menu_select.wav")
|
2011-08-20 19:09:23 +02:00
|
|
|
|
|
2011-08-20 20:15:44 +02:00
|
|
|
|
; Images
|
2011-08-20 19:09:23 +02:00
|
|
|
|
UseJPEGImageDecoder()
|
2011-08-20 20:15:44 +02:00
|
|
|
|
Debug LoadImage(#Tile01, #DATA_PATH+"gfx/tileset01.jpg")
|
2011-08-20 19:13:03 +02:00
|
|
|
|
|