Hey folks, there's an updated 2021 version that you should check out! kzbin.info/www/bejne/raXXfHuCbpV0pM0
@subject5464 жыл бұрын
installing: 0:50 programming enviroinment 1:20 project structure 4:55 button clicker overview 9:33 load, update and draw 10:16 drawing shapes 15:05 colors and overlapping graphics 23:35 button table and global variables 28:30 clicking the button pt. 1 31:39 clicking the button pt. 2 38:10 randomness 49:15
@moonman20516 жыл бұрын
Such a quality tutorial with only 100 views
@moonman20515 жыл бұрын
@@kingofeurobeat9332 Not great, I'm too lazy to do anything :x
@gameofcharging5 жыл бұрын
now with 17,9xx views because it too good.
@charmilla50984 жыл бұрын
@@gameofcharging 21500
@themuffinmanofficial4 жыл бұрын
@@charmilla5098 *ACTUALLY,*
@akunbuatdownload69313 жыл бұрын
now 62k+ viewers 🤣
@jeremytitus65754 жыл бұрын
This was clearly one of the best-narrated tutorials that I have ever seen. So much clarity with the content. It really makes me wanna learn more. Thanks mate! Lemme see if I can afford the full course on udemy.
@_mickmccarthy6 жыл бұрын
Hey Kyle, took your Udemy course about a year ago when I first got into LÖVE. It was a great intro to the framework that I can happily recommend to anyone interested in LÖVE! Thanks again!
@jjcutter1233 жыл бұрын
never get bored of listening to your tutorial. And it is very good
@its_stel3 жыл бұрын
for people who want to make a timer but are having a hard time simply add this to your update function and you will have a variable that counts the seconds EDIT: the delta variable (delta = 0) is created in the load function delta = delta + 1 if delta % 59 == 1 then seconds = seconds + 1 end
@Skiddydebop6 ай бұрын
Saw Moon Shire on YT shorts and fell in love. Finished this video and instantly bought the course. My days of being an “expert” at RPG Maker are over!
@haushinkax46435 жыл бұрын
Ah thanks for uploading this! Out of all tutorials i watched this one was definitely the best one! Deserves more views!!
@darsh86954 жыл бұрын
Thank you, I tried getting love and lua to work with VS code on my mac way too difficult spend 3 hours trying to find a solution. You fixed my issue within the first 5 minutes of the video much obliged.
@dnldttmr4 жыл бұрын
Great tutorial. Took this as a basic start for lua and Love! However im a programmer myself and found this really easy to get hands on.
@mixchief6 жыл бұрын
Absolutely awesome way of teaching, Kyle. Perfectly paced and super grok-able. Thanks a bundle for putting this out here. Wish you a great new year!
@mxdyofficial4 жыл бұрын
U explain So cleary I'm ur fan
@youngmullah67955 жыл бұрын
yo what the frick this was actually so helpful god bless you for making this
@austin163775 жыл бұрын
To generate truly random numbers, you can insert math.randomseed(os.clock()) before inserting button.x = math.random(0 + button.size, love.graphics.getWidth() - button.size) button.y = math.random(0 + button.size, love.graphics.getHeight() - button.size)
@planetiidaze76575 жыл бұрын
How do you only have 10 subs??? this is the most helpful tutorial Ive seen on lua.
@diverseprogrammer185 жыл бұрын
So easy! Thanks for demonstrating this to us.
@arkadas36944 жыл бұрын
This was really helpful and easy to understand 👍
@ozonesama4 жыл бұрын
🎶🎵🎮 "Understand, understand! Understand, understand! The concept... the concept of Löve!" (sorry, I couldn't resist, I love Jet Set Radio's soundtrack.)
@ozonesama4 жыл бұрын
I really agree! I am tempted to learn more about it and Lua, then try to code for the Raspberry Pi's implementation of Löve 2D.
@guts65545 жыл бұрын
Very professional, u deserve more subs.
@hormuzj4 жыл бұрын
You saved my life man, thank you.
@dashl50694 жыл бұрын
something to note is that if you are going to use math.random() you should seed it with os.time(), however, love.math.random() is seeded in the default run method so you can use that also
@madb50125 жыл бұрын
i continued on it and made it like cookie clicker where you buy upgrades to get more points
@Anniecao04304 жыл бұрын
I’m trying to figure that out right now, do you mind giving me some tips on the upgrade part?
@therandomsomeone.3 жыл бұрын
i finally learned how to create a button now it is up to me to learn more
@martinsgiroux3 жыл бұрын
Nice tutorial. Quick note: in art, the primary colors are Red, Blue and Yellow.
@farhanullah32814 жыл бұрын
Thank you! This was the best tutorial I've watched!
@austin163775 жыл бұрын
The distance formula is derived from a^2 + b^2 = c^2, which shows the relationship between the sides of a right triangle.
@david87764 жыл бұрын
In line 28, when you're invoking the distanceBetween() function you used love.mouse.getX /Y () . But couldn't you just use the parameters x and y as their arguments have already been set to the mouses coordinates?
@Challacade4 жыл бұрын
Yep, it would have been better to simply use the parameter values instead. Slight oversight there, but it still works.
@kennytran28604 жыл бұрын
Thanks bro Time:18:00
@awesomeiram3 жыл бұрын
finally a game engine that uses Lua (sorry Roblox Studio!)
@soulinvestormusic99084 жыл бұрын
in the function mousepressed is the arg x and y not the mouse coordinates ?
@fallenstoryteller21434 жыл бұрын
i like the vid, but you should have a part where you show how to use lua/love2d without atom.
@thecommenttater70263 жыл бұрын
You would just pull up notepad or whatever text editor you do want to use and name the text file main.lua Everything else is pretty much the same
@lefran65525 жыл бұрын
Hmm, im having problems with the toolbar it won't show up on the screen, and also the run button doesnt exist.
@lefran65525 жыл бұрын
@huelegal Well since then I have moved on to unity, but anyways thank you!
@Maku98_5 жыл бұрын
This is a good tutorial. Good job, man! :)
@neutro35444 жыл бұрын
Amazing tutorial. But I did everyth8ng right, everything worked but the i accidentally deleted half of the code. I didnt save so I went back and wrote some code back because I hadn't saved ina. While. Now it says "unexpected symbol near ","
@RandomGameFun4 жыл бұрын
the error should have given you a line to go check, so go to that line and see what it says. without code and the error message there isn't anything we can do for you.
@garyleaver39034 жыл бұрын
Nice one Kyle. Looking forward to a sale on Udemy, so I can afford your Lua course on there. Having dabbled with C# and Visual Basic it seems that Lua shares a lot of similarities. Look forward to doing more in Lua with the Love engine.
@josuecabralmatos22673 жыл бұрын
Hey everyone, some people has been saying "Can you also use Visual Studio Code for Love2D?". Well, kinda but you don't need Love2D for it to work just write down the code and download something called Live Server on Visual Studio Code. Then, you can see your game if there is any problems there it is people.
@flamendless5 жыл бұрын
Hey, good video! Fellow love user here
@andrewmartin23414 жыл бұрын
"If you remember from your math classes" um, I'm 43, I was homeschooled to the 5th grade, and was (am?) Terrible at math 😄😄 seriously though good tutorial. Thinking about taking a math for video games course.
@sleepyoa40494 жыл бұрын
you got this
@davidrudpedersen5622 Жыл бұрын
1+1=2
@fizahahmed84474 жыл бұрын
Why is my command not playing in love??
@tri99er_3 жыл бұрын
You could use x and y inside love.mousepressed.
@polygon.fiction65144 жыл бұрын
I was interested in your Lua course on Udemy, but after getting to checkout, it asks me to sign up. No problem, but once I've made my account, it takes away the coupon discount stating that it's only usable by new members, even thought this is the first time I've used the site.
@owenhardage14955 жыл бұрын
This is such a good tutorial...
@mostafasaid65694 ай бұрын
what is the suitable age to take this course?
@ryzh65444 ай бұрын
from 4 to 89
@JenniferSara19823 жыл бұрын
when i click run theres nothing there, i selected the project with i checked multiple times that im using it and im coding it but it wont work, its just a black screen. "Error Syntax error: main.lua:18: ')' expected near 'button' Traceback [C]: at 0x7ff8c20d28f0 [C]: in function 'require' [C]: in function 'xpcall' [C]: in function 'xpcall'"
@ashsureshkumar91504 жыл бұрын
i get the error: Error main.lua:29: attempt to compare nil with number Traceback main.lua:29: in function [C]: in function 'xpcall' edit - fixed the iisue. the issue was that i forgot to put a return in between the maths sqrt.
@zedolok45083 жыл бұрын
i was testing something in the code and i recommend try this one love.graphics.setColor(1, 0.76, 1) love.graphics.circle("fill", 550, 275, 50) love.graphics.setColor(1, 1, 0.706) love.graphics.rectangle("fill", 350, 225, 200, 100) love.graphics.rectangle("fill", 280, 225, 200, 100) love.graphics.setColor(0.706, 0, 1) love.graphics.circle("fill", 230, 230, 70) love.graphics.circle("fill", 230, 320, 70)
@Polybox4 жыл бұрын
god damn ive spent like 30 minutes trying to find what caused a syntax error in the thing only to find out that you need to put 2 "=" in between "if b" and "1". Maybe you shoul've mentioned that. Aside from that, wonderful tutorial!
@marcost7804 жыл бұрын
Hello I have a MacBook Pro and I put the Path to love executable for the MacOS and it won’t run, also it won’t run without anything
@sontan_z77524 жыл бұрын
Can somebody help me? When I press the run button it says "The system cannot find the path specified" I really need help.
@hachibee36905 жыл бұрын
I installed tool-bar and love-ide but love's icon doesn't show up. in the love-ide setting, it seems lie the run icon is already on though...
@null_ify2 жыл бұрын
I saw that Reaper logo on your taskbar :eyes: you make custom music for your games?
@sloshmaster95 жыл бұрын
Who the heck gave this video a dislike
@thetieguy49615 жыл бұрын
Thank you for this amazing tutorial!
@ltex34244 жыл бұрын
why does it say there is no main.lua file when i try to press the play button after putting the directory path in
@fastestmilkman38404 жыл бұрын
im trying to learn and started doing it but i have "Syntax error: main.lua:1: '=' expected near 'love'" - no idea why and what it is, any help?
@Challacade4 жыл бұрын
Your error message says that something is wrong on line 1 of main.lua. what code did you write in the first line? Can you make sure it matches the video?
@pynk31974 жыл бұрын
Nope it still wont work
@Challacade4 жыл бұрын
@@pynk3197 if you're seeing the same error message as the original question asker, could you post the code you have in main.lua?
@prateekl9684 жыл бұрын
@@Challacade I'm getting this error Main. Lua:10: attempting to call field 'newfont' (a nil value) And I have written this on line 10 Myfont = love.graphics.newfont(40) Help:'(((
@Challacade4 жыл бұрын
@@prateekl968 Your code should be 'newFont' rather than 'newfont'
@marcost7804 жыл бұрын
Can you do a video of all the packages you have?
@meetnaik84524 жыл бұрын
after the first click of the button there is not other button appearing as if thr game has stopped please help!!!!
@ProEpicGuya76c0074 жыл бұрын
my play button doesnt appear as I download the package ... PLEASE HELPPP
@mayconrsantana15075 жыл бұрын
Excellent class, thank you very much.
@jalaneesayas99024 жыл бұрын
Where can I get the rest tutorial video
@Tal200814 жыл бұрын
Does visual studio work with love2d? if yes then how do i install the package.
@DonYurik4 жыл бұрын
Thank youuuuu!!! Great tutorial!
@ThetruthHere125 жыл бұрын
i have a problem the button lecture don't appear but the love ide is installed ...
@ohmai12904 жыл бұрын
The LOVE2D play button doesnt show, what could i do?
@vitilion78383 жыл бұрын
I make the tables this way function love.load() button = { x = 400, y = 200 } end
@devenshah36534 жыл бұрын
I was able to follow through n reproduce. Great
@noogatok3 жыл бұрын
really nice tutorial!
@demosthenes79025 жыл бұрын
You know, for once what I would actually like to see in one of these "programming" tutorials is "How do you come to this conclusion" & "How did I figure this section out", I like this little tutorial but when it comes to this stuff I never see ANYONE actually explain how they got from point a to point b, I just see well now were are going to do -sprite because that will keep it away from the borders... lol.
@fielbolanio38344 жыл бұрын
I'm a beginner in programming and this pop out of my screen when I try to click the play button it says: none of the project directories have a main.lua What does that mean? I'm sorry if I'm not that smart
@sebastianerivesmejia44744 жыл бұрын
Make sure your lua script file is called main.lua and that you’re executing löve in the same directory the main.lua file is in.
@marcost7804 жыл бұрын
Sebastian Erives Mejia hello I am new to programming and when I try to play when I put function love.draw() love.graphics.print(“Hello World!”) it says error running LOVE and below it says Love Executable not found. Try setting the PATH in the love-ide setting menu
@marcost7804 жыл бұрын
Sebastian Erives Mejia I have a chromebook and put the windows Path to love
@AnimeGOATforlife5 жыл бұрын
Bro i am draging the file but its saying cannot find the file at specified location
@indikabaddegamage21643 жыл бұрын
Can you pls tel me how to compile a lua program
@dominicjohnlomeda75584 жыл бұрын
can anybody give me how the timer countdown works and code please
@arjuntyagi60714 жыл бұрын
:\Program Files\LOVE"' is not recognized as an internal or external command, operable program or batch file. when i am running it through atom it is showing this error
@Challacade4 жыл бұрын
Make sure the path you have defined in Atom is accurate, and that you have LOVE installed at that same path.
@I_like_this_sports_tv4 жыл бұрын
Thank you!! Very Helpful
@arbazwassan12854 жыл бұрын
How to add timer please tell me?
@TechBoxNorth5 жыл бұрын
Thanks for this! Bought the course :) As a complete beginner is this a better fit than monogame? I saw you have a course on that as well.
@devenshah36534 жыл бұрын
can I run this main.lua program in Corona Simulator It thows an error "Attempt to index global 'love'(a nil value) function love.draw() love.graphics.print('Hello World!', 400, 300) end
@Challacade4 жыл бұрын
I'm not familiar with Corona Similulator. But, the code you're using there uses LOVE functions (love.draw, love.graphics), but you aren't running your code through LOVE. If there is some kind of Love2D library for Corona where you can execute your code through LOVE, that would work. But you can't run this code alone, it needs to somehow be run with love.exe
@devenshah36534 жыл бұрын
@@Challacade thanks for clarification. I figured, there will be a need of mapping. Enjoying your full course.
@zwwz14245 жыл бұрын
Error main.lua:28: attempt to call field 'GetY' (a nil value) Traceback main.lua:28: in function [C]: in function 'xpcall' @Kule Schaub Please help ;c i don't know how to fix it
@zwwz14245 жыл бұрын
@@Challacade ah thx lol. I for real couldn't fix it :/ well i'm legally blind xD (pretty sad tho, ive been programming in lua for 8 months now. In roblox studio.)
@hish94724 жыл бұрын
i want to ask how would you implement an image in lua
@Challacade4 жыл бұрын
love2d.org/wiki/love.graphics.draw There are some examples on full implementation at the bottom of that page.
@fizahahmed84474 жыл бұрын
Play button is not showing up
@klr6074 жыл бұрын
I downloaded atom on a window machine, installed the love-ide but I can not see the play button.
@ColdBlueLight4 жыл бұрын
i have been looking into this it seems to be atom changed how icons are drawn so till a fix is found you will have to drag your lua file into love to run it.
@heart81595 жыл бұрын
Error boot.lua:479: No code to run Your game might be packaged incorrectly. Make sure main.lua is at the top level of the zip. Traceback [C]: in function 'error' [C]: in function 'xpcall' [C]: in function 'xpcall' im on windows function love.draw() love.graphics.print("Hello world") end
@heart81595 жыл бұрын
I figured it out the problem was that I forget to put my main.lua file in to my game folder
@garyleaver39034 жыл бұрын
Kyle's Udemy course is on sale NOW!
@Dragon_20116 жыл бұрын
Kyle what is your personal preference? Love or monogame? I’m debating between the 2, for a Roguelike or open world tilemap type game
@Dragon_20116 жыл бұрын
Kyle Schaub performance wise would there be much difference on medium sized 2d games between monogame and love? Would it hold up on large tilemap games (in chunks) and not just small one screen leveled games?
@Dragon_20116 жыл бұрын
Kyle Schaub great reply thanks! Will probably pick up your Udemy course for basic love/lua learning. Open world where there are thousands of tiles will be a new challenge for me. I’ve done scrolling tricks where only the visible tiles get drawn, but those worlds weren’t that big. I’ve seen methods where people load 9 screens worth of map, with you being in the center section always, and unload the ones that fall out of range. Not sure how hard keeping stutter out with that would be while loading, but I’ll probably give that a shot with love2d. Drawing to a SpriteBatch would be best I would assume.
@soundrogue44724 жыл бұрын
On my windows 10 I can't drag it on
@kayleighzuniga95354 жыл бұрын
Does anyone know how to get that nifty little toolbar?
@Challacade4 жыл бұрын
It's an Atom package called 'awesome-toolbar'
@kennytran28604 жыл бұрын
I'm having problems with distance between function! The keep giving me an error !
@ivailobsu4 жыл бұрын
What exactly is the problem?
@ivailobsu4 жыл бұрын
It might just be a typo, have you checked for any of those?
@arachito.mp42064 жыл бұрын
Hey,great tutorial,but i’m having issues with the run button,can anyone help me?
@Challacade4 жыл бұрын
Unfortunately the Run button from love-ide has been reported to have issues for awhile now. I recommend using love-launcher as a replacement. Once you install this, you'll press the hotkey Alt+L to run. atom.io/packages/love-launcher
@praisesun6804 жыл бұрын
@@Challacade lol that doesnt work too. well for me atleast.
@Challacade4 жыл бұрын
@@praisesun680 there are a few reasons it might not work. You need to have the project open, with a main.lua file. Then the settings for love-launcher need to be accurate. You need to define the path to your LOVE installation. If that path isn't correct, it will not work. Make sure that LOVE exists at the path defined there.
@praisesun6804 жыл бұрын
@@Challacade i got it working. I swear everything was accurate. I mean i did define the full path. LÖVE Main.lua Path: The subdirectory of the current project that contains main.lua. >>>If not set then it's assumed to be in the current project's root.
@moonman20516 жыл бұрын
By the way Kyle, my circle button doesn't work properly when I click it, only in the center of the circle, so when I click closer to the edge it doesn't work
@moonman20516 жыл бұрын
I do have the line: "if distanceBetween(button.x, button.y, love.mouse.getX(), love.mouse.getY()) < button.size then" And the size is 50 like yours. Here's my code: function love.load() button = {} button.x = 100 button.y = 100 button.size = 50 score = 0 timer = 0 myFont = love.graphics.newFont(40) end function love.update(dt) -- body... end function love.draw() -- body... love.graphics.setColor(1, 0.893, 0.482, alpha) love.graphics.circle("fill", button.x, button.y, button.size) love.graphics.setFont(myFont) love.graphics.setColor(255, 255, 255) love.graphics.print(score) end function love.mousepressed(x, y, b, isTouch) if b == 1 then if distanceBetween(button.x, button.y, love.mouse.getX(), love.mouse.getY()) < button.size then score = score + 1 button.x = love.math.random(button.size, love.graphics.getWidth() - button.size) button.y = love.math.random(button.size, love.graphics.getHeight() - button.size) end end end function distanceBetween(x1, y1, x2, y2) return math.sqrt((y2-y1)^2) + ((x2-x1)^2) end
@moonman20516 жыл бұрын
@@Challacade Thanks man, I think I sent you the code on your email as a .lua file
@AirChessCircuit4 жыл бұрын
I just finished awesome
@bucketofcolslaw24294 жыл бұрын
how do i save?
@Catchity4 жыл бұрын
i am learning this for roblox development!
@popmoiu53004 жыл бұрын
How do i do this using sublime text 3?
@zakarouf4 жыл бұрын
It's just as same. I use Terminal to execute my code Just goto love2d wiki there it's explained
@ilmiklo5 ай бұрын
Amazing, thank you
@andrewsnook81685 жыл бұрын
first of all, thanks for this! i'm really curious how i can start the button in a random position! it seems like it's not as simple as copying the button.x/y = math.random lines, because it throws an error at me. i tried googling a solution, but here is the error that love2d gave me: Error main.lua:3: attempt to perform arithmetic on field 'size' (a nil value) Traceback main.lua:3: in function 'load' [C]: in function 'xpcall' [C]: in function 'xpcall'
@andrewsnook81685 жыл бұрын
wow! i actually figured it out! i have never figured out a coding thing on my own, before. i'll paste my code below, if it helps anyone else. i think that the game didn't know how to deal with button.size until it was defined, first(?) function love.load() button = {} button.size = 50 button.x = math.random(button.size, love.graphics.getWidth() - button.size) button.y = math.random(button.size, love.graphics.getHeight() - button.size) score = 0 timer = 0 myFont = love.graphics.newFont(40) end
@andrewsnook81685 жыл бұрын
@@Challacade well, in the code as it is written in the video, the button x and y coordinates are listed before the line that says "button.size." i tried putting the lines with the button randomness underneath that, and it seems to work!
@teasauce36083 жыл бұрын
is this called "functional programming"?
@randall.o89955 жыл бұрын
Error running love “ not recognised as an internal or external command
@youngmullah67955 жыл бұрын
Marco Polo ya I got this too
@aim4thekill3445 жыл бұрын
is there no way to get your courses for free ? i really want to learn this this video was the BEST i learn every thing step by step thank you very much
@lorgnon16754 жыл бұрын
"Error running LOVE, The system cannot find the path specified." someone please teach me how to fix this error
@Challacade4 жыл бұрын
In Atom, when you go to specify the path to LOVE, it's saying that the path you provided is incorrect. Find on your computer where you installed LOVE, and use that same path.
@marcost7804 жыл бұрын
Kyle Schaub hello I am new to programming and when I try to play when I put function love.draw() love.graphics.print(“Hello World!”) it says error running LOVE and below it says Love Executable not found. Try setting the PATH in the love-ide setting menu
@marcost7804 жыл бұрын
Kyle Schaub I have a chromebook and I put the path to the windows defult
@marcost7804 жыл бұрын
Kyle Schaub do I need a Mac for this?
@Challacade4 жыл бұрын
@@marcost780 nope, the process is the exact same for Windows