- [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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user