Log In  


Cart #bisiduyaya-0 | 2024-07-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

This is a proof of concept! It's a platformer where you use buoyancy to gain altitude. The deeper you dive, the more altitude you gain when popping out of the water! Kinda like a floatie in the pool.

Use left and right to move. Press X to dive deeper (when submerged) and O to move upwards (also while submerged). On land, press O to jump. Try to collect all the gems.

4


Nice, you figured it out! One thing I would recommend is to see if you can split

player.y+=player.dy
player.x+=player.dx

so that it moves x, checks x, moves y, then checks y, something like

player.y+=player.dy

if player.dy>0 then
  ...
elseif player.dy<0 then
  ...
end

player.x+=player.dx

if player.dx<0 then
  ...
elseif player.dx>0 then
  ...
end

which should hopefully make the collision more solid.

(also, use tab to intent, not space! I recommend going into config.txt in pico-8's appdata folder and changing tab_width to 2 and draw_tabs to 1)


This is really amazing. I love the water effects. I'd like to implement something like that in my next project.



[Please log in to post a comment]