Can you get through the rising lava?
:video_game: https://ldjam.com/events/ludum-dare/51/lava-crossing
:bird: https://twitter.com/GibsCake

How I made the lava in Lava Crossing
The biggest challenges of the project were rendering the rising lava and detecting when the player had fallen into it.
The way lava works is fairly simple: every 10 seconds the space the lava occupies expands, making it harder and harder for the player to get through the level. Wait too long and there might not be a path left to cross.
The lava and the rest of the terrain is rendered using one massive unity "shader graph" shader (see below). Perlin noise is used to define a height map and then a ton of nodes are used to color the different height levels given the current time and position. Shader Graph is an absolute must-have for any new Unity developer learning to make games. The more you practice with it, the more complicated the things you can render with it and it really seems like there is no limit to what you can make with them + since no code is required, you can get into it and experiment pretty quick. AND since it's all shader code it runs straight on the GPU so its performance is perfect.
Detecting when a player dies is a bit more difficult: I can't use colliders since the shape of the lava changes constantly and its shape was too complex. The trick I used was to render the terrain on a specific texture and then checking the color of the pixel under which the car is. If it's lava colored, death, if not the player keeps moving.
Making this game was a blast and I hope you enjoy it as well!
