skin studio updates, save sync CLOSES #1533

This commit is contained in:
bryanthaboi
2026-08-19 05:57:44 -04:00
parent fd73ab2a11
commit 93374fbbbb
54 changed files with 9762 additions and 271 deletions
+5 -5
View File
@@ -34,7 +34,7 @@ local Font = require("src.render.Font")
-- a mod has taken a facade (src/mods/Gen2Compat.lua).
local Gen1Facade = require("src.mods.Gen2Compat")
local GbcPalette = require("src.render.GbcPalette")
local GameViewport = require("src.render.GameViewport")
local Playfield = require("src.render.Playfield")
local Gen2Save = require("src.core.gen2.Save")
local HallOfFame = require("src.core.gen2.HallOfFame")
local HiddenItems = require("src.world.gen2.HiddenItems")
@@ -7499,7 +7499,7 @@ function World:interactBody()
end
function World:fitScale()
local w, h = GameViewport.dimensions()
local w, h = Playfield.dimensions()
return math.max(1, math.floor(math.min(w / 160, h / 144)))
end
@@ -8336,7 +8336,7 @@ function World:rebuildNeighbors()
self.neighbors = {}
if not self.map then return end
local s = self:zoomScale()
local ww, wh = GameViewport.dimensions()
local ww, wh = Playfield.dimensions()
local vw = math.ceil(ww / s)
local vh = math.ceil(wh / s)
if vw % 2 ~= 0 then vw = vw + 1 end
@@ -9748,7 +9748,7 @@ function World:drawGround(s)
if canvas then
bw, bh = canvas:getDimensions()
else
bw, bh = GameViewport.dimensions()
bw, bh = Playfield.dimensions()
end
if BorderFill.fillBlock(self.map.def) == false then
-- BLACK: World:draw clears to a brown letterbox, so the void itself
@@ -10017,7 +10017,7 @@ end
function World:draw()
local G = love.graphics
local w, h = GameViewport.dimensions()
local w, h = Playfield.dimensions()
self:refreshColorMode()
G.clear(0.07, 0.05, 0.02, 1)