Code for episode 14
To note: this was originally intended to be episode 13. Now, this will be episode 14, and episode 13 will be about general code cleanup and optimization.
Includes:
- [x] ~OBJ model loader (could possibly be split into a separate tutorial?).~ (Instead, there's currently a converter script to convert Bedrock models to MCPY block model files. I might change my mind on this again though...)
- [x] A bunch of entities, defined in an entity descriptor file (
data/entities.mcpy). They can be spawned by pressing P. - [x] ~An instanced rendering system for rendering entities.~ (In the end, the bottleneck is by far from computing physics & collisions for entities, not from draw calls. Also incompatible with animation model.)
- [x] Specific mob shaders for lighting them correctly ~(may end up in a future episode)~.
- [ ] The ability to save/load entities.
- [x] Extremely basic mob AI.
- [x] Mob animations.
- [ ] Use correct textures lol #98
- [ ] Sort out normals, because they're incorrect. See https://github.com/NovAti0n/MOOdle/pull/16
The different entities include the player, pigs, zombies, skeletons, creepers, ~spiders, sheep, giants, slimes,~ and cows.
Will merge when the episode comes out on my YouTube channel!
yay
Can you please add a menu and infinite worlds too?
And maybe multiplayer?
Can you please add a menu and infinite worlds too?
Infinite worlds are quite trivial to do, the problem is rather with chunk generation performance. I don't know if menus will be covered by a tutorial per se, but the one on 2D interface elements will come soon (right after episode 13 on mobs).
And maybe multiplayer?
That's planned, but not for the moment ;)
This pull request introduces 18 alerts when merging 5f57e913a13e311a3df30af56b26b9abc5a09d01 into 8ee716aea159f25732d5cb2aa4af1218c82fa4ad - view on LGTM.com
new alerts:
- 7 for Wrong number of arguments in a class instantiation
- 4 for Wrong number of arguments in a call
- 3 for Unused local variable
- 3 for Unused import
- 1 for Module imports itself
This pull request introduces 15 alerts when merging 38293266477fbaffbc7804fca455cb54c3b93d47 into 8ee716aea159f25732d5cb2aa4af1218c82fa4ad - view on LGTM.com
new alerts:
- 7 for Wrong number of arguments in a class instantiation
- 4 for Wrong number of arguments in a call
- 3 for Unused import
- 1 for Module imports itself
This pull request introduces 15 alerts and fixes 1 when merging f07f5245efa4b632978a92f7fd16d3aa7eb82d80 into 8ee716aea159f25732d5cb2aa4af1218c82fa4ad - view on LGTM.com
new alerts:
- 6 for Wrong number of arguments in a class instantiation
- 5 for Wrong number of arguments in a call
- 3 for Unused import
- 1 for Module imports itself
fixed alerts:
- 1 for Unused import
alr nerd
This pull request introduces 15 alerts and fixes 1 when merging 030642dfdfb16965b95d1404026b4e20eaf4c0dd into 8ee716aea159f25732d5cb2aa4af1218c82fa4ad - view on LGTM.com
new alerts:
- 6 for Wrong number of arguments in a class instantiation
- 5 for Wrong number of arguments in a call
- 3 for Unused import
- 1 for Module imports itself
fixed alerts:
- 1 for Unused import
chill nerd bot we have pycharm
how about a villager mob?
maybe you can set a trading system
yeah that would be fun, once a UI system is in place! maybe to be added in the community directory because that's a bit out of scope for the episodes.
Obiwac didn't add a bottom texture or smt is true :) i checked the texture folder :>
of the torch i mean