[2021 Update!] Make Games with Love2D - Setup, Structure, and Development Basics

  Рет қаралды 120,293

Challacade

Challacade

Күн бұрын

Пікірлер
@DevineInnovations
@DevineInnovations 3 жыл бұрын
There should be more Love2d tutorials on KZbin. I love this program. (no pun intended)
@kaiser9321
@kaiser9321 3 жыл бұрын
It’s ok
@DevineInnovations
@DevineInnovations 3 жыл бұрын
@@kaiser9321 What do you prefer?
@kaiser9321
@kaiser9321 3 жыл бұрын
@@DevineInnovations I didn’t see this at the time, but I use unity with C#
@legiovictorum
@legiovictorum 3 жыл бұрын
I love löve
@samar2875
@samar2875 2 жыл бұрын
I wanted to do a Love2D project but the whole environment and libraries and functions were so unfamiliar and thus frightening to me so I looked for tutorials on KZbin and now after watching your video I feel so READY and CONFIDENT to start my Love2D journey! Thanks a lot for your awesome videos!!!!
@auxiliaryboxes
@auxiliaryboxes 2 жыл бұрын
Absolutely adore this game engine. It's simple, extremely flexible, and easy to pick up yet won't hold your hand on many tasks that other engines might. Plus, the love2d forums are still very active and you can always get the answer you need! This engine is ideal for anyone getting started with gamedev who also want to get their hands dirty with some of the more abstract programming problems you'll come across when making games. Love2d + Lua can do basically anything, but by extension, they won't do as much for you. Get into the weeds, read lots of documentation, and talk to other developers who are making libraries and modules to handle complex tasks.
@reinbew62
@reinbew62 11 ай бұрын
The wiki is pretty useful too.
@tsbohc
@tsbohc 3 жыл бұрын
As someone who's participated in a few gamejams, this is an awesome introduction to gamedev! The demo project is simple enough and very thoroughly expained. Great work!
@seth-blank
@seth-blank 2 жыл бұрын
Someone give this man a reward for giving us such a good tutorial.
@trevorsteinkruger6368
@trevorsteinkruger6368 11 ай бұрын
It was such a surprise to hear your voice in this random tutorial I looked up! I have been loving your game dev videos. Now I love your tutorials as well! Thanks.
@OmegaZero1082
@OmegaZero1082 6 ай бұрын
this is easier than any programming language i learned before how crazy, easy to learn, easy to understand
@immortalsun
@immortalsun 4 ай бұрын
Thanks for this video! I purchased your course and finished it earlier today. I’ve now made three basic games thanks to you, and I’m ready to make a _real_ game, with my blood, sweat, and tears. Thank you for the course! :)
@synthoelectro
@synthoelectro 3 жыл бұрын
Love takes me way back to the days of BASIC on Tandy Color Computer II.
@AlexPiotrowski
@AlexPiotrowski 3 жыл бұрын
Thank you for putting this tutorial up for free! i will continue to learn from you in udemy (even though i like udemy as a platform). You 100% deserve my support!
@FightWither
@FightWither Жыл бұрын
I've been trying to get into game dev for awhile and I tried Unity, GDevelop, Godot, GameMaker, and now Love. I think I'm gonna stick with love for now good tutorial
@jenesisdelacruzjdc
@jenesisdelacruzjdc 3 жыл бұрын
I came from the old Version Your voice is sooo crisp now lol Thank you so much for the wonderful tutorial!
@Challacade
@Challacade 3 жыл бұрын
It's amazing how much of a difference a better recording setup can make!
@randomsujal6516
@randomsujal6516 2 жыл бұрын
i dont usually comment on youtube videos but i couldnt help myself from commenting on this one !! such an amazing tutorial !! thank you so much
@Inuzika
@Inuzika 10 ай бұрын
the fact that Love lets you write programs in Lua language without actually needing Lua itself is pretty fascinating. Truly a marvel of technology if you ask me.
@4rumani
@4rumani 7 ай бұрын
Why is that fascinating?
@likekebab-qg3yr
@likekebab-qg3yr 4 ай бұрын
roblox also does that buddy
@why-m3g
@why-m3g 3 ай бұрын
@@likekebab-qg3yr frame works usually need for you need download the programming language. Roblox is more game engine than framework.
@adrishikharghosh9419
@adrishikharghosh9419 3 жыл бұрын
Thanks so much for this. Was stuck trying to install it but with VSCode for about an hour haha. You saved my life.
@JacksonHammond-s3r
@JacksonHammond-s3r 14 күн бұрын
Just a very, very well put together tutorial. Beautifully pace and explained. Thank you!
@kokosbrokenpencils5394
@kokosbrokenpencils5394 3 жыл бұрын
I love Lua with Love2D! 💕
@sourcream1671
@sourcream1671 Жыл бұрын
This is a really cool course! What I recommend to people following this is in between lectures you should mess around with the functions yourself and make sure you fully understand what's going on.
@GPEART1
@GPEART1 Жыл бұрын
Thanks for this, I am new to any type of programming, this was nice to complete, looking forward to doing all of the Udemy course, this was a great advertisement for it!
@blacktainfalcon7097
@blacktainfalcon7097 3 жыл бұрын
For everybody who's file saved as txt despite changing the file to main.lua- set the file's name to default (naming it "newfile" works) open the file in notepad Save As- Type in "main.lua" Change " Save As Type" to "All Files" Change "Encoding" to "Unicode" (or ANSI) It should finally save as LUA file now
@michaelduncan12
@michaelduncan12 2 жыл бұрын
Also he mentions you can enable viewing the file extension. Then that way, you can change the extension that appears.
@killertigergaming6762
@killertigergaming6762 2 жыл бұрын
And thats one of the many reasons why I don't use the cancer that is windows
@hi-ux2ur
@hi-ux2ur 3 ай бұрын
this guy needs a raise...
@palakprasad281
@palakprasad281 Жыл бұрын
easily explained and totally satisfied with the output..great sir
@unlxck3255
@unlxck3255 2 жыл бұрын
You are so unique. I wish more tutorials would be like your tutorials.
@smanzoli
@smanzoli 2 жыл бұрын
Free clue: When finding distances, never use square root, it´s slow, expensive to the cpu (of course in this example, no problem AT ALL, but sometimes you´ll be chacking hundreds, thousands... then you´d lose some fps. Simply do not calculate it... and compare to de radius squared instead. multiplication is much much faster than sqrt.
@pyrytheburger3869
@pyrytheburger3869 2 жыл бұрын
how to do it? im dumb
@prcs420
@prcs420 2 жыл бұрын
hi! i did what you suggested, and it worked! i was just wondering if you would mind briefly explaining the maths behind it? i know you made this comment a while ago, so i am not sure if you will see this or if you will reply if you do, but... i thought for sure that the score would increase even if you clicked outside of the circle because the radius and distance calculated were both squared. but they didn't! if you see this and would like to explain, i would really appreciate it 😊
@not_herobrine3752
@not_herobrine3752 4 ай бұрын
@@prcs420 if you are checking whether a point is inside a circle, you dont have to compare whether d is less than the radius when you could (cheaply) compare whether d squared is less than the radius squared, as the expressions d = sqrt((x2-x1)^2 + (y2-y1)^2) is equivalent to d^2 = (x2-x1)^2 + (y2-y1)^2
@ChristopherCro
@ChristopherCro 2 жыл бұрын
I know lua from roblox(studio, roblox is my childhood game). And I still wrok in Roblox but I wanted to go outside. I am learning python but I already know lua. So I finnaly found A GREAT PERSON TO TEACH ME HOW TO USE LUA OUTSIDE ROBLOX. Thank you.
@Immow
@Immow 3 жыл бұрын
Awesome video, one small tip, you did mention at the start of your video that you have tutorials about tables. Later in the video when you get to the target table, I would mention it again that you have information about that on your website! Keep up the good work :)
@Challacade
@Challacade 3 жыл бұрын
That's a good idea; thanks for the feedback!
@maca2237
@maca2237 3 жыл бұрын
What a great tuturial,and it's also ez to convert this into mobile.I wish there was more tuturials about Love2d like this one,bcs I am going to need Love2d for a gamejam.
@Zj3b69
@Zj3b69 Жыл бұрын
i have noticed that you didnt add timer to it so using knowledge i got from your video i did it so you need to put code 1 below into function love.draw() Code 1: love.graphics.setColor(1, 1, 1) love.graphics.setFont(gameFont) love.graphics.print(timer, 90, 0) then you need to put Code 2 into function love.update(data) Code 2: timer = timer + 1 Fun Fact: it might be a bit too fast lol
@dotdashYTP
@dotdashYTP 2 жыл бұрын
Thanks for the edit extension part, it was such a hassle creating ".love" files before
@platoriamS
@platoriamS 3 жыл бұрын
Great tutorial! I wish Love and Lua were more popular, it looks like it has a lot of potential.
@GVN.13
@GVN.13 2 жыл бұрын
Lua is popular, its legit what developers use for coding in Roblox.
@realmanbenfake999
@realmanbenfake999 2 жыл бұрын
@@GVN.13 roblox uses a modified version called luau, not lua
@GVN.13
@GVN.13 2 жыл бұрын
@@realmanbenfake999 o lol
@immortalsun
@immortalsun 4 ай бұрын
Balatro was made in LÖVE.
@retsapb6319
@retsapb6319 3 жыл бұрын
Best tutorial on Love2D around, great pacing
@Challacade
@Challacade 3 жыл бұрын
Thank you!!
@dabunnisher29
@dabunnisher29 7 күн бұрын
As always, this was well done. Thank you!
@tbeanz
@tbeanz 3 жыл бұрын
Thank you for this video Kyle, it was a great intro to Love2D!
@rogerwinright2290
@rogerwinright2290 3 жыл бұрын
I LOVE (all puns intended) your content! Your Monogame course on Udemy was fantastic as well. By chance, could you do a tutorial on Tiny ECS and LOVE2D sometime? This framework + that library seems like an awesome starting point on the "new industry standard" using ECS to build games!
@kryptermusic
@kryptermusic 3 жыл бұрын
thank you so much for showing me about love2d and VSCode
@RedMoon814
@RedMoon814 Жыл бұрын
Great tutorial and game dev introduction! Helped me a lot :)
@freedom_aint_free
@freedom_aint_free 3 жыл бұрын
At leas on this very basic example, it does look simpler then PyGame, specially the mouse handling is cleaner in my view, I'm going to keep watching and trying more tutorials to get an idea, maybe I'll even switch from Python's PyGame to Lua's Love.
@sometimespin7648
@sometimespin7648 3 жыл бұрын
love your tutorial. very detail and clear explanation. keep up the work, we want more from you. thanks
@S0up__
@S0up__ 2 жыл бұрын
I am thankful for this tutorial as it helps out alot with a game im working on, and once again Thank you.
@StockholmTrainspotter
@StockholmTrainspotter Жыл бұрын
Amazing explanation, i learned alot. And you made me intressted in what you were saying! thanks.
@MyNextComplaint
@MyNextComplaint 9 ай бұрын
am hav doubt what is 'The "path" argument must be of type string. Received undefined'
@jackhcsa4623
@jackhcsa4623 7 ай бұрын
It means that somewhere in your program (the error message should tell you in which line this is happening) a function you're calling probably loads or interacts in some way with another file and so it needs the path to it as a string. eg: love.graphics.newImage("../path/to/your/image") notice the "" those are what makes it a string. Hope this helps! maybe, I know it's a month old comment but still
@BekBrace
@BekBrace 3 жыл бұрын
Thank you Kyle for your effort ! Great course, indeed
@Maxsmorio
@Maxsmorio 8 ай бұрын
this is the greatest programming video on youtube
@apurvhenkare1038
@apurvhenkare1038 3 жыл бұрын
Amazing video , your tutorial has helped me to build a game of my own👍👍
@PetrPustota-q5r
@PetrPustota-q5r 10 ай бұрын
for macOS you should use Command+L
@RolexDouble007
@RolexDouble007 3 ай бұрын
I was looking online everywhere for the solution to Alt+L. Thank you!!
@scraped_2454
@scraped_2454 3 жыл бұрын
First thing i learn is Osu, Holy the vibes are real.
@ivoplaninic9356
@ivoplaninic9356 3 жыл бұрын
This is just like pygame, love it just like my dear python
@Riodragon1
@Riodragon1 3 жыл бұрын
love2d vs godot vs other engines , you could do a video about that? , it would be cool
@varshinibomma5311
@varshinibomma5311 3 жыл бұрын
Love this tutorial!! thank you so much!
@fryt2744
@fryt2744 Жыл бұрын
41:51 bro used Pythagoras's theoreme formula in simple game. Math is based.
@fitelio5315
@fitelio5315 2 ай бұрын
Thank you, you've helped me so much.
@abhishekjayesh3517
@abhishekjayesh3517 3 жыл бұрын
Good work bud. Was really helpful! thanks
@omegafala720
@omegafala720 2 жыл бұрын
Error when i try to open
@JimmyButBetter
@JimmyButBetter 2 жыл бұрын
Ive done stuff like said in the video before 16:57 and nothing happens, just a black screen edit: i forgot to save, holy shit im dumb
@ThatUltra
@ThatUltra 3 жыл бұрын
Thank You For The Love2d Tutorial :D
@user99i
@user99i Жыл бұрын
Now make someone knowing nothing about programming or game development listen to this without context 💀 Jokes aside this is a great tutorial
@rohan751
@rohan751 3 жыл бұрын
This was a superb tutorial 10/10.
@rohan751
@rohan751 3 жыл бұрын
Bought your course ✌
@senex5955
@senex5955 2 жыл бұрын
how do I setup the pathway for the love app if I'm on Mac? It keeps telling me the app can't be verified so it can't be opened.
@shrikrishna_exe
@shrikrishna_exe 2 жыл бұрын
Bro you are amazing 🙏🏽🙏🏽🙏🏽🤝🏼👌🏼👌🏼
@chaos2232
@chaos2232 5 ай бұрын
OMG I LOVE YOU THANK YOU SO MUCH
@GeorginaAdjaye-Aggrey
@GeorginaAdjaye-Aggrey Жыл бұрын
my text document didn't change to a lua file. am i doing something wrong?
@sethjackson2010
@sethjackson2010 10 ай бұрын
for some reason my rectangle turned to a square.. couldn't get it to change back.
@MegaVeryoldman
@MegaVeryoldman 2 жыл бұрын
thnx a lot, its realy intresting type of programming ! more some tutorial !
@Foxtro
@Foxtro 3 жыл бұрын
"mom can we have osu at home?" "we already have osu at home, wdym?" osu at home : btw it was a really goood tutorial about love, i love it!
@readmore8974
@readmore8974 6 ай бұрын
How did you get the parameter hints working for VSCode?
@itsmelvintime
@itsmelvintime 2 жыл бұрын
bruhh my circle target stops every time i click i have to reset the engine what do i do
@stardustbiscuits
@stardustbiscuits 3 жыл бұрын
After i made my folder, i am not able to add a text file. It is a magic text document instead. Please help me.
@mouldycheesebutlikeinabadw3011
@mouldycheesebutlikeinabadw3011 3 жыл бұрын
it shouldn't matter, since you're making it a main.lua file anyway
@sanjithwalker6041
@sanjithwalker6041 Жыл бұрын
I'm facing issue it's only show blank screen anyone know how to fix this issue
@TechBoxNorth
@TechBoxNorth 3 жыл бұрын
final part of the tutorial doesn't work, the target still goes out of bounds. edit: erased the code and typed it in exactly the same again and now it works. Super strange!
@k98killer
@k98killer Жыл бұрын
Would you say that this style is idiomatic for Lua libraries? I'm used to Python, Go, C#, JS, etc and pretty new to Lua. The way I have written libraries in other languages is typically to accept callbacks to library functions rather than dynamically set/monkey patch the library functions themselves. Is there some performance benefit to using monkey patching instead of passing in a callback?
@immortalsun
@immortalsun 4 ай бұрын
Thank you! I love you.
@ggjcggg
@ggjcggg 2 жыл бұрын
you are the best
@Dreaming-Void
@Dreaming-Void 7 ай бұрын
How does one add little notes in your code without it running? On rublox you can type in ## and then you’re message..I think.. I dunno, it’s been a while since I did silly coding .u. Turns out you need to type “- -“ and BOOM :D (don’t put a space like I did thought ,u,)
@Splashpaff
@Splashpaff 2 жыл бұрын
Lol i was watching your tiktok and think : thats will be cool if he had a youtube channel and made tuto i searched on google : how to make 2D game with love2d and i found your channel in first
@Stevesteacher
@Stevesteacher 3 жыл бұрын
Wow, thank you so much!
@redcater3918
@redcater3918 2 жыл бұрын
It won't open the file in Love2D when I click run or when I drag the file over love.exe. Any solutions?
@juniornicolodi
@juniornicolodi 2 жыл бұрын
awesome content, saved me!
@abhijaynagal-pianomusic
@abhijaynagal-pianomusic 3 жыл бұрын
I'm not able to run,,, at 13.59 please help
@NAMEHUKUI
@NAMEHUKUI 3 ай бұрын
Thanks that helped so much
@Kishan8_8
@Kishan8_8 3 жыл бұрын
Thank you sir Very usefull tutorial.... ❤❤❤❤❤❤❤❤❤❤❤❤❤👍
@Zrarlq
@Zrarlq 2 жыл бұрын
Thanks for creating this but there is just one problem I didn't know the link comes with a discount so I wasted it
@null_ify
@null_ify 2 жыл бұрын
for some reason, it only moves once when I click it.
@rigelstarz6032
@rigelstarz6032 3 ай бұрын
how do i do serialization? you are the only love 2d youtuber i know past 2018
@applebeestacos4840
@applebeestacos4840 3 жыл бұрын
Is love2d only for small projects, can it do medium size projects?
@Challacade
@Challacade 3 жыл бұрын
As long as the game is 2D, it can handle larger projects, absolutely.
@zhinew_mc1054
@zhinew_mc1054 2 жыл бұрын
how great the framework is!it makes a big difference to such me a noob(by the way,are there any Chinese programmer?)
@darealcorygamer
@darealcorygamer Жыл бұрын
Could you convert the game to it's own exe or
@thehatman_official
@thehatman_official Ай бұрын
is it normal for it to get detected as a virus?
@Jdeadevil
@Jdeadevil 3 жыл бұрын
That notation in the DistanceBetween section put me off, I've been struggling to understand this for two days now and I don't get it. I suddenly feel like I need advanced maths to understand Love2D.
@jacobman8720
@jacobman8720 3 жыл бұрын
thanks man really helped
@neito7103
@neito7103 2 жыл бұрын
How do you use dll libraries in LOVE2D
@wiskasIO
@wiskasIO 2 жыл бұрын
It's feel weird not using semicolons and curly braces... GREAT video btw!!!
@lidarman2
@lidarman2 2 жыл бұрын
Can someone help me understanding functions? I see functions that are defined such as love.draw() that seem to just execute automatically but then there is the function, for example, distanceBetween(x1,y1, x2, y2) that is defined and called to return a value like I would expect. So are all functions always executed in lua and it's whether it influences the state is what matters? If I never use distanceBetween(...) does it still execute? And how come the function love.load() seems to execute only once where love.update() executes at the frame rate? What determines this?
@prsncwakoti6852
@prsncwakoti6852 Жыл бұрын
Here after 6 months but The functions that contains love are built-in functions that you can directly use, however you can make your own function to do something or return something.
@naddantdmgaming4107
@naddantdmgaming4107 2 жыл бұрын
tip: if it dosnt work in the brackets on load put dt
@caulong5274
@caulong5274 3 жыл бұрын
So when I see this particular part 13:36, I see that u use the "method" .graphics, my question is how do u know what does each method do, or is this just an experienced programmer thing? P/S: Nice video, loving all the hard work u put into this
@Challacade
@Challacade 3 жыл бұрын
This is a good question, and really the answer just comes down to experience with the framework. As a newcomer, you would ask "how can I draw text to the screen in Love2D?", and if you Google that exact question, you'd eventually end up at the documentation for love.graphics.print: love2d.org/wiki/love.graphics.print
@caulong5274
@caulong5274 3 жыл бұрын
@@Challacade Dang, I never thought people would reply me this fast, thank you so much man!!
@landothemaker4340
@landothemaker4340 3 жыл бұрын
You just got a new subscriber :)
@Challacade
@Challacade 3 жыл бұрын
Thank you!
@eboatwright_
@eboatwright_ 3 жыл бұрын
could you make a more advanced tutorial? :D
@That1Dummy
@That1Dummy Жыл бұрын
48:14 when i click it shows "Error main.lua:29: attempt to compare nil with number Traceback [love "callbacks.lua"]:228: in function 'handler' main.lua:29: in function [love "callbacks.lua"]:154: in function [C]: in function 'xpcall'"
@HenriqueAndrade
@HenriqueAndrade Жыл бұрын
Eu amei esse tutorial! Parabéns!
@wohao_gaster7434
@wohao_gaster7434 3 жыл бұрын
6:22 So if it gets code it becomes JEVIL(jeez vil)
@bojiun1377
@bojiun1377 3 жыл бұрын
Im using Macbook, I dont have ALT on my keyboard. I tried option, command, and control + L, but didnt work. Any suggestion?
@Challacade
@Challacade 3 жыл бұрын
On my Mac, it automatically set the shortcut to be Command + L. If you go to the Extensions section in VS Code, and then click on Love2D support, there's a tab called "Feature Contributions" which shows the different commands associated with Love2D Support. The shortcut for pixelbyte.love2d.run is what you're looking for. Keep in mind that the shortcut only works when you have a game folder open in VS Code; if you don't have a proper project open, it won't work
Making a Game in Lua with No Experience
5:52
Goodgis
Рет қаралды 363 М.
How to (easily) add Animations to a Character | Love2D Basics
14:58
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
The game of the year was written in Lua
5:32
Tom Delalande
Рет қаралды 229 М.
Easily create levels/maps for Love2D games (with Tiled)
7:56
Challacade
Рет қаралды 77 М.
2024's Biggest Indie Hit Was Made With... Love!   LÖVE 2D that is.
9:50
Falling in LÖVE with Lua
1:12:27
CS50
Рет қаралды 73 М.
The Ultimate Tier Programming Tier List | Prime Reacts
26:57
ThePrimeTime
Рет қаралды 510 М.
Fixing my Enemy AI in 5 minutes! | Devlog
5:01
Challacade
Рет қаралды 44 М.
choosing a game engine is easy, actually
15:08
samyam
Рет қаралды 632 М.
How to Make a Roguelike Card Game on Godot
2:10:19
DeveloperEzra
Рет қаралды 83 М.
Make games quickly with LÖVE
1:12:58
Hackers at Cambridge
Рет қаралды 45 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН