Add dev-art
BIN
assets/1x/back.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 346 B After Width: | Height: | Size: 18 KiB |
BIN
assets/2x/back.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
|
Before Width: | Height: | Size: 398 B After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
27
src/back.lua
|
|
@ -8,7 +8,10 @@ local function save(ret)
|
||||||
return ret
|
return ret
|
||||||
end
|
end
|
||||||
|
|
||||||
local function back(b)
|
local back = (function()
|
||||||
|
local x = 0
|
||||||
|
|
||||||
|
return function(b)
|
||||||
local key = b.key
|
local key = b.key
|
||||||
local apply = b.apply
|
local apply = b.apply
|
||||||
local calculate = b.calculate
|
local calculate = b.calculate
|
||||||
|
|
@ -21,8 +24,10 @@ local function back(b)
|
||||||
return calculate and G.GAME.selected_sleeve ~= "sleeve_Roland_" .. key and calculate(self, ...)
|
return calculate and G.GAME.selected_sleeve ~= "sleeve_Roland_" .. key and calculate(self, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
b.atlas = "void"
|
b.pos = {x = x, y = 0}
|
||||||
|
b.atlas = "back"
|
||||||
SMODS.Back(b)
|
SMODS.Back(b)
|
||||||
|
x = x + 1
|
||||||
|
|
||||||
---@diagnostic disable-next-line: undefined-global
|
---@diagnostic disable-next-line: undefined-global
|
||||||
if not CardSleeves then
|
if not CardSleeves then
|
||||||
|
|
@ -50,18 +55,19 @@ local function back(b)
|
||||||
return self.get_current_deck_key() == "b_Roland_" .. key
|
return self.get_current_deck_key() == "b_Roland_" .. key
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
end)()
|
||||||
|
|
||||||
|
SMODS.Atlas {
|
||||||
|
key = "back",
|
||||||
|
path = "back.png",
|
||||||
|
px = 71,
|
||||||
|
py = 95,
|
||||||
|
}
|
||||||
|
|
||||||
-- SMODS.Atlas {
|
|
||||||
-- key = "back",
|
|
||||||
-- path = "back.png",
|
|
||||||
-- px = 71,
|
|
||||||
-- py = 95,
|
|
||||||
-- }
|
|
||||||
back {
|
back {
|
||||||
key = "blossom",
|
key = "blossom",
|
||||||
name = "Blossom",
|
name = "Blossom",
|
||||||
pos = {x = 0, y = 0},
|
|
||||||
config = {extra = {times = 2}},
|
config = {extra = {times = 2}},
|
||||||
loc_vars = function(self, _, _)
|
loc_vars = function(self, _, _)
|
||||||
return {vars = {self.config.extra.times}}
|
return {vars = {self.config.extra.times}}
|
||||||
|
|
@ -99,7 +105,6 @@ back {
|
||||||
back {
|
back {
|
||||||
key = "go",
|
key = "go",
|
||||||
name = "Go",
|
name = "Go",
|
||||||
pos = {x = 0, y = 0},
|
|
||||||
config = {extra = {times = 1, alt_times = 5}},
|
config = {extra = {times = 1, alt_times = 5}},
|
||||||
loc_vars = function(self, _, _)
|
loc_vars = function(self, _, _)
|
||||||
return {vars = {self.config.extra.alt_times - self.config.extra.times}}
|
return {vars = {self.config.extra.alt_times - self.config.extra.times}}
|
||||||
|
|
|
||||||