|
1 month ago | |
---|---|---|
assets | 1 month ago | |
autoloads | 1 month ago | |
data_structure | 1 month ago | |
resources/blocks | 1 month ago | |
scenes | 1 month ago | |
.gitignore | 1 month ago | |
README.md | 1 month ago | |
icon.svg | 1 month ago | |
icon.svg.import | 1 month ago | |
project.godot | 1 month ago | |
root.tscn | 1 month ago |
Building something similar to Minecraft
Based on Sable Spirit Studio's YT series
My code tends to diverge quite heavily at times as I worked out better methods of performing certain actions.
For instance, he went through a lot of work creating collision shapes for each block face and then using that to determine what face the player was looking at. However, I found the following basically removed any need for such complicated collision shapes and code:
EntityManager.create_block.emit("001", collider.position + get_collision_normal())
1 line of code replaced a very large amount of code and changes that were implemented in his Create Blocks
video.