기본 콘텐츠로 건너뛰기

추천 검색

    Deep Dives
    Duncan Geere
    작성자
    Duncan Geere
    발행됨
    22. 9. 22.

    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

    이 이야기 공유하기

    Community Creations