- [NEW] Minimapa en el editor

- [NEW] Diferent marcador
- [NEW] Més habitacions
This commit is contained in:
Raimon @ quifisraimon committed 2026-10-01 12:44:07 +02:00
1 parent a86011ba37
commit 8a770de885
12 files changed
+359 -24

No files matched your search

+12 -12
View File
@@ -1,6 +1,6 @@
score = {
points = 0,
color = 21,
color = 28,
ypos = 3,
surf = nil,
font = nil
@@ -17,16 +17,16 @@ local function draw_text()
font.current(me.font)
font.spacing(0)
local txt = string.format("%03d", me.points)
draw.text(txt,2,me.ypos-1,27)
draw.text(txt,3,me.ypos-1,27)
draw.text(txt,4,me.ypos-1,27)
draw.text(txt,2,me.ypos,27)
draw.text(txt,4,me.ypos,27)
draw.text(txt,2,me.ypos+1,27)
draw.text(txt,4,me.ypos+1,27)
draw.text(txt,2,me.ypos+2,27)
draw.text(txt,3,me.ypos+2,27)
draw.text(txt,4,me.ypos+2,27)
-- draw.text(txt,2,me.ypos-1,27)
-- draw.text(txt,3,me.ypos-1,27)
-- draw.text(txt,4,me.ypos-1,27)
-- draw.text(txt,2,me.ypos,27)
-- draw.text(txt,4,me.ypos,27)
-- draw.text(txt,2,me.ypos+1,27)
-- draw.text(txt,4,me.ypos+1,27)
-- draw.text(txt,2,me.ypos+2,27)
-- draw.text(txt,3,me.ypos+2,27)
-- draw.text(txt,4,me.ypos+2,27)
draw.text(txt,3,me.ypos+1,1)
draw.text(txt,3,me.ypos,me.color)
font.current(font.DEFAULT)
@@ -64,6 +64,6 @@ end
function me.inc(value)
me.points = me.points + value
tweening.add(8, 0, 0.5, easing.linear, function(val,progress,finished) me.color = (math.floor(val)&1) == 0 and 21 or 14 end)
tweening.add(8, 0, 0.5, easing.linear, function(val,progress,finished) me.color = (math.floor(val)&1) == 0 and 28 or 14 end)
tweening.add(5, 3, 0.5, easing.easeOutElastic, function(val,progress,finished) me.ypos = math.floor(val) end)
end