Enforce that walls that have an object attached cannot be removed
Completes the support for wall-mounted objects from the previous commit by also stopping the user from removing walls that have objects attached to them until you remove the object.
Ramblings about hobbyist game development
Enforce that walls that have an object attached cannot be removed
Completes the support for wall-mounted objects from the previous commit by also stopping the user from removing walls that have objects attached to them until you remove the object.
– add support for wall-mounted objects
– fix check whether an object is selectable in shop mode
This means the introduction of a new object category that determines that an object needs to be connected to a wall in a certain direction in order to be placable, for the time being this means the sink can no longer float.
do not walk diagonally if there is an object in the way
Some assumptions that were made when doing the original check if a position is navigable do not help up all that well with the diagonal movement. Better fix those.
Replace food job icons with proper rendered ones
Less terrible pixel art, more slighty-less-terrible Blender created assets:
Fix crash by making sure to lock the UI before restting the context container
More mutex fun!
Make animations script controllable and add an eating animation
Exports the newly added functions that control the current animation to Python. Show the “eat” animation when a character is currently eating something.
Add diagonal movement
This improves the navigation by adding diagonal movement, which seems a lot more natural:
Make sure to always rotate in the right direction
If you remember some of the earlier videos, sometimes the characters would rotate in the wrong direction, which seems even more odd now that animations work. Let’s fix this:
– Add functions to more comfortably change animations on objects
– Automatically switch to a walking state for moving objects. Set the idle state when the destination is reached.
This makes it possible to quickly change the animation on the fly. Also, changing the animations like this makes the movement seem a lot more natural.
– Resolve deadlock when changing resolutions
– Very minor optimisation: pre-calculate what is essentially a static value
This is a recurring issue, once again fixed in its most current iteration.