about Lua

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
tutor_34
Prole
Posts: 8
Joined: Thu Apr 01, 2021 2:54 am

about Lua

Post by tutor_34 »

OK Hello I am a noob, wanting to know more about lua ofcourse, is there a site where you can find out like certain keywords for lua.
say i wanna write a demo game and stuff like, how would i know what to type like i know with programming in general you write code in a list manner but like how would i know what to write....umm to be more specific like say i wanna make a game demo where would i start with and is it just lua that dose everything do i need like opengl n stuff like i dont know much but ive been practice programming for like 2 or 3 years and ive gotten nowhere...but this site is helping me a bit more than anything i ever come across...like i wanna get a demo game from this site and look at its code to see what goin on ya know study it and stuff....

Umm like im lost and i dont think i got my point across well here i will try again but can someone atleast comment???

ive got the computer fever rite now!! thanks gamers and programmers!!!!!

Tutor_34
MrFariator
Party member
Posts: 243
Joined: Wed Oct 05, 2016 11:53 am

Re: about Lua

Post by MrFariator »

Perhaps this tutorial by sheepolution can get you started? It should help you learn and understand lua and löve.
User avatar
Xii
Citizen
Posts: 89
Joined: Thu Aug 13, 2020 9:09 pm
Contact:

Re: about Lua

Post by Xii »

For any programming language, there are always three resources to read.

1. Language reference manual. LÖVE uses Lua 5.1. This tells you all the language keywords and features.

2. Standard library. A collection of universally useful functions included in the language itself. For Lua, these are listed in the language reference manual above, here. Additionally, LÖVE uses a flavor of Lua called LuaJIT, which includes some additional libraries, detailed here.

3. Your chosen framework/middleware/library, in this case LÖVE. All the functions provided are described on the wiki, by category.

Additionally there are both Lua and LÖVE tutorials on the web, which you can find on any search engine like Google.

Finally, as is the case right here, a helpful community will assist you along the way. :)
User avatar
Gunroar:Cannon()
Party member
Posts: 253
Joined: Thu Dec 10, 2020 1:57 am

Re: about Lua

Post by Gunroar:Cannon() »

You can use opengl, but you only need lua. The functions inside love2d(like love.graphics.draw) aren't coded in lua but in c++, then their made to work in lua to make it faster. Once you know about tables in lua, you're fine(tho there's still functions and logic and whatnot :) )
me: I don't always code but when I do it's done flawlessly.
also me:

Code: Select all

 function Gunroar:Cannon()
    for x, enemy in ipairs(self.allEnemies) do
        self:Cannon(enemy)
    end
end

Code: Select all

Lua Error: [file Gunroar.lua]:18: C stack overflow
togFox
Party member
Posts: 150
Joined: Sat Jan 30, 2021 9:46 am

Re: about Lua

Post by togFox »

Sheepollution is where you start. Have the wiki handy.
User avatar
Gunroar:Cannon()
Party member
Posts: 253
Joined: Thu Dec 10, 2020 1:57 am

Re: about Lua

Post by Gunroar:Cannon() »

togFox wrote: Thu Apr 01, 2021 11:46 pm Sheepollution is where you start. Have the wiki handy.
It seems that, truly, we all started at sheep pollution.
"( -_- )" *nod*
me: I don't always code but when I do it's done flawlessly.
also me:

Code: Select all

 function Gunroar:Cannon()
    for x, enemy in ipairs(self.allEnemies) do
        self:Cannon(enemy)
    end
end

Code: Select all

Lua Error: [file Gunroar.lua]:18: C stack overflow
tutor_34
Prole
Posts: 8
Joined: Thu Apr 01, 2021 2:54 am

Re: about Lua

Post by tutor_34 »

Firstly I would like to thank everyone...sheep pollution here i come...
togFox
Party member
Posts: 150
Joined: Sat Jan 30, 2021 9:46 am

Re: about Lua

Post by togFox »

I actually dusted with 'Getting started' and configuring Notepad,++ but yeah, Sheep has Little bit of everything.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 32 guests