- [WIP] Aigua
This commit is contained in:
@@ -33,6 +33,17 @@ game = {
|
|||||||
--sprites.update_hero()
|
--sprites.update_hero()
|
||||||
|
|
||||||
view.origin(0,0)
|
view.origin(0,0)
|
||||||
|
if rooms.pos.y == 84 then
|
||||||
|
surf.target(game.back_buf)
|
||||||
|
surf.source(game.back_buf)
|
||||||
|
for y=96,103 do
|
||||||
|
for x=0,159 do
|
||||||
|
local pixel = surf.pixel(x,y)
|
||||||
|
surf.pixel(x,y,game.water_pal[pixel+1])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
surf.target(0)
|
surf.target(0)
|
||||||
--surf.source(game.back_buf)
|
--surf.source(game.back_buf)
|
||||||
--draw.surf(0,0,160,104,0,0,160,104)
|
--draw.surf(0,0,160,104,0,0,160,104)
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Reference in New Issue
Block a user