Python Minecraft with Ursina: inventory, ui, and improvements for terrain and collisions - part 13

Опубликовано: 22 Февраль 2022
на канале: Red Hen dev
2,648
51

First, we add linear fog and optimise code with a config file (thanks to suggestion from Less Wright), and also improve our procedurally generated terrain with another octave of perlin noise and a sine wave for variation of details. Oh, if you enjoy procedural terrain generation as much as I do, you'll really like this video, from Henrik Kniberg:    • Minecraft terrain generation in a nut...  

Finally, we get started with a Minecraft-style hotbar. To do so, we parent an entity not to the scene but to the camera.ui. From there, we get started with the tricky use of ui co-ordinates to position and scale the hotbar. We also add a simple way to pause the game (the subject's movement) and free up the mouse, ready for dragging inventory items etc.

Playlist:    • new Python Minecraft with Ursina  

Code and assets from video: https://github.com/RedHenDev/ursina_t...

Thanks for watching!


Смотрите видео Python Minecraft with Ursina: inventory, ui, and improvements for terrain and collisions - part 13 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Red Hen dev 22 Февраль 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,648 раз и оно понравилось 51 людям.