Learn to code with Lua!

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024

ความคิดเห็น • 140

  • @beneilton1000
    @beneilton1000 หลายเดือนก่อน +32

    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!

    • @mattyebungas
      @mattyebungas หลายเดือนก่อน +3

      Lua é brasileira?!?!?!

    • @falciexd
      @falciexd หลายเดือนก่อน +1

      @@mattyebungas sim, foi criado por cariocas na PUC do Rio de Janeiro

    • @PedroHenrique-pu9fp
      @PedroHenrique-pu9fp 6 วันที่ผ่านมา

      Agora tudo faz sentido

  • @laptoprelaks
    @laptoprelaks 3 หลายเดือนก่อน +33

    already coding small games with lua but supporting you with by watching to the end

  • @DanutJMK
    @DanutJMK 2 หลายเดือนก่อน +8

    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!

    • @japannumbeone5702
      @japannumbeone5702 หลายเดือนก่อน +2

      Hey is this tutorial enough to start making some smaller games on roblox (For learning while making them ofc not full on projects)?

    • @splashion
      @splashion หลายเดือนก่อน

      ⁠@@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 🫡

    • @Unit-M.TheTherian
      @Unit-M.TheTherian หลายเดือนก่อน

      𝑾𝒉𝒆𝒓𝒆 𝒄𝒂𝒏 𝑰 𝒂𝒄𝒄𝒆𝒔𝒔 𝒕𝒉𝒆 𝒓𝒐𝒃𝒍𝒐𝒙 𝒗𝒆𝒓𝒔𝒊𝒐𝒏?

    • @Hayuahelddd
      @Hayuahelddd 26 วันที่ผ่านมา

      ⁠@@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

    • @gooseman2119
      @gooseman2119 18 วันที่ผ่านมา

      ​@@japannumbeone5702 probably

  • @shrekeyes2410
    @shrekeyes2410 3 หลายเดือนก่อน +11

    This is today probably the best tutorial, nice. I dont need it but I wish I had this video back when I learned.

  • @Bub.tv21
    @Bub.tv21 3 หลายเดือนก่อน +8

    The tutorials are back, after years it's finally back!!!

  • @smallbag123
    @smallbag123 3 หลายเดือนก่อน +16

    "Hello folks" is back 🔥🔥
    Nice video Challacade :)

  • @frodotherodeo
    @frodotherodeo 3 หลายเดือนก่อน +5

    Love this! I had some experience with Java, but this is a great intro to Lua.

  • @K1ngH3r0
    @K1ngH3r0 3 หลายเดือนก่อน +7

    I love the effort you put into this! 🔥video man.

  • @papapixxel7860
    @papapixxel7860 3 หลายเดือนก่อน +8

    Didnt watch it yet but will do and wanted to thank you already for the video!

  • @leocroak-toad
    @leocroak-toad 2 หลายเดือนก่อน +3

    New subscriber! I found lua's loops complicated but you helped me again!

  • @fiddleling
    @fiddleling 3 หลายเดือนก่อน +7

    I didn't know LUA was a Brazilian language! This is nice!

    • @junior.santana
      @junior.santana 3 หลายเดือนก่อน +2

      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

    • @ficolas2
      @ficolas2 3 หลายเดือนก่อน

      ​@@junior.santanaIt's imo the best scripting language.
      Also Brazil mentioned

    • @junior.santana
      @junior.santana 3 หลายเดือนก่อน

      @@ficolas2 That's cool. What do you use it for?

    • @ficolas2
      @ficolas2 3 หลายเดือนก่อน +2

      @@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.

  • @vortexstudios_echo
    @vortexstudios_echo 3 หลายเดือนก่อน +1

    I allready know lua and have been coding for years, but im still hyped about this!

  • @WaddleDeeDooby
    @WaddleDeeDooby 3 หลายเดือนก่อน +2

    Just finished watching the video. Great tutorial for beginners and nice and easy to understand.

  • @memesalldayjack3267
    @memesalldayjack3267 3 หลายเดือนก่อน +2

    this is a very good tutorial, fast and easy to understand

  • @splashion
    @splashion หลายเดือนก่อน

    Thx for this. I now understand for loops and what local actually means whenever I put it in my scripts 👍

  • @WindowsXP2600
    @WindowsXP2600 หลายเดือนก่อน

    thanks! i wrote 4 simple engines for addition, subtraction, multiplication, and division. without this video i could never!

  • @jackal_sniperr
    @jackal_sniperr หลายเดือนก่อน

    now i have 10 years of experience in Lua, thanks man!

  • @blue15244
    @blue15244 3 หลายเดือนก่อน

    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.

  • @steadfastdjj2674
    @steadfastdjj2674 2 หลายเดือนก่อน

    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

  • @Brycedoezstuf
    @Brycedoezstuf 23 วันที่ผ่านมา

    I know how to code in gdscript and thought that was simple but this! This is even more simple!

  • @gabrielfelipe820
    @gabrielfelipe820 3 หลายเดือนก่อน +1

    Ok... I am hyped for a Lua tutorial

  • @minimum_minecraft
    @minimum_minecraft 3 หลายเดือนก่อน

    thank you ive been looking for a lua coding demo for a long time.

  • @V0RTEX_gamezz
    @V0RTEX_gamezz 2 หลายเดือนก่อน

    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.

  • @frowner-u1z
    @frowner-u1z หลายเดือนก่อน

    Really helpful looking forward to moonshire

  • @Betterthanyou26
    @Betterthanyou26 3 หลายเดือนก่อน

    Thanks bro been wondering on how to start learning coding for fun

  • @kittygamimg5221
    @kittygamimg5221 2 หลายเดือนก่อน

    WAIT what you have 65k subs dude I thought you had like 2k this is insane congrats dude

  • @AngelReyna-wd5kg
    @AngelReyna-wd5kg 2 หลายเดือนก่อน

    just earned a like and a new subscriber, your the best!

  • @Azzavhar
    @Azzavhar 3 หลายเดือนก่อน

    Thanks, dude. 😁👍

  • @Maven-vc6ws
    @Maven-vc6ws 2 หลายเดือนก่อน

    Hi please make more teaching videos. This was great❤

  • @flippedonblues
    @flippedonblues หลายเดือนก่อน

    hope i get to use what u teached. thanks!

  • @Nick_4c
    @Nick_4c 3 หลายเดือนก่อน +1

    This is a good tutorial frfr

  • @marbles7649
    @marbles7649 3 หลายเดือนก่อน

    Amazing video. Thanks!

  • @alejandroubeto2287
    @alejandroubeto2287 3 หลายเดือนก่อน

    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!

    • @Challacade
      @Challacade  3 หลายเดือนก่อน +1

      I haven't found a need to use C with a love2D game. The framework handles all of that

  • @jacopomastinu1241
    @jacopomastinu1241 2 หลายเดือนก่อน +1

    Could you share what color palette are you using for legend of lua?

    • @Bub.tv21
      @Bub.tv21 2 หลายเดือนก่อน

      I'm about to go right now, but I'm replying so I can find this later so I can send it. 😊

  • @KrisPops64
    @KrisPops64 3 หลายเดือนก่อน +2

    Good video❤

  • @TheLTak3r
    @TheLTak3r 16 วันที่ผ่านมา

    21:00 and what if you have a variable called "i"? will it still work?

  • @DrNabeel20
    @DrNabeel20 3 หลายเดือนก่อน

    Super helpful thanks!

  • @burgeriguess
    @burgeriguess 28 วันที่ผ่านมา

    veery good video :)

  • @dimascpraut.
    @dimascpraut. 3 หลายเดือนก่อน +1

    And can you make a lua tutorial specifically for a game engine you make your game in

    • @gavinfriel2308
      @gavinfriel2308 3 หลายเดือนก่อน +2

      He has multiple love2D tutorials on his channel.

  • @Paweu240
    @Paweu240 2 หลายเดือนก่อน

    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

  • @meida_oficial
    @meida_oficial 3 หลายเดือนก่อน +1

    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.

  • @twosteps-paoloprazzoli
    @twosteps-paoloprazzoli 3 หลายเดือนก่อน

    OMG i was just looking for a Lua tutorial in order to code with Love2D xDDDD Thanks!!

  • @biggerdoofus
    @biggerdoofus 4 วันที่ผ่านมา

    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.

  • @dariomartin8032
    @dariomartin8032 3 หลายเดือนก่อน +1

    More Lua teaching videos plssss

    • @Bub.tv21
      @Bub.tv21 3 หลายเดือนก่อน

      Another nice please to learn Lua is someone called DevJeeper.

    • @dariomartin8032
      @dariomartin8032 3 หลายเดือนก่อน

      @@Bub.tv21 thanks!

  • @mohamedelouaer9321
    @mohamedelouaer9321 3 หลายเดือนก่อน +16

    does your game is coded in lua ?

    • @ItsEssamCraft
      @ItsEssamCraft 3 หลายเดือนก่อน +3

      Yes

    • @Bub.tv21
      @Bub.tv21 3 หลายเดือนก่อน +10

      Yes, his game is made with Lua and most importantly love.

    • @mohamedelouaer9321
      @mohamedelouaer9321 3 หลายเดือนก่อน

      @@Bub.tv21 I remember seeing that he was working on unity. Yet unity uses c#

    • @Bub.tv21
      @Bub.tv21 3 หลายเดือนก่อน +4

      @@mohamedelouaer9321 He doesn't use unity, he uses love2d.

    • @felixabbott126
      @felixabbott126 3 หลายเดือนก่อน

      @@mohamedelouaer9321his current game is in love2D

  • @GlitchTrap12345
    @GlitchTrap12345 2 หลายเดือนก่อน

    Do you have any tips on how to get game dev videos noticed?

  • @steveelpro
    @steveelpro 2 หลายเดือนก่อน

    12:27 Why is hi 1st on output if it's 2nd on code?

  • @KhalilurRahman-x5b
    @KhalilurRahman-x5b 2 หลายเดือนก่อน

    Bro can you make a tutorial that in love2d how can we jump our characters

  • @Freddy78909
    @Freddy78909 หลายเดือนก่อน

    Tables are almost identical to PHP

  • @cristianinujazznight3044
    @cristianinujazznight3044 3 หลายเดือนก่อน

    Could you share one with OOP in lua.

  • @TheLTak3r
    @TheLTak3r 16 วันที่ผ่านมา

    30:00 where i remained

  • @maxzimmer4338
    @maxzimmer4338 2 หลายเดือนก่อน

    What game engine are you using for your game?

    • @Challacade
      @Challacade  2 หลายเดือนก่อน +3

      Love2D

    • @maxzimmer4338
      @maxzimmer4338 2 หลายเดือนก่อน

      @@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?

  • @mano4952
    @mano4952 2 หลายเดือนก่อน

    thoughts this was a LOVE type video :( still nice vid tho

  • @anthonydrakefordshadow
    @anthonydrakefordshadow 3 หลายเดือนก่อน

    Are you going to make a new discord?

  • @eyzake
    @eyzake 3 หลายเดือนก่อน

    idk i guess lets learn lea (learned hello world...oh i now know lua)

  • @Red0re
    @Red0re 3 หลายเดือนก่อน +1

    👀

  • @MrVinicius5000
    @MrVinicius5000 3 หลายเดือนก่อน

    BRAZIL MENTIONED!!!! HUEHUEHUE BRBRBRBRB

  • @creepad667
    @creepad667 3 หลายเดือนก่อน +2

    I can't see any difference between lua and python, am I wrong?

    • @umcanalsemvidanoyoutube8840
      @umcanalsemvidanoyoutube8840 3 หลายเดือนก่อน

      Yeah, they're so much similar, but in my opinion Lua is an improved Python ❤

    • @ultimaxkom8728
      @ultimaxkom8728 3 หลายเดือนก่อน +1

      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.

    • @Germisstucklmao
      @Germisstucklmao 3 หลายเดือนก่อน

      Python uses spaces for scoping, Lua uses end keywords.

    • @Caracuan12
      @Caracuan12 3 หลายเดือนก่อน

      Tables are quite unique

  • @mestretoto
    @mestretoto 3 หลายเดือนก่อน +50

    The question is: Why learn Lua?

    • @hg777br
      @hg777br 3 หลายเดือนก่อน +13

      Is easy to implement to c++ programs

    • @jamesrgamesoffical
      @jamesrgamesoffical 3 หลายเดือนก่อน +11

      Love engine

    • @vortexstudios_echo
      @vortexstudios_echo 3 หลายเดือนก่อน +10

      Love framework, stormwork,Roblox, easy for teaching kids, easy to integrate into c++

    • @idklxzeprobably
      @idklxzeprobably 2 หลายเดือนก่อน +1

      it starts with L

    • @OfficialNathplayz
      @OfficialNathplayz 2 หลายเดือนก่อน +1

      To bild roblox

  • @_kalabasaa
    @_kalabasaa 2 หลายเดือนก่อน +1

    It feels like python

  • @fethier4601
    @fethier4601 3 หลายเดือนก่อน

    44th

  • @hashemheydari4748
    @hashemheydari4748 3 หลายเดือนก่อน +4

    Skibidi first

    • @Liven2D
      @Liven2D 3 หลายเดือนก่อน +1

      What a sigma

    • @pawan4920
      @pawan4920 3 หลายเดือนก่อน

      Hell nah gen alphas here
      Oh I mean
      Cbd dop dop yes yes cbd dbd dop yes

    • @Glitchiiiiiiiiiiiiiiiiii
      @Glitchiiiiiiiiiiiiiiiiii 3 หลายเดือนก่อน

      Ohio

    • @kahojin
      @kahojin 3 หลายเดือนก่อน +1

      Insane skibidi sigma bro IS the gyatt rizzler

    • @Bub.tv21
      @Bub.tv21 3 หลายเดือนก่อน

      Stop spamming

  • @Dany-rx7rs
    @Dany-rx7rs 3 หลายเดือนก่อน

    Forth

    • @Bub.tv21
      @Bub.tv21 3 หลายเดือนก่อน

      Stop spamming

  • @honscode
    @honscode 3 หลายเดือนก่อน

    first

    • @Bub.tv21
      @Bub.tv21 3 หลายเดือนก่อน

      Stop spamming

  • @Icee-rs3pt
    @Icee-rs3pt 3 หลายเดือนก่อน +1

    but I know how to code in Lua

    • @Bub.tv21
      @Bub.tv21 3 หลายเดือนก่อน +1

      Then why are you here?

  • @Idkikdhdnbd
    @Idkikdhdnbd 3 หลายเดือนก่อน +1

    i recommend learning gdscript instead because, its easier, and more efficient, and the godot engine right now is so powerful

    • @JG-nm9zk
      @JG-nm9zk 3 หลายเดือนก่อน

      Wrong, and wrong, and irrelevent

    • @Idkikdhdnbd
      @Idkikdhdnbd 3 หลายเดือนก่อน

      @@JG-nm9zk no lua is just not meant for gamedev not like gdscript

    • @gavinfriel2308
      @gavinfriel2308 3 หลายเดือนก่อน

      This isn’t a game dev tutorial though

    • @DigitalCanineGames_
      @DigitalCanineGames_ 3 หลายเดือนก่อน +1

      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

    • @DigitalCanineGames_
      @DigitalCanineGames_ 3 หลายเดือนก่อน

      @@Idkikdhdnbd you do know that balatro, the latest indie hit was made in lua rt?

  • @propov1802
    @propov1802 3 หลายเดือนก่อน +1

    I love lua but man do I hate that index starts at 1 and not 0

    • @Challacade
      @Challacade  3 หลายเดือนก่อน +1

      It takes some time getting used to. Personally I like it now!