Files
mini/game.lua
2021-09-25 19:13:55 +02:00

39 lines
976 B
Lua

x = 0
function text(str, x, y, color)
palt(0, false)
print(str, x-1, y-1, 0)
print(str, x , y-1, 0)
print(str, x+1, y-1, 0)
print(str, x-1, y , 0)
print(str, x+1, y , 0)
print(str, x-1, y+1, 0)
print(str, x , y+1, 0)
print(str, x+1, y+1, 0)
palt()
print(str, x, y, color)
end
function _update()
cls(1)
camera(x, 0)
if btn(KEY_LEFT) then x = x + 1 end
if btn(KEY_RIGHT) then x = x - 1 end
map(0, 0, 0, 0, 16, 16)
rectfill(10, 10, 114, 40, 12)
palt(0, false) palt(9, true)
rect(10, 10, 114, 40, 0)
spr(16, 18, 40, 1, 1, true)
sspr(24, 0, 16, 16, 10, 50, 16, 16, false, false)
palt()
text("HOLA, ESTA ES LA PRIMERA", 14, 15, 5)
text("DEMO DEL NOU E INCREIBLE", 14, 23, 5)
text("JAIL'S ADVENTURE 2!", 14, 31, 5)
circfill(64, 64, 20)
sset(9, 9, 6)
--ovalfill(30,10,100,100,8)
tline(10, 50, 10, 91, 1.125, 1, 0.0, 1.0/32.0)
line(10, 101, 41, 101, 9)
end