ld21-ESCape/src/Functions.pbi

32 lines
828 B
Plaintext
Raw Normal View History

2011-08-20 17:49:22 +02:00
; This file holds all the functions If it gets too big,
; we can split it in categories
; *****************************************************************************
; * Tileset
2011-08-20 18:27:49 +02:00
UsePNGImageDecoder()
2011-08-20 17:49:22 +02:00
Procedure InitTileset()
2011-08-20 18:45:05 +02:00
<<<<<<< HEAD
2011-08-20 18:44:21 +02:00
LoadSprite(#Tile01, DataPath+"gfx/tileset01.bmp")
2011-08-20 18:45:05 +02:00
=======
2011-08-20 18:33:24 +02:00
LoadSprite(#Tile01, #DATA_PATH+"gfx/tileset01.png")
2011-08-20 18:45:05 +02:00
>>>>>>> f089be7018687821daf886b8c0e8a0d907df0e2d
2011-08-20 18:15:38 +02:00
;ClipSprite(#Tile01, 0, 0, 16, 16)
2011-08-20 17:49:22 +02:00
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