fix the image bug
This commit is contained in:
parent
f6ab4d9452
commit
e07c64c6c7
4 changed files with 6 additions and 4 deletions
Binary file not shown.
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 48 KiB |
|
@ -33,5 +33,5 @@ EndProcedure
|
|||
Procedure DrawRunningGame()
|
||||
;Box(0, 0, 200, 200, RGB(0, 255, 0))
|
||||
|
||||
DisplaySprite(#Tile01, 20, 20)
|
||||
DrawImage(ImageID(#Tile01), 20, 20)
|
||||
EndProcedure
|
||||
|
|
|
@ -3,10 +3,8 @@
|
|||
|
||||
; *****************************************************************************
|
||||
; * Tileset
|
||||
UsePNGImageDecoder()
|
||||
|
||||
Procedure InitTileset()
|
||||
LoadSprite(#Tile01, #DATA_PATH+"gfx/tileset01.png")
|
||||
|
||||
;ClipSprite(#Tile01, 0, 0, 16, 16)
|
||||
EndProcedure
|
||||
|
||||
|
|
|
@ -30,3 +30,7 @@ EndEnumeration
|
|||
Global Dim Sounds.i(2)
|
||||
Sounds(0) = LoadSound(0, #DATA_PATH + "sound/menu_change.wav")
|
||||
Sounds(1) = LoadSound(1, #DATA_PATH + "sound/menu_select.wav")
|
||||
|
||||
|
||||
UseJPEGImageDecoder()
|
||||
Debug LoadImage(#Tile01, #DATA_PATH+"gfx/tileset01.jp")
|
Loading…
Reference in a new issue