Page 1 of 1

C++ Mobs

PostPosted: Mon Mar 18, 2013 01:23
by jojoa1997
I have Ben thinking about how mobs will be added in c++ and I got an idea. Why not have a template for all the movements in c++ and let lua decide the qualities of the animal. If this is possible then you would have the quickness of c++ but the readability of lua.

PostPosted: Mon Mar 18, 2013 02:35
by prestidigitator
Looking at the mobf framework, I'm wondering if straight Lua performance can be improved. The framework makes adding new mobs admittedly easy, but it also seems very complex and like it does a lot of stuff that might not be necessary if each mod had a little more intelligence built into it. For example, the framework might have to do a lot less busy work if it were left up to individual mods to implement spawning algorithms optimized for the type of mob they implement.