Przejdź do głównej zawartości

Sugerowane wyszukiwane frazy

    Deep Dives
    Duncan Geere
    Napisane przez
    Duncan Geere
    Opublikowano
    22.09.2022

    Mob Menagerie: Fox

    Comes in kit form!

     When developing foxes, we used the same equipment system that all mobs use. In code, this meant that fox's 'main hand' ended up being their mouth. So when a fox picks up an item in their mouth, their code thinks they're holding that item in their main hand. This allows them to, for instance, eat food. It also, however, allows them to gain the benefits of the weapon they are holding. So if a fox holds a diamond sword in its mouth and attacks something, it uses the damage from the sword to hurt its prey. While this wasn't part of the original design, it quickly became such a fun part of the fox's behavior that we ended up adopting it into the final design!

    Cory Scheviak

    Udostępnij tę historię

    Community Creations