- [NEW] Redimensionades les habitacions per a ocupar tota la pantalla

- [FIX] Ajustada posició inici segons nou tamany de habitacions
- [FIX] Ajustat nivell de l'aigua segons nou tamany de habitacions
- [WIP] Treballant en el nou menú
This commit is contained in:
2026-03-11 07:42:24 +01:00
parent 9dcaaa0882
commit de873a7a25
8 changed files with 174 additions and 67 deletions

View File

@@ -124,12 +124,12 @@ game = {
apply_water = function()
view.origin(0,0)
if rooms.pos.y == 84 then
if rooms.pos.y == 91 then
surf.target(game.back_buf)
surf.source(game.back_buf)
for x=0,159 do
local water_level = math.sin(game.water_counter)*2
for y=96+water_level,103 do
for y=88+water_level,103 do
local pixel = surf.pixel(x,y)
surf.pixel(x,y,game.water_pal[pixel+1])
end