slime wrote:If you use this (all you need to do is require the file) then you'll get the performance of LuaJIT's FFI when calling ImageData methods, without having to worry about whether your C pointer / array arithmetic is correct.
How well do the different libraries go together? Is it possible to use Middleclass, hump.gamestate, Hardoncollider and Löve frames for example or is that just calling for trouble?
Thanks Bartbes, I'll give it a go.
There i one thing about class commons that is a bit unclear to me: Do I have to use the class commons syntax or can I use the middleclass syntax?
Edit: And somewhat related: Does middleclass-commons only work if I require it globally or is there a way to use it if I require it to a local variable?
I'm not sure, but usually loading lua files in the main thread is not an issue. Images and so on is a different matter, and for that there is https://github.com/kikito/love-loader.
murks wrote:
There i one thing about class commons that is a bit unclear to me: Do I have to use the class commons syntax or can I use the middleclass syntax?
The entire idea behind class commons is that you can use your class library of choice! So use the middleclass syntax.
murks wrote:
Edit: And somewhat related: Does middleclass-commons only work if I require it globally or is there a way to use it if I require it to a local variable?
It doesn't return anything, so.. don't assign it to anything?