略過並前往主要內容

建議的搜尋內容

    Deep Dives
    Duncan Geere
    作者
    Duncan Geere
    已發佈
    2022/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