I used one idea from @-Invert-, and that was to use rectangles for terrain. Everything else is by me. - arrow keys to move - space to skip - use with CREDIT :) How it works: - Picks a random y position for each chunk (16 chunks in total) - Randomly (with a 1/3 chance) decides whether a given chunk will be lava (cannot be 3 in a row, that gets impossible) - If the y is less than -155, change it to an empty pit - Renders the level - Tada!