Floater, Extending Classes, Walking

Mobs now move towards player correctly, but sometimes the chomper doesn’t attack the player.  I am thinking the facing angle got messed up when I converted from a top down to side view.

I was reading about extending classes and thought that would be great to do for my mobs.  Each mob type is a class with a bunch of variables that define it’s HP, attacks, etc.  The mobs share many of the same variable values, so I made a mob template class.  I then added an init function to the specific mobs to only set the values that are not the same as the template.  That makes for a lot less redundant code and the individual mob’s classes are now much cleaner.

I built a squid like floater mob that will shoot at the player.  I finished the shoot animation, but still need to texture the model.

Leave a Reply

Your email address will not be published. Required fields are marked *