2D tile-based world in Python

Опубликовано: 12 Июнь 2026
на канале: Hunter Muir
83
1

When you see the player fall through the floor or teleport around I am using debug features to explore more of the map.

The caves were generated using a custom implementation of celluar automata, and the surface of the world was generated using 2 layers of combined perlin noise. The collision system is a custom implementation of standard AABB collision that detects the colliding face and uses that to place the player at a correct valid position. I used another layer of noise to create "biomes". The world shown in the video was generated at 256x256 tiles for testing purposes but the program can also generate a world with ~5 million tiles in a (semi) reasonable amount of time.

Also, this was made using PyGame for some reason.