Just finished watching the whole thing, started as with 0 experience and now I feel like I`m confident enough to start making my own game, gonna be a challenge but one that I`d love to take! Thank you so much for the wonderful tutorial, you sure helped me and many others learn how to walk through the steps of their dreams, and I`d like to wish a goodluck to everyone who is just starting to learn coding as well like me, please don`t give up! It is just the start and it is a skill you can enhance with experience and time, you will achieve your dreams and goals if you want it badly enough. Take care everyone and thanks again for the wonderful tutorial!
I am very biggest fan of this channel. This channel is like a heaven for coders who can't afford money.This channel is best in the world and thanks to all members for your dedication and hardwork.Thank you very very very much.
Have been making games in love2d for 2 years now. I love love 2d and I love the community. It is such an awesome way to learn programming. I would recommend love 2d to anyone who is starting out in programming. It is fun to use and simple.
@@garln Godot Engine is easier as you have a lot of features available, while with love2d is just a library. But you have more liberty with love2d, you can reinvent the wheel as you like
I absolutely love how you go in-depth with even the simple things, showing the different ways they could be used. Everything is explained very well and I can't wait to continue learning to code with you all. Thank you for providing such a priceless resource for free.
Love2d is really simple and awesome if you really want to make a 2d game and not just use everything provided to you by some game engine. I am the head of game development club of my college and we use it to teach game dev concepts along side with unity.
⭐ Course Contents ⭐ -- LUA BASICS -- ⌨ (0:00:00) Intro to Lua ⌨ (0:02:28) Installing Lua ⌨ (0:09:51) Running Lua (VSCode) ⌨ (0:11:03) Printing and Comments ⌨ (0:19:42) Variables & Data Types ⌨ (0:29:51) Strings ⌨ (0:36:59) Math ⌨ (0:46:22) If Statements ⌨ (0:58:49) Loops ⌨ (1:03:37) User Input ⌨ (1:05:34) Tables ⌨ (1:23:27) Functions ⌨ (1:31:44) Working with Files ⌨ (1:39:12) Custom Modules ⌨ (1:43:10) OOP -- LOVE 2D BASICS -- ⌨ (1:56:42) Setup and LUD basics ⌨ (2:06:35) The Config File ⌨ (2:25:13) Drawing & Moving Shapes ⌨ (2:45:57) Keyboard Input ⌨ (2:55:36) Working with Sprites -- CREATING SAVE THE BALL GAME -- ⌨ (3:21:44) Game Setup ⌨ (3:38:03) Creating the Enemy ⌨ (4:09:02) The Menu Screen ⌨ (4:51:11) Adding a Point System ⌨ (5:11:44) Game Over Screen -- CREATING THE ASTEROIDS GAME -- ⌨ (5:31:24) Game Setup ⌨ (5:40:02) The Player ⌨ (6:10:32) The Thruster ⌨ (6:31:59) The Game State ⌨ (6:38:47) Game Text ⌨ (7:02:40) Asteroids ⌨ (7:41:32) Lasers ⌨ (8:03:46) Laser Collision Detection ⌨ (8:29:10) Player Collision Detection ⌨ (8:41:17) Player Lives ⌨ (8:57:54) The Menu ⌨ (9:30:51) Installing & Running LuaRocks ⌨ (9:42:18) The Score System ⌨ (10:03:12) Game Over ⌨ (10:11:56) Invincible PLayer & Infinite Levels ⌨ (10:31:07) Game Reset & High Score ⌨ (10:44:38) BGM & SFX
@@teamk4allIn comparison to how easy it is on Linux, it kind of is. I'm very used to both systems, so it doesn't bother me, but Linux is undeniably easier.
I've now learned i can change the color of the text in my cmd bar and that I can also edit my code in notepad without constantly having to change the file extension and I'm not even 9 minutes into this video. That's crazy bro. 42:00 Order of operations (for anyone who needs a refresher): [Brackets], (Parenthesis), Exponents, Multiplication, Division, Addition, Subtraction. BPEMDAS. However in this case brackets are just more parenthesis and I guess you don't use [this], however usually you'd use [these] for brackets. 54:53 I freaking love if statements. And else makes them even more compact.
Um I'm fairly certain there is technically no integer data type in lua, I'm pretty sure both ints and floats are considered as "number" which is always float, the only way around this (at least in love2d) is to use the luajit "bit" library then you can at least do bitwise operations on number type variables though idk if it allows actual integer arithmetic
They do both fall under the 'number' data type, but it is good to know the difference between integers and floats, especially if you plan to later on do programming in a different language or get in a discussion with other programmers
@@thecodfather7109 i dont know how but im pretty sure its different for each game, maybe unless its from the same company. look online and youll find what you want
@@mokafi7 tbh dude I was trying to do a character swap where I go from the main player to switch to a boss character to play in the main game but couldn't for the life of me find anything online which sucked 😔
The type does not matter, neither does the file extension, you can still run the code, the file extension is just there so Windows/Linux/Mac and whatever code editor you are using knows what to do with the file, Lua itself can run a .txt file if needed
I would love to learn LUA. I have heard about this but I would need lot of time for watching this tutorial. Thanks keep on posting. I learned to create my own game on Roblox and ofcourse I have students who take Roblox classes from me. Now I will learn this to I can add it to my list and teach them as well.
I don't think many people are looking at this anyways since the last comment is from a year ago but: Thinking that this statement 'x = 5' is read as 'x is equal to five' will only mess with your head later on, it is better to think of it as '5 is being assigned to x'. For the life of me I can't comprehend why everybody teaches that '=' means 'equals to'
Yes, I understand, it makes more sense to say assigned, since it is not technically equal - however, I believe *if* the teacher does their job good enough, that small wording difference may not matter in the end and may make it easier for some non-English speakers to understand (keep words small and sentences simple)
How the hell are you doing a good job to begin with if you can't even get the terminology right. = is not the same as == and no == is not double equals and this != is not about being excited to be equal to another thing and these comparison statements and the operands are not even the most complex. For the life of me, I cannot understand why people make learning to code as this magical thing and complicated when it is in fact very easy and even easier to explain if you are not being an asshole about it. @@Stevesteacher
3:50:30 So the reason it's difficult to wrap your head around this math is because you're doing the math in an unnecessarily unintuitive way. There is no reason to subtract your position from the player's position when you can just, you know, compare your position to the player's position. The comparison 'player.x - self.x > 0' is identical to just 'self.x < player.x'; do you see how much more intuitive the latter is? Instead of going "if the player's x position minus my current x position is greater than zero, then I am to the left of the player", you are simply going "if my current x position is less than the player's x position, then I am to the left of the player".
To make the pacman game work the opposite way just switch food_eaten to true in the load function. Then tell if pacman.x >= food_x + 20 then food_eaten = false in the update function. Finally, tell if food_eaten, then draw the rectange. That way you tell it to draw the triangle as long as the pacman shape's x-axis is smaller than the food's x-axis(food_eaten = true) then if they are equal or the pacman's x-axis is greater it do not enter the if statment so the food is not drawn. _G.love = require("love") function love.load() love.graphics.setBackgroundColor(0,0,0) _G.pacman = {} pacman.x = 200 pacman.y = 250 pacman.eat = true _G.food_x = 600 _G.food_eaten = true end function love.update(dt) pacman.x = pacman.x + 1 if pacman.x >= food_x + 20 then _G.food_eaten = false end end function love.draw() if food_eaten then love.graphics.setColor(1,1,1) love.graphics.rectangle("fill",food_x,200,70,70) end love.graphics.setColor(1, 0.7, 0.1) love.graphics.arc("fill", pacman.x, pacman.y, 60,1,5) end
Never used love 2d.. so following on my own. I just got the the config file section and I think its wrong, maybe re-work that part. the version number part for instance specifies what version of love the game needs.. it is not the version of your game development. Edit: Haha, Did you just say window.vsync was to synchronize sound and video?
You know what, thanks for the cours and why does your cursor look like a pawn from chess I literly taught you typed a weird character at the number 2(1:06:47 ) in the table.
_G.Global Variable. If i dont put local hasnt it specified as a global var. I know u said it wasnt obligatory but why add it to the video.Isnt it StressFul
Hey, can someone help me. I stopped going to school at the age of 15 so I can go to college vocational. But for some reason my parent didn't let me since they didn't like the course that I chose. Now I'm interested in programming language, to be more specific, I want to create a website or an apps. But I don't have any diploma or any certificate. Also, I want to learn it from very beginning and want to work with companies like shopee or Lazada (e commerce apps). Can someone tell me where I can learn and get certificate for this?
JIT, Just In Time, I think to learn other engine since the one I used currently doesnt have clear purpose and I am tired already. I want to try using framework or graphics library.
You could consider using Python and the library Pyglet. I use it all the time to create visualizations. Although Pyglet doesn't have inherent 3D support, it has complete integration with OpenGL, and you can develop your own 3D engine with Pyglet as a wrapper for OpenGL.
It just says lua53 is not recognized as a internal or external command when i try to say lua53 in powershell and it still doesent work when i change the directory to the main.lua file.
@@loonatron4524 That is what happens when you install a program, in this case we just had to do it manually, since Lua does not do it automatically like Python, Nim and many other languages
Do you need to install lua? I am trying to learn it to code scripts for fivem. I have never installed lua in the past. Is it necessary? Or what is the purpose of downloading it? Sorry if dumb question I am super new
FiveM embeds the Lua interpreter, so you only need to install Lua if you intend to compile it or another lua-embedding game from source or to build standalone games in pure Lua (this video).
I'm over eight and a half hours into this, but all of the cutting and pasting of giant blocks of code is making me lose my place. Otherwise, great tutorial so far.
hey so i was doing the custom.lua file and added a print between end and return mod. When i did this it printed the print first then the mod example you provided, why?