- Seguim treballant en polir bugs i deixar guapeta la API
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
x=0
|
||||
|
||||
function _init()
|
||||
function mini.init()
|
||||
--text=other.peiv()
|
||||
--keyRight = tonumber(getconf("keyright")) or KEY_RIGHT
|
||||
--keyLeft = tonumber(getconf("keyleft")) or KEY_LEFT
|
||||
@@ -10,23 +10,34 @@ function _init()
|
||||
--turbo(false)
|
||||
--local perico = "péricòñ"
|
||||
--print(utf8.len(perico))
|
||||
ants = 0xc936;
|
||||
s = surface.load("tiles01.gif")
|
||||
--surface.source(s)
|
||||
p = palette.load("tiles01.gif")
|
||||
palette.set(p)
|
||||
palette.setTransparent(255)
|
||||
print(#p)
|
||||
surface.save(s, "data/copy.gif", p)
|
||||
surface.save(s, "data/copy.gif")
|
||||
s = surface.load("copy.gif")
|
||||
--draw.source(s)
|
||||
system.setBeat(4)
|
||||
end
|
||||
|
||||
function _update()
|
||||
if key.press(key.ESCAPE) then
|
||||
sys.quit()
|
||||
function mini.update()
|
||||
if keyboard.keyPressed(key.ESCAPE) then
|
||||
system.quit()
|
||||
end
|
||||
|
||||
draw.cls(5)
|
||||
draw.blit(s, 0, 0, 64, 64, 10, 10)
|
||||
if system.isBeat() then
|
||||
ants = (ants >> 12) | ((ants<<4)&0xffff)
|
||||
end
|
||||
surface.cls(5)
|
||||
draw.surface(s, 0, 0, 64, 64, 10, 10)
|
||||
draw.rect(10, 10, 73, 73, 8)
|
||||
draw.setPattern(ants)
|
||||
draw.rect(10, 10, 73, 73, 0)
|
||||
|
||||
draw.setPattern(0xffff)
|
||||
--draw.print(#p,0,0,2)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user