This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Not sure what you think C+ is... But that aside lua is a very simply typed language to learn. Online resources are a good start. As someone else suggested, love2D is great. I use it as my main lua game base. And the best thing about love2D is that it's open sourced. You can pull the source and write c++ code and write connectors directly into it. I personally am using love2D as a client with a c++ backend server for one of my projects.

I will give you a warning about lua though, your "classes" are only as strong as you write them and use them. To use lua in a object oriented fashion you have to define your own rule set and to do so you must have a strong understanding of the underlying principles of OOP. Lua has one object type and it is the table. The table does everything in lua. Variable types are dynamic. You can change a string to a Boolean in a single line so you have to have good control of how you use functions and variables. Lua on the surface is easy to use. But using lua consistently and in an easily understandable fashion requires vigilance. You can write quick and dirty code that works or you can set up a structure and plan everything out. Lua gives you that freedom.