7d1213164b
Conflicts: src/Draw.pbi src/Functions.pbi src/Globals.pbi
39 lines
835 B
Plaintext
39 lines
835 B
Plaintext
; This file holds all the functions If it gets too big,
|
|
; we can split it in categories
|
|
|
|
; *****************************************************************************
|
|
; * Tileset
|
|
Procedure InitTileset()
|
|
Tile01 = LoadSprite(#PB_Any, "../data/gfx/tileset01.bmp")
|
|
;ClipSprite(#Tile01, 0, 0, 16, 16)
|
|
EndProcedure
|
|
|
|
Procedure DrawTile(number.i, x.i, y.i)
|
|
Debug number.i
|
|
Debug x.i
|
|
Debug y.i
|
|
EndProcedure
|
|
|
|
Procedure DrawMap()
|
|
|
|
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
|
|
|
|
|