As lua is a language made by Brazilians, here at the federal university in my state, Maranhão - Brazil, they teach it to people in their first period as a way of valuing our creations, it really was a great experience, congratulations on the video!
As a roblox scripter with 4 years of experience on luau (the modified version of Lua by roblox) I can say that this video goes through the basics and you will definitely learn something out of it!
@@japannumbeone5702im not experienced by any means but I've been properly going at learning for the past 5-6 days and I can tell u, yesand no. U can make a game with this tutorial but slowly. Very slowly. There is alot more to learn when game deving for Roblox because Roblox themselves modified lua script to be luau. This means that there are alot more elements that can be tweaked to compensate for the game being 3d. So it will take a bit more learning to fully grasp the basic concepts required to make a script run. Don't expect to be able to make something that would absolutely wow players. My first game was an obby which I scripted killparts and moving objects into (the moving objects took me bloody ages to code). I'm glad to see I'm not the only one learning how to script and I wish u well! For TH-camrs I'd recommend u watch to learn more I'd say smartyblox, thedevking and rodev. Keep working 🫡
@@japannumbeone5702no for that I suggest you look at thedevking bigginer and advanced series to try to make a small game this don’t cover robloxes luea
As a Brazilian that's really cool. Unfortunately the language is not very popular, not even in Brazil. Another fun fact is that the (very popular) Elixir was also created by a Brazilian
@@junior.santana first time I used lua was a long time ago, with computer craft, a Minecraft mod. After that, I used it to mod factorio. I also embedded it into a game I was making, for modding support, and scenario control. So like, scheduled events, and such, level specific logic. I now I just use it to customize nvim. But over the years I have come to appreciate it's simplicity, and how easy it is to embed into something, while still being super lightweight. Comparing it to python or javascript, that require much much heavier interpreters. Like, if you need to allow for scripting in your application, or have some sort of scripting language in it, before rolling your own, that people wont know, may be finicky, wont have as many resources, etc, lua fits the role perfectly.
for your game i think a cool addition is I think a area where you have a place to rest almost like being able to buy a hut where you can use seeds to create a farm for extra cash they could also be used for a quest or eating them to heal potentially and make it so you can edit your house i love games where the focus is adventure and interesting but there's always a place where i can go to chill calm down and just gather without worrying about healing finding loot it's just a peaceful atmosphere also thank you for the tutorial
I have a tiny bit of coding experience and want to learn a simple program and this is perfect. I love legend of Zelda and wants to try to make my own game of it.
Your work inspired me to try develop a basic game using Lua and Love! Thank you so much for this video! Also, I know moonshire is coded using Lua, but do you also integrate C? As crazy as it sounds, Lua supports C code execution. I want to use the combination between eficient memory usage from Lua and the speed from C to create a basic but well optimized pong game. Im a programmer so this is so exciting for me. I love your content! Thank you so much!
That looks like good old C for now (whit "smart" typing", whitout ; and have "strange" arrays) I guess these are just the basics, I like this tutorial system for beginners I like it
I recommend to you all learn Lua, that programming language will be the modding language for Hytale. Hytale could be the next Roblox, so is a good investment of time.
Your explanation of numeric for loops is wrong. That variable isn't an iterator. It's the value returned by the iterator. The for loop is pre-calculated as a range, then that range is iterated using a built-in version of the same process as the generic for loop. This matters because both because it allows changing the variable in the loop with effecting any other iterations and also because it means that the only way to stop the for loop early is an explicit break. Also it would've been a good idea to mention how to specify keys when using a table constructor to make an already filled-in table. For example, there are cases, especially in game dev, where it's genuinely better to start from 0 for your indices (ie. making grid layout without wasting cycles and memory to do a multi-dimensional table structure). I also would prefer if these types of beginner lua videos mentioned the fact that tables are created by the constructor and stored by reference (and perhaps not use phrases like "initialize the variable as an empty table" since that's literally not what's happening). I know it doesn't seem beginner-ish, but it's a pitfall that I've seen people fall into over and over again. Like, it's really important to understand that if you want to have functions that update game objects or similar constructs.
gdscript is only used within Godot, sure lua isn't used that much (to my knowledge) but it's still general purpose which means it has a variety of use case's, it does a lot of stuff that gdscript can't do because gdsciprt wasn't designed to do the things that a general purpose language can do, and to my understanding this video is on the lua programming language right? where is game development even mentioned here? lua can be used for things outside of game development
As lua is a language made by Brazilians, here at the federal university in my state, Maranhão - Brazil, they teach it to people in their first period as a way of valuing our creations, it really was a great experience, congratulations on the video!
Lua é brasileira?!?!?!
@@mattyebungas sim, foi criado por cariocas na PUC do Rio de Janeiro
Agora tudo faz sentido
already coding small games with lua but supporting you with by watching to the end
As a roblox scripter with 4 years of experience on luau (the modified version of Lua by roblox) I can say that this video goes through the basics and you will definitely learn something out of it!
Hey is this tutorial enough to start making some smaller games on roblox (For learning while making them ofc not full on projects)?
@@japannumbeone5702im not experienced by any means but I've been properly going at learning for the past 5-6 days and I can tell u, yesand no. U can make a game with this tutorial but slowly. Very slowly. There is alot more to learn when game deving for Roblox because Roblox themselves modified lua script to be luau. This means that there are alot more elements that can be tweaked to compensate for the game being 3d. So it will take a bit more learning to fully grasp the basic concepts required to make a script run. Don't expect to be able to make something that would absolutely wow players. My first game was an obby which I scripted killparts and moving objects into (the moving objects took me bloody ages to code).
I'm glad to see I'm not the only one learning how to script and I wish u well! For TH-camrs I'd recommend u watch to learn more I'd say smartyblox, thedevking and rodev. Keep working 🫡
𝑾𝒉𝒆𝒓𝒆 𝒄𝒂𝒏 𝑰 𝒂𝒄𝒄𝒆𝒔𝒔 𝒕𝒉𝒆 𝒓𝒐𝒃𝒍𝒐𝒙 𝒗𝒆𝒓𝒔𝒊𝒐𝒏?
@@japannumbeone5702no for that I suggest you look at thedevking bigginer and advanced series to try to make a small game this don’t cover robloxes luea
@@japannumbeone5702 probably
This is today probably the best tutorial, nice. I dont need it but I wish I had this video back when I learned.
The tutorials are back, after years it's finally back!!!
"Hello folks" is back 🔥🔥
Nice video Challacade :)
Love this! I had some experience with Java, but this is a great intro to Lua.
I love the effort you put into this! 🔥video man.
Didnt watch it yet but will do and wanted to thank you already for the video!
New subscriber! I found lua's loops complicated but you helped me again!
I didn't know LUA was a Brazilian language! This is nice!
As a Brazilian that's really cool. Unfortunately the language is not very popular, not even in Brazil.
Another fun fact is that the (very popular) Elixir was also created by a Brazilian
@@junior.santanaIt's imo the best scripting language.
Also Brazil mentioned
@@ficolas2 That's cool. What do you use it for?
@@junior.santana first time I used lua was a long time ago, with computer craft, a Minecraft mod.
After that, I used it to mod factorio.
I also embedded it into a game I was making, for modding support, and scenario control. So like, scheduled events, and such, level specific logic.
I now I just use it to customize nvim.
But over the years I have come to appreciate it's simplicity, and how easy it is to embed into something, while still being super lightweight.
Comparing it to python or javascript, that require much much heavier interpreters.
Like, if you need to allow for scripting in your application, or have some sort of scripting language in it, before rolling your own, that people wont know, may be finicky, wont have as many resources, etc, lua fits the role perfectly.
I allready know lua and have been coding for years, but im still hyped about this!
Just finished watching the video. Great tutorial for beginners and nice and easy to understand.
this is a very good tutorial, fast and easy to understand
Thx for this. I now understand for loops and what local actually means whenever I put it in my scripts 👍
thanks! i wrote 4 simple engines for addition, subtraction, multiplication, and division. without this video i could never!
now i have 10 years of experience in Lua, thanks man!
My first ever language is C++ so it boosted me on learning Lua Increadibly easy to learn not like C++ that takes too long to type a single project.
for your game i think a cool addition is I think a area where you have a place to rest almost like being able to buy a hut where you can use seeds to create a farm for extra cash they could also be used for a quest or eating them to heal potentially and make it so you can edit your house i love games where the focus is adventure and interesting but there's always a place where i can go to chill calm down and just gather without worrying about healing finding loot it's just a peaceful atmosphere also thank you for the tutorial
I know how to code in gdscript and thought that was simple but this! This is even more simple!
Ok... I am hyped for a Lua tutorial
thank you ive been looking for a lua coding demo for a long time.
I have a tiny bit of coding experience and want to learn a simple program and this is perfect. I love legend of Zelda and wants to try to make my own game of it.
Really helpful looking forward to moonshire
Thanks bro been wondering on how to start learning coding for fun
WAIT what you have 65k subs dude I thought you had like 2k this is insane congrats dude
just earned a like and a new subscriber, your the best!
Thanks, dude. 😁👍
Hi please make more teaching videos. This was great❤
hope i get to use what u teached. thanks!
This is a good tutorial frfr
Amazing video. Thanks!
Your work inspired me to try develop a basic game using Lua and Love! Thank you so much for this video!
Also, I know moonshire is coded using Lua, but do you also integrate C? As crazy as it sounds, Lua supports C code execution.
I want to use the combination between eficient memory usage from Lua and the speed from C to create a basic but well optimized pong game.
Im a programmer so this is so exciting for me. I love your content! Thank you so much!
I haven't found a need to use C with a love2D game. The framework handles all of that
Could you share what color palette are you using for legend of lua?
I'm about to go right now, but I'm replying so I can find this later so I can send it. 😊
Good video❤
21:00 and what if you have a variable called "i"? will it still work?
Super helpful thanks!
veery good video :)
And can you make a lua tutorial specifically for a game engine you make your game in
He has multiple love2D tutorials on his channel.
That looks like good old C for now (whit "smart" typing", whitout ; and have "strange" arrays)
I guess these are just the basics, I like this tutorial system for beginners
I like it
I recommend to you all learn Lua, that programming language will be the modding language for Hytale. Hytale could be the next Roblox, so is a good investment of time.
OMG i was just looking for a Lua tutorial in order to code with Love2D xDDDD Thanks!!
Your explanation of numeric for loops is wrong. That variable isn't an iterator. It's the value returned by the iterator. The for loop is pre-calculated as a range, then that range is iterated using a built-in version of the same process as the generic for loop. This matters because both because it allows changing the variable in the loop with effecting any other iterations and also because it means that the only way to stop the for loop early is an explicit break.
Also it would've been a good idea to mention how to specify keys when using a table constructor to make an already filled-in table. For example, there are cases, especially in game dev, where it's genuinely better to start from 0 for your indices (ie. making grid layout without wasting cycles and memory to do a multi-dimensional table structure).
I also would prefer if these types of beginner lua videos mentioned the fact that tables are created by the constructor and stored by reference (and perhaps not use phrases like "initialize the variable as an empty table" since that's literally not what's happening). I know it doesn't seem beginner-ish, but it's a pitfall that I've seen people fall into over and over again. Like, it's really important to understand that if you want to have functions that update game objects or similar constructs.
More Lua teaching videos plssss
Another nice please to learn Lua is someone called DevJeeper.
@@Bub.tv21 thanks!
does your game is coded in lua ?
Yes
Yes, his game is made with Lua and most importantly love.
@@Bub.tv21 I remember seeing that he was working on unity. Yet unity uses c#
@@mohamedelouaer9321 He doesn't use unity, he uses love2d.
@@mohamedelouaer9321his current game is in love2D
Do you have any tips on how to get game dev videos noticed?
12:27 Why is hi 1st on output if it's 2nd on code?
Bro can you make a tutorial that in love2d how can we jump our characters
Tables are almost identical to PHP
Could you share one with OOP in lua.
30:00 where i remained
What game engine are you using for your game?
Love2D
@@Challacade I want to make a game like this just for fun and I have no idea how to code or anything, do you think I should use love2d or godot?
thoughts this was a LOVE type video :( still nice vid tho
Are you going to make a new discord?
idk i guess lets learn lea (learned hello world...oh i now know lua)
👀
BRAZIL MENTIONED!!!! HUEHUEHUE BRBRBRBRB
I can't see any difference between lua and python, am I wrong?
Yeah, they're so much similar, but in my opinion Lua is an improved Python ❤
They're different. 1 as 1st index aside:
Lua is way less popular and less used.
Lua is way faster and simpler.
Lua is way smaller and compact. Etc.
Python uses spaces for scoping, Lua uses end keywords.
Tables are quite unique
The question is: Why learn Lua?
Is easy to implement to c++ programs
Love engine
Love framework, stormwork,Roblox, easy for teaching kids, easy to integrate into c++
it starts with L
To bild roblox
It feels like python
44th
Skibidi first
What a sigma
Hell nah gen alphas here
Oh I mean
Cbd dop dop yes yes cbd dbd dop yes
Ohio
Insane skibidi sigma bro IS the gyatt rizzler
Stop spamming
Forth
Stop spamming
first
Stop spamming
but I know how to code in Lua
Then why are you here?
i recommend learning gdscript instead because, its easier, and more efficient, and the godot engine right now is so powerful
Wrong, and wrong, and irrelevent
@@JG-nm9zk no lua is just not meant for gamedev not like gdscript
This isn’t a game dev tutorial though
gdscript is only used within Godot, sure lua isn't used that much (to my knowledge) but it's still general purpose which means it has a variety of use case's, it does a lot of stuff that gdscript can't do because gdsciprt wasn't designed to do the things that a general purpose language can do, and to my understanding this video is on the lua programming language right? where is game development even mentioned here? lua can be used for things outside of game development
@@Idkikdhdnbd you do know that balatro, the latest indie hit was made in lua rt?
I love lua but man do I hate that index starts at 1 and not 0
It takes some time getting used to. Personally I like it now!