Python Minecraft with Ursina: colour fix and saving/loading correct block types - part 16

Published: 02 June 2022
on channel: Red Hen dev
323
14

We better integrate the 'hard-coded' block types (e.g. ruby and emerald from the last video) for having a random tint or shade. This corrects a bug where these block types, which do not have their own textures on the texture atlas but appropriate the concrete uvs, frequently lose their designated hue and are rendered white or grey.

Finally, we make sure that the 'blockType' property is represented on the terrain dictionary (td) instead of simply a 't'. This means we have to update some logic checks, where before we were detecting terrain block via this 't'; now, we check for a block what eliminating alternatives, i.e. None or 'g' (gap).

Playlist:    • new Python Minecraft with Ursina  

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

Thanks for watching!


Watch video Python Minecraft with Ursina: colour fix and saving/loading correct block types - part 16 online without registration, duration hours minute second in high quality. This video was added by user Red Hen dev 02 June 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 323 once and liked it 14 people.