HowToAddCreaturesStendhal: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Kymara
improve ai profiles section.
imported>Kymara
not been called GameObjects for a long time. is EntityMap
Line 95: Line 95:
See also [[StendhalOpenTasks#Monsters and Items| How to know graphics specifications for creatures]]
See also [[StendhalOpenTasks#Monsters and Items| How to know graphics specifications for creatures]]


= Register the class =
= Edit GameObjects=
Just in case your sprite is not an standard size ''(48x64)'' you will need to use a different Creature class, there is probably already one there available like giant_human or huge_animal, etc, but just incase not here is how to do a new one:
Just in case your sprite is not an standard size ''(48x64)'' you will need to use a different Creature class, there is probably already one there available like giant_human or huge_animal, etc. If not, add your creature src/games/stendhal/client/entity/EntityMap.java, like this:


register("creature","small_animal",SmallCreature.class);
register("creature","small_animal",SmallCreature.class);