Page 1 of 1

Getting started

Posted: Fri Sep 23, 2022 9:02 pm
by SatoriJokei
I'm very new to LUA and LOVE. And i was just wondering if anyone can help me get started and show me the basics (my cousin showed me his roblox LUA stuff and it seems interesting, so ive done datastores and stuff on roblox)

Re: Getting started

Posted: Sat Sep 24, 2022 1:59 am
by pgimeno
There's a wiki page called precisely Getting Started.

From there, you need to learn some basics of the Lua language and go to the wiki to see what Löve can do; the index on the left side is a great help.

Basically, sprites are images, so if you want to draw sprites, you use love.graphics.draw; many short programs only use that function and love.graphics.newImage.

You will also need to learn about two basic events: love.update and love.draw and then the input events, especially love.keypressed, but maybe you prefer to use love.keyboard.isScancodeDown in some cases instead of the love.keypressed event.

Re: Getting started

Posted: Sat Sep 24, 2022 2:53 am
by BrotSagtMist
Take in mind that roblox is NOT using Lua, they butchered their language quite a bit.

Löve is neither using Lua but Luajit but they are mostly compatible. So this is your friend for any language question:https://www.lua.org/manual/5.3/

Re: Getting started

Posted: Sat Sep 24, 2022 11:26 am
by pgimeno
Er, actually this one:

https://www.lua.org/manual/5.1/

Re: Getting started

Posted: Sat Sep 24, 2022 5:05 pm
by ddabrahim
You can find beginner tutorials at the top of this page:
https://love2d.org/wiki/Category:Tutorials

I recommend the first one, How to LÖVE:
https://sheepolution.com/learn/book/contents
It is walk you through all the basics and how to build a simple game.
Then you can find many other beginner and more advanced tutorials on YouTube and all over the internet, also paid ones at Udemy.
There are lots of great resources to find online.