Add dev-art

This commit is contained in:
Emik 2026-02-10 13:04:25 +01:00
parent 62de0242ee
commit 74fc8e5811
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
11 changed files with 53 additions and 48 deletions

BIN
assets/1x/back.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 346 B

After

Width:  |  Height:  |  Size: 18 KiB

BIN
assets/2x/back.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 398 B

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View file

@ -8,60 +8,66 @@ local function save(ret)
return ret
end
local function back(b)
local key = b.key
local apply = b.apply
local calculate = b.calculate
local back = (function()
local x = 0
function b:apply(...)
return apply and G.GAME.selected_sleeve ~= "sleeve_Roland_" .. key and save(apply(self, ...))
return function(b)
local key = b.key
local apply = b.apply
local calculate = b.calculate
function b:apply(...)
return apply and G.GAME.selected_sleeve ~= "sleeve_Roland_" .. key and save(apply(self, ...))
end
function b:calculate(...)
return calculate and G.GAME.selected_sleeve ~= "sleeve_Roland_" .. key and calculate(self, ...)
end
b.pos = {x = x, y = 0}
b.atlas = "back"
SMODS.Back(b)
x = x + 1
---@diagnostic disable-next-line: undefined-global
if not CardSleeves then
return
end
---@diagnostic disable-next-line: undefined-global
CardSleeves.Sleeve {
key = key,
pos = b.pos,
atlas = "void",
config = b.config and f(b.config):into() or nil,
loc_vars = function(self, ...)
local ret = b.loc_vars and b.loc_vars(self, ...) or {}
ret.key = self:is_alt() and self.key .. "_alt" or self.key
return ret
end,
apply = function(self, ...)
return (b.alt_apply and self:is_alt() and b.alt_apply or apply)(self, ...)
end,
calculate = function(self, ...)
return (b.alt_calculate and self:is_alt() and b.alt_calculate or calculate)(self, ...)
end,
is_alt = function(self)
return self.get_current_deck_key() == "b_Roland_" .. key
end,
}
end
end)()
function b:calculate(...)
return calculate and G.GAME.selected_sleeve ~= "sleeve_Roland_" .. key and calculate(self, ...)
end
SMODS.Atlas {
key = "back",
path = "back.png",
px = 71,
py = 95,
}
b.atlas = "void"
SMODS.Back(b)
---@diagnostic disable-next-line: undefined-global
if not CardSleeves then
return
end
---@diagnostic disable-next-line: undefined-global
CardSleeves.Sleeve {
key = key,
pos = b.pos,
atlas = "void",
config = b.config and f(b.config):into() or nil,
loc_vars = function(self, ...)
local ret = b.loc_vars and b.loc_vars(self, ...) or {}
ret.key = self:is_alt() and self.key .. "_alt" or self.key
return ret
end,
apply = function(self, ...)
return (b.alt_apply and self:is_alt() and b.alt_apply or apply)(self, ...)
end,
calculate = function(self, ...)
return (b.alt_calculate and self:is_alt() and b.alt_calculate or calculate)(self, ...)
end,
is_alt = function(self)
return self.get_current_deck_key() == "b_Roland_" .. key
end,
}
end
-- SMODS.Atlas {
-- key = "back",
-- path = "back.png",
-- px = 71,
-- py = 95,
-- }
back {
key = "blossom",
name = "Blossom",
pos = {x = 0, y = 0},
config = {extra = {times = 2}},
loc_vars = function(self, _, _)
return {vars = {self.config.extra.times}}
@ -99,7 +105,6 @@ back {
back {
key = "go",
name = "Go",
pos = {x = 0, y = 0},
config = {extra = {times = 1, alt_times = 5}},
loc_vars = function(self, _, _)
return {vars = {self.config.extra.alt_times - self.config.extra.times}}