- Commit mañanero!

This commit is contained in:
2025-06-18 07:29:10 +02:00
parent 8fbec685b1
commit 79ab41e98d
2 changed files with 11 additions and 5 deletions

View File

@@ -3,10 +3,10 @@ require "level"
x=0 x=0
function mini.init() function mini.init()
s = surf.load("tiles.gif") sprites = surf.load("sprites.gif")
surf.source(s) tiles = surf.load("tiles.gif")
p = pal.load("tiles.gif") surf.source(tiles)
pal.set(p) pal.set(pal.load("tiles.gif"))
pal.trans(0) pal.trans(0)
level.init() level.init()
end end
@@ -16,9 +16,15 @@ function mini.update()
surf.cls(1) surf.cls(1)
level.draw_background() level.draw_background()
surf.source(sprites)
draw.surf(0, 0, 16, 17, 10, 10, 16, 17)
surf.source(tiles)
level.draw_foreground() level.draw_foreground()
surf.source(sprites)
draw.surf(0, 0, 16, 17, 10, 10, 16, 17)
surf.source(tiles)
draw.surf(0, 0, 64, 64, 10, 10) --draw.surf(0, 0, 64, 64, 10, 10)
if (key.down(key.ESCAPE)) then if (key.down(key.ESCAPE)) then
sys.quit() sys.quit()
end end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB