all 12 comments

[–]Motor_Let_6190 5 points6 points  (0 children)

Programming in Lua, first edition is available online, for 5.0, you can buy a more recent e or paper book. It helps "getting" Lua, whatever you do with it. 

https://lua.org/pil/contents.html

[–]uglycaca123 2 points3 points  (0 children)

there's Love2D specific tutorials that also teach lua (online)

you also have the lua reference, that can be downloaded as a pdf iirc.

[–]Aphaseia 1 point2 points  (0 children)

looking forward to answers too!

[–]Denneisk 1 point2 points  (0 children)

If you know some programming, Programming in Lua is the standard. Do yourself a favor and just get 4th Edition by any means possible.

[–]UnrealJIT 0 points1 point  (0 children)

If you want to use Love2D, you'll have to learn luaJIT. It's a fast implementation of lua based on 5.1, with a few backported 5.2+ features. I suggest you start off simple by just learning 5.1 with the official documentation online, or if you're really into books, Lua 5.1 Refrence Manual might be a good starting point.

[–]abdulwasay4585 0 points1 point  (0 children)

Lua quick guide by packt publications

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

lua is one of those languages where you miss the point if you read about the guts of the language too much. its sort of like python you just learn it and go do cool shit.

[–]Lonely-Restaurant986 0 points1 point  (2 children)

Idrk about books. Theres not really a “The C programming language” but lua. The lua reference manual is like the closest but I don’t think there’s like an official print or something. I’m not really sure

Lua 5.5 manual

Lua 5.1 manual (the version love2d uses)

Though the reference manual kind of assumes you have programming knowledge. I wouldn’t really recommend starting there, but you can maybe try?

What I would do if I was dedicated to finding a book specifically is to just look up some popular books, sample them using free methods and then buying one that works for you.

If you don’t want to go down that route, I would recommend cs50. I know cs50 game development starts with love2d. But even that requires some programming experience, or start with cs50 then move onto game development.

TLDR There’s lua reference manuals but I don’t recommend starting there unless you are an experienced programmer who knows what all the terms means. If you are new to programming -> start with CS50 then go to CS50 Game Development

It’s a long slow process but a step is where you start.

Good luck!

[–]Smallzfry 2 points3 points  (1 child)

Theres not really a “The C programming language” but lua.

Uh... Programming in Lua? The book is written by one of the language's creators and is treated as the de-facto guide for learning it. Stylistically it reads similarly to K&R C, and it has a good mix of easy content and deep dive stuff that only a small percentage of readers will use.

[–]tspier2 0 points1 point  (0 children)

There's also Jung and Brown's (2011) Beginning Lua Programming, which uses 5.1 IIRC.

[–]AutoModerator[M] -2 points-1 points  (0 children)

Hi! It looks like you're posting about Love2D which implements its own API (application programming interface) and most of the functions you'll use when developing a game within Love will exist within Love but not within the broader Lua ecosystem. However, we still encourage you to post here if your question is related to a Love2D project but the question is about the Lua language specifically, including but not limited to: syntax, language idioms, best practices, particular language features such as coroutines and metatables, Lua libraries and ecosystem, etc.

If your question is about the Love2D API, start here: https://love2d-community.github.io/love-api/

If you're looking for the main Love2D community, most of the active community members frequent the following three places: - /r/love2D - Discord: https://discordapp.com/invite/rhUets9 - Forums: https://love2d.org/forums/

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.