Creating a Mario style level in Python / Pygame with a visual level editor [Tiled]

Опубликовано: 26 Ноябрь 2024
на канале: Clear Code
192,199
3.7k

In this tutorial you will learn how to create a mario style level for a platformer using the tiled editor. After this video you should have a good idea how to create basically any kind of 2D level (both top down and from the side).

If you don't know pygame check this video:
   • The ultimate introduction to Pygame  

Other parts in the mario platformer saga:
Intro -    • Creating a Mario style platformer in ...  
Player creation -    • Creating a platformer in Pygame with ...  

Project files:
https://github.com/clear-code-project...

Timestamps:
0:00:00 - Intro
0:00:50 - Using Tiled to create a level
0:31:49 - Exporting TIled CSV files
0:34:47 - Setting up the level in pygame
0:44:03 - Importing CSV files
0:51:45 - Converting CSV data to usable positions
1:08:29 - Importing a tilesheet and slicing it (+terrain placement)
1:24:24 - Setting up all static layers
1:35:25 - Creating and placing the animated tiles
2:25:57 - Adding the sky, water and clouds
2:52:34 - Integrating the player character