I’ve had some downtime lately, finally back to 1 job though it’s financially straining to say the least. So I took a short period of time today to learn the basics of Love2d. Love2d is a 2d game engine that uses lua, and let me tell you, lua is strange stuff coming from c++, java, and javascript.
First off, to output a string with any sort of variable, in C++ you’d say cout<<”The number is: ” + x;
To output a string with a variable in Lua you say print(“The number is” .. x, xcoords, ycoords)
I might just be an amateur programmer with no experience in lua, but if you ask me .. is an odd way to do that. Oh, and if you want to have an if statement with two comparisons? You have to use the word ‘and’ instead of &&. Granted, that makes sense, but it’s just not the way most things do it.
In short, I don’t know LUA and I don’t know what I’m talking about. I’m going to try something different now. But while I’m here you can have a link to my abortion of a program:
http://filevo.com/k7eurigrzx5h.html (I can’t be bothered to install an FTP client right now to upload it to my web server)
You need to install love from their site and then just execute the .love file.
edit: also, I’d like to say that this was mostly a tutorial that someone else did, can’t find the link (dangit) but I added in things like window size, window bounds, and the debug text.







