Page 1 of 1

[Solved] Lua or Moonscript?

Posted: Tue May 20, 2014 8:53 pm
by eduardojuniosm
I'm thinking about create a game in love2d and I can't choose if I'll work with pure Lua or Moonscript. Which is better for OOP? Thank you in advance.

Re: Lua or Moonscript?

Posted: Tue May 20, 2014 10:42 pm
by smoking bunny
so why bother using love2d? why not just embed lua into a c++ project instead? you can still use images, love2d makes it easier to work with such things though.
im not key on moonscript, but you can use lua in love2d, because its built with lua, so really you would still be working with pure lua, in a sense, just more that you have an 'add-on' for it instead. plus has oop. plus its still multi-platform capable.

its more on how you implement it to work rather than whats better, the discussion could go either way for peoples own perspective on what is better. its the user and practitioner that makes it better because its them who is working with it in their own way.

you just need to get on and make something, look at some examples and dig deep into things.

Re: Lua or Moonscript?

Posted: Tue May 20, 2014 10:59 pm
by eduardojuniosm
smoking bunny wrote:so why bother using love2d? why not just embed lua into a c++ project instead? you can still use images, love2d makes it easier to work with such things though.
im not key on moonscript, but you can use lua in love2d, because its built with lua, so really you would still be working with pure lua, in a sense, just more that you have an 'add-on' for it instead. plus has oop. plus its still multi-platform capable.

its more on how you implement it to work rather than whats better, the discussion could go either way for peoples own perspective on what is better. its the user and practitioner that makes it better because its them who is working with it in their own way.

you just need to get on and make something, look at some examples and dig deep into things.
Thank you for your answer.

Re: Lua or Moonscript?

Posted: Tue May 20, 2014 11:08 pm
by master both
Since Moonscript compiles into lua, you can use whatever you like, although lua doesn't have OOP built into, but there are many different libraries you can use. Here you can find a few Link.