3D Minecraft in Python Using Ursina #3 ||
ฝัง
- เผยแพร่เมื่อ 25 ส.ค. 2024
- Timings:
0:00:00 Function to get the item position.
0:00:47 Putting all classes and functions in a specific file
0:01:27 Managing chunks using IDs
0:01:41 The Area class
0:01:59 Passing 'chunkID' and 'Area'
0:02:03 The 'Chunks.pfs' file
0:02:05 The Blocks class
0:02:55 Ursina Import in 'customs.py'
0:03:00 Completing Blocks class
0:04:36 Trying to use strings for IDs.
0:05:02 Trying to Tuple to make ID
0:05:33 Using class to make ID
0:05:55 Completing the Area class
0:06:39 Output of the efforts....
0:07:23 I forgot to complete...
0:07:42 chunkID usage...
Summary:
This video starts with a function named 'getItemSlot()'. It takes four args and returns a tuple. This is used to get the position of the item held to show. I was working in the Tutorials directory and I wanted another file for Minecraft. So I created a folder in minecraft in which I put these both.