Merge branch 'master' of c:/Users/Aaron/Desktop/game/Git
This commit is contained in:
commit
8b2ea22581
6 changed files with 9 additions and 39 deletions
|
@ -33,11 +33,3 @@ EndProcedure
|
||||||
Procedure DrawRunningGame()
|
Procedure DrawRunningGame()
|
||||||
Box(0, 0, 200, 200, RGB(0, 255, 0))
|
Box(0, 0, 200, 200, RGB(0, 255, 0))
|
||||||
EndProcedure
|
EndProcedure
|
||||||
; IDE Options = PureBasic 4.51 (MacOS X - x86)
|
|
||||||
; CursorPosition = 26
|
|
||||||
; Folding = -
|
|
||||||
; EnableUnicode
|
|
||||||
; EnableThread
|
|
||||||
; EnableXP
|
|
||||||
; EnableCompileCount = 0
|
|
||||||
; EnableBuildCount = 0
|
|
|
@ -36,11 +36,3 @@ EndProcedure
|
||||||
|
|
||||||
Procedure HandleEventRunningGame()
|
Procedure HandleEventRunningGame()
|
||||||
EndProcedure
|
EndProcedure
|
||||||
; IDE Options = PureBasic 4.51 (MacOS X - x86)
|
|
||||||
; CursorPosition = 32
|
|
||||||
; Folding = -
|
|
||||||
; EnableUnicode
|
|
||||||
; EnableThread
|
|
||||||
; EnableXP
|
|
||||||
; EnableCompileCount = 0
|
|
||||||
; EnableBuildCount = 0
|
|
|
@ -1 +1 @@
|
||||||
; This file holds all the functions If it gets too big,
; we can split it in categories
; *****************************************************************************
; * Menu
Procedure Menu_GotoCurrent()
If *ActiveMenu\Entries()\Selected <> #True
FirstElement(*ActiveMenu\Entries());
ForEach *ActiveMenu\Entries()
If *ActiveMenu\Entries()\Selected = #True
Break
EndIf
Next
EndIf
EndProcedure
; *****************************************************************************
; IDE Options = PureBasic 4.51 (MacOS X - x86)
; CursorPosition = 13
; Folding = -
; EnableXP
|
; This file holds all the functions If it gets too big,
; we can split it in categories
; *****************************************************************************
; * Tileset
Procedure InitTileset()
LoadImage
EndProcedure
; *****************************************************************************
; *****************************************************************************
; * Menu
Procedure Menu_GotoCurrent()
If *ActiveMenu\Entries()\Selected <> #True
FirstElement(*ActiveMenu\Entries());
ForEach *ActiveMenu\Entries()
If *ActiveMenu\Entries()\Selected = #True
Break
EndIf
Next
EndIf
EndProcedure
; *****************************************************************************
|
|
@ -13,8 +13,3 @@ Global *ActiveMenu.GameMenu
|
||||||
; Fonts
|
; Fonts
|
||||||
Global Font_H1 = LoadFont(1, "Courier", 40, #PB_Font_Bold)
|
Global Font_H1 = LoadFont(1, "Courier", 40, #PB_Font_Bold)
|
||||||
Global Font_H2 = LoadFont(2, "Verdana", 18)
|
Global Font_H2 = LoadFont(2, "Verdana", 18)
|
||||||
; IDE Options = PureBasic 4.51 (MacOS X - x86)
|
|
||||||
; CursorPosition = 13
|
|
||||||
; EnableXP
|
|
||||||
; EnableCompileCount = 0
|
|
||||||
; EnableBuildCount = 0
|
|
10
src/Main.pb
10
src/Main.pb
|
@ -47,6 +47,8 @@ If ReadFile(0, "../data/menu.data")
|
||||||
CloseFile(0)
|
CloseFile(0)
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
InitTileset()
|
||||||
|
|
||||||
Menus("MAIN_MENU")\Title = "ESCape"
|
Menus("MAIN_MENU")\Title = "ESCape"
|
||||||
|
|
||||||
Define Item.GameMenuItem
|
Define Item.GameMenuItem
|
||||||
|
@ -109,9 +111,5 @@ If OpenWindow(0, 0, 0, Screen\Width, Screen\Height, title, #PB_Window_ScreenCent
|
||||||
Delay(1)
|
Delay(1)
|
||||||
Until KeyboardPushed(#PB_Key_Escape)
|
Until KeyboardPushed(#PB_Key_Escape)
|
||||||
EndIf
|
EndIf
|
||||||
; IDE Options = PureBasic 4.51 (MacOS X - x86)
|
|
||||||
; CursorPosition = 65
|
End
|
||||||
; FirstLine = 9
|
|
||||||
; EnableXP
|
|
||||||
; EnableCompileCount = 0
|
|
||||||
; EnableBuildCount = 0
|
|
|
@ -31,10 +31,3 @@ Structure GameMenu
|
||||||
Title.s
|
Title.s
|
||||||
List Entries.GameMenuItem()
|
List Entries.GameMenuItem()
|
||||||
EndStructure
|
EndStructure
|
||||||
; IDE Options = PureBasic 4.51 (MacOS X - x86)
|
|
||||||
; CursorPosition = 32
|
|
||||||
; EnableUnicode
|
|
||||||
; EnableThread
|
|
||||||
; EnableXP
|
|
||||||
; EnableCompileCount = 1
|
|
||||||
; EnableBuildCount = 0
|
|
Loading…
Reference in a new issue