Pong - Lecture 0 - CS50's Introduction to Game Development 2018

  Рет қаралды 289,990

CS50

CS50

Күн бұрын

00:00:00 - Introduction
00:04:10 - Lecture Topics
00:07:35 - What is Lua?
00:09:20 - LÖVE2D
00:10:08 - Game Loops
00:11:06 - 2D Coordinate System
00:11:47 - Lecture Scope
00:13:01 - The Day-0 Update
00:18:55 - The Low-Res Update
00:21:02 - Texture Filtering
00:25:10 - The Rectangle Update
00:30:42 - The Paddle Update
00:35:42 - The Ball Update
00:45:37 - The Class Update
00:55:51 - The FPS Update
00:59:35 - The Collision Update
00:59:51 - AABB Collision Detection
01:12:37 - The Score Update
01:14:40 - State Machine
01:21:18 - The Victory Update
01:27:57 - The Audio Update
01:26:44 - bfxr
01:33:54 - The Resize Update
This course picks up where Harvard University's CS50 leaves off, focusing on the development of 2D interactive games. Students explore the design of such childhood games as Super Mario Bros., Legend of Zelda, and Pokémon in a quest to understand how video games themselves are implemented. Via lectures and hands-on projects, the course explores principles of 2D graphics, animation, sound, and collision detection using the LÖVE framework and Lua programming language. By course's end, students will have programmed several of their own games and gained a thorough understanding of the basics of game design and development.
• CS50's Introduction to...
***
This is CS50, Harvard University's introduction to the intellectual enterprises of computer science and the art of programming.
***
HOW TO SUBSCRIBE
kzfaq.info_c...
HOW TO TAKE CS50
edX: cs50.edx.org/
Harvard Extension School: cs50.harvard.edu/extension
Harvard Summer School: cs50.harvard.edu/summer
OpenCourseWare: cs50.harvard.edu/x
HOW TO JOIN CS50 COMMUNITIES
Discord: / discord
Ed: cs50.harvard.edu/x/ed
Facebook Group: / cs50
Faceboook Page: / cs50
GitHub: github.com/cs50
Gitter: gitter.im/cs50/x
Instagram: / cs50
LinkedIn Group: / 7437240
LinkedIn Page: / cs50
Quora: www.quora.com/topic/CS50
Slack: cs50.edx.org/slack
Snapchat: / cs50
Twitter: / cs50
KZfaq: / cs50
HOW TO FOLLOW DAVID J. MALAN
Facebook: / dmalan
GitHub: github.com/dmalan
Instagram: / davidjmalan
LinkedIn: / malan
Quora: www.quora.com/profile/David-J...
Twitter: / davidjmalan
***
CS50 SHOP
cs50.harvardshop.com/
***
LICENSE
CC BY-NC-SA 4.0
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
creativecommons.org/licenses/...
David J. Malan
cs.harvard.edu/malan
malan@harvard.edu

Пікірлер: 406
@Jx_-
@Jx_- Жыл бұрын
When David Malan was there and left us with Colten, it felt like day 1 kindergarten when your dad leaves and you're in a room of strangers and you suddenly feel like a foreigner to your own planet 😭😭😭
@ultrathegamingstorm4864
@ultrathegamingstorm4864 Жыл бұрын
You couldn't have been more true 😂
@Brainrotttttttttt
@Brainrotttttttttt 10 ай бұрын
ikr, David teaches too well.....
@viczvapo
@viczvapo 7 ай бұрын
Lmao for real. Felt a little melancholy lol
@timothygorden7689
@timothygorden7689 Жыл бұрын
Quick reminder: if you want to code along you should get the source code for all this on their website as not every part of the code is shown on the screen.
@FloatingSunfish
@FloatingSunfish 2 жыл бұрын
Loved this series back when it first released! I'm sure it helped tons of budding game developers out there!
@WarbirdGames
@WarbirdGames 6 жыл бұрын
As a huge fan of CS50, I'm really stoked about this course. This is a fantastic set of lectures! Can't wait to dig into all of this.
@carlosgil378
@carlosgil378 6 жыл бұрын
This is great Colton! i just stumbled into this and watched the entire lecture. Gonna use the acquired knowledge for projects of my own! Thanks to you and Harvard University! *Liked and Subscribed*
@The1mpeccable
@The1mpeccable 4 жыл бұрын
Awesome Lecture With Awesome Explanation.
@noahrodriguez1895
@noahrodriguez1895 2 жыл бұрын
I am so thankful that you exist! :)
@prayk11
@prayk11 5 жыл бұрын
Ohoo, I'm so glad my english got a little bit better. Now I can learn a lot by watching this set of lectures.
@luqman_azeem
@luqman_azeem 4 жыл бұрын
For everyone attempting the assignments: do not even look at the Push and Class libraries. They will confuse you deeply. All you need to remember is that push has the code to lower the resolution and class allows you to create classes (I.e use object oriented programming) in LUA in a simple way as described in the vid rather than the default, much more complex way
@hoangdesu
@hoangdesu 3 жыл бұрын
KAn Sh hi, its called Tenary operator which is pretty common in other languages. Basically random(2) gives you a either 0 or 1 right? If it’s 0, then set the value to 100, or if it’s 1 then set the value to -100. Hope it helps
@kahanbhalani3607
@kahanbhalani3607 5 жыл бұрын
I like the random number generation concept of using the time very much. Great job....
@jdavid82
@jdavid82 6 жыл бұрын
Awesome video, awesome work, thank you
@muhammaduzair4908
@muhammaduzair4908 4 жыл бұрын
Thanks for providing such platform ♥
5 жыл бұрын
Thank you Zac Efron!
@badsanta7356
@badsanta7356 Жыл бұрын
Bruh what.. Wash your eyes
@Noobstar25
@Noobstar25 Жыл бұрын
@@badsanta7356 😂😂😭
@darrenfrancis8126
@darrenfrancis8126 Жыл бұрын
@@badsanta7356 😂
@yuxue2801
@yuxue2801 Жыл бұрын
Lol
@alexanderyeara8809
@alexanderyeara8809 5 жыл бұрын
This is a great lesson. Thank you Colton.
@l2t865
@l2t865 Жыл бұрын
Hey did you do this course feom windows?
@kensleylewis
@kensleylewis 3 жыл бұрын
where do we go beyond this amazing course, to keep the love2d learning growing?
@mhalton
@mhalton 2 жыл бұрын
These lectures are full of löve!
@rpl2074
@rpl2074 4 ай бұрын
but the info can be 2d-ifficult
@PandaMyCo
@PandaMyCo 6 жыл бұрын
Thanks for making this playlist. Really helpful.
@juniorfranke
@juniorfranke 7 ай бұрын
Thank you for this effort.
@kevenbouchard7973
@kevenbouchard7973 8 ай бұрын
if I end up doing something decent someday, its gonna be because of this lecture
@KnightMD
@KnightMD 3 жыл бұрын
I can't wait to push through CS50, then do this when I'm done. Just need to sit for my medical licensing exam in 3 weeks. Then I'll be free to develop a game before I start my fellowship.
@ahmada56
@ahmada56 Жыл бұрын
How did everything go?
@KnightMD
@KnightMD Жыл бұрын
@@ahmada56 Got a fellowship then a residency and now I won't have free time for the next 4 years :D
@ArtistNotFound123
@ArtistNotFound123 4 ай бұрын
@@KnightMDI’m starting this as of 2 days ago. I am pong 5 lol
@lorcanzo2498
@lorcanzo2498 2 ай бұрын
How are you doing now?
@KnightMD
@KnightMD 2 ай бұрын
@@lorcanzo2498 I didn't do anything and just got stuck with surgical training and studying
@NickBanner
@NickBanner 5 жыл бұрын
amazing lecture!
@ArtistNotFound123
@ArtistNotFound123 4 ай бұрын
I started this a few days ago and I’ve about to start pong5. Haven’t coded since Visual Basic in high school
@jogoprogramado
@jogoprogramado 4 жыл бұрын
Excelente aula. Parabéns.
@armandoaddis3292
@armandoaddis3292 4 ай бұрын
Actually i’ a following cs50x… later I would like a massive update of this course, so I can follow it in 2024
@mengmeiyingg
@mengmeiyingg 6 жыл бұрын
hi guys i've just started this course and i have an error when i try to open the assignment0 folder in love Error push.lua:101: attempt to call field 'getPixelScale' (a nil value) Traceback push.lua:101: in function 'initValues' push.lua:48: in function 'setupScreen' main.lua:85: in function 'load' [C]: in function 'xpcall' [C]: in function 'xpcall' what am i doing wrong?? please help
@programerbahar60
@programerbahar60 Жыл бұрын
Lot of Thanks
@ulugbekuktamov2685
@ulugbekuktamov2685 2 жыл бұрын
i think it was very interesting for everybody
@hotmandead1
@hotmandead1 6 жыл бұрын
Steps to get lua code working (MAC) 1. Get mac zipFile and unzip to get love app 2. Drag Drop in applications 3. Create a folder anywhere and end it with .love (MUST) 4. open fav editor and code in lua 5. save 6. double click STEP 3 folder .... Walla !
@Anniecao0430
@Anniecao0430 3 жыл бұрын
This doesnt work for me
@Alex-ij9ph
@Alex-ij9ph Жыл бұрын
This worked for me. Thanks so much.
@l2t865
@l2t865 Жыл бұрын
I have problem running this game in windows please help i use wsl from windows
@xiaslim8432
@xiaslim8432 Жыл бұрын
Super lecture ! By the way, what was the intro music used in the beginning ?
@manihal123
@manihal123 6 жыл бұрын
Thnks alot!!
@coltonoscopy
@coltonoscopy 6 жыл бұрын
Thanks for tuning in, Mandeep! :)
@xiaslim8432
@xiaslim8432 2 жыл бұрын
Super lecture ! Thanks for the sharing ☺️. What was the beautiful intro music ? 🎶
@abhiyanshrestha8767
@abhiyanshrestha8767 4 жыл бұрын
Error push.lua:101: attempt to call field 'getPixelScale' (a nil value) Traceback push.lua:101: in function 'initValues' push.lua:48: in function 'setupScreen' main.lua:47: in function 'load' [C]: in function 'xpcall' [C]: in function 'xpcall'
@raps55
@raps55 4 жыл бұрын
Same error
@abhiyanshrestha8767
@abhiyanshrestha8767 4 жыл бұрын
@@raps55 Go to the push.lua and find 'getPixelscale' and change it to ' getDPIscale'
@capnjon6835
@capnjon6835 4 жыл бұрын
@@abhiyanshrestha8767 Thanks man! It worked
@DZM47
@DZM47 2 жыл бұрын
@@abhiyanshrestha8767 Thankyousomuch you saved us!
@blueadmiral6972
@blueadmiral6972 5 жыл бұрын
Please explain a bit about class.lua file used in pong 5
@user-fx6ze5yv7e
@user-fx6ze5yv7e 6 жыл бұрын
Thanks a lot. Programming with learning English :)
@codigodesenior3995
@codigodesenior3995 4 жыл бұрын
Yes, I am from Brazil, and you?
@gabrielgv5627
@gabrielgv5627 4 жыл бұрын
@@codigodesenior3995 oi tudo bem? Eu vejo o seu canal e queria te perguntar: Você pode ensinar a usar o Love2d no seu canal? Por favor?
@codigodesenior3995
@codigodesenior3995 4 жыл бұрын
@@gabrielgv5627 Posso pensar a respeito, não gosto de fazer tutorias, mas posso falar sobre, aproveita e se inscreve la S2
@gabrielgv5627
@gabrielgv5627 4 жыл бұрын
@@codigodesenior3995 tudo bem. Já sou inscrito do seu canal.
@codigodesenior3995
@codigodesenior3995 4 жыл бұрын
@@gabrielgv5627 S2
@dauletbaimagamabet
@dauletbaimagamabet 5 жыл бұрын
I get this error: lua: main.lua:29: attempt to index global 'love' (a nil value) stack traceback: main.lua:29: in main chunk [C]: ?
@kensleylewis
@kensleylewis 4 жыл бұрын
Colton, I see that you use .wav files for the audio samples in your game. But is that is the best format in your opinion for us to stick with?
@WarriorOfSneak
@WarriorOfSneak 3 жыл бұрын
WAV formats are good for audio production because they store a lot more informations than mp3 or ogg. That means they are not so good in use in a game but nothing is blocking you from using it. mp3 would be the next best joice since it is smaller in size and widly used. If you have little to non storage space you can use ogg this format it used in Minecraft and even more compressed than mp3.
@44_madhurmanekar61
@44_madhurmanekar61 4 жыл бұрын
I have a doubt about the push file...didn't really get what it's use is and what is inside push file..... Great video..thanks!!
@amnas.6101
@amnas.6101 4 жыл бұрын
Is there any pre-requisites before starting this course???
@champihercoc3943
@champihercoc3943 4 жыл бұрын
I got this error, I copied the code for te file push.lua on github and an error comes to that copied code on line 48 Error push.lua:48 : bad argument # 2 to 'windowUpdateMode'(number expected, got table) its expecting a number but ind founds a table, so I don´t know how to resolve that bc i basicaally imported that code and I didn't move or add anything
@southmoviestv4106
@southmoviestv4106 5 жыл бұрын
you are awesome
@cassiacristinadesousafaria6842
@cassiacristinadesousafaria6842 4 жыл бұрын
ESTAMOS EM UMA AUDIÊNCIA.
@ducganktem201
@ducganktem201 3 жыл бұрын
how can i run the love2d in pong 0 and i pressed alt L but it doesnt pop up anything on the screen. Anyone help me this
@molletitarkiksai4762
@molletitarkiksai4762 4 жыл бұрын
I am using windows 10 but I can't be able to compile and run the day 2 update in my PC please help me with this ..............
@shikhargautam9212
@shikhargautam9212 4 жыл бұрын
i am getting Error TrueType Font loading error: FT_Set_Pixel_Sizes failed: 0x17 (invalid size?) Traceback [C]: at 0x7ff96c2dca30 [C]: in function 'newFont' main.lua:13: in main chunk [C]: in function 'require' [C]: in function 'xpcall' [C]: in function 'xpcall' when i try to change the font . please help!!
@odorlessflavorless
@odorlessflavorless 6 жыл бұрын
Why does the `love --version` throw a "`bash: Command not found " error on my Mac. I installed the Love application in my Applications directory. It is very embarrassing to stumble at the first step itself.
@coltonoscopy
@coltonoscopy 6 жыл бұрын
Hi Ananta, you'll have to "alias" the LÖVE framework on a Mac in order to refer to it by `love`; see the instructions here per the lecture, referenced at 7:01! love2d.org/wiki/Getting_Started
@rohitrohan2009
@rohitrohan2009 5 жыл бұрын
i'm getting this error: Error push.lua:101: attempt to call field 'getPixelScale' (a nil value) Traceback push.lua:101: in function 'initValues' push.lua:48: in function 'setupScreen' main.lua:42: in function 'load' [C]: in function 'xpcall' [C]: in function 'xpcall'
@anzifai717
@anzifai717 5 жыл бұрын
replace the getPixelScale with love.window.getDPIScale() in push.lua
@pianokage
@pianokage 5 жыл бұрын
@@anzifai717 Thanks:)
@dhileepism
@dhileepism 6 жыл бұрын
what is push do to the text Hello World?
@MohammadShaikh-nx8wc
@MohammadShaikh-nx8wc 4 жыл бұрын
Can someone help me please I have a problem starting assignment0 on Windows 10?
@jwise9013
@jwise9013 2 жыл бұрын
I am getting error WINDOW_HEIGHT( a number value) and i cant figure out what is going wrong
@santoshadhikari360
@santoshadhikari360 6 жыл бұрын
The collision part seems pretty confusing. What is with the "self" keyword, the colon ?
@coltonoscopy
@coltonoscopy 6 жыл бұрын
@Santosh "self" is basically a keyword in Lua that refers to whatever the current object is that's an instance of this "class"; it's a little more complicated than that because Lua doesn't have native classes like Python or Java, but it's the same idea. You define a class, like Ball or Paddle, which has attributes and functions, and you can make "instances" of them (actual objects that do things on the screen, but take their behavior and attributes from what's defined in their classes). I would look up the basics of object-oriented programming to get a sense of how things work! A colon is shorthand in Lua for passing an object as the first parameter to a function; I would look here for a bit more detail on object-oriented programming in Lua: www.lua.org/pil/16.html
@santoshadhikari360
@santoshadhikari360 6 жыл бұрын
Thanks and thanks for that link too🙂
@rohanreddycj
@rohanreddycj 3 жыл бұрын
What editor(or ide) does cs50 use for game development in löve2d?
@rohanreddycj
@rohanreddycj 3 жыл бұрын
@fg fg thank you so much
@neiljoseph1311
@neiljoseph1311 4 жыл бұрын
Im getting an error of this sort Error Syntax error: main.lua:8: '}' expected (to close '{' at line 5) near 'vsync' Traceback [C]: at 0x07fed5d628f0 [C]: in function 'require' [C]: in function 'xpcall' [C]: in function 'xpcall'
@shikhargautam9212
@shikhargautam9212 4 жыл бұрын
you may have forgot to put comma between fullscreen = false, resizable = false and vsync = true or the curly brace of the table may have left unclosed . Hope it helps
@Shubham_30_12
@Shubham_30_12 3 жыл бұрын
which programming language is needed to be known to understand this pls help if anyone knows i seriously don't know about lua
@CR-um6bb
@CR-um6bb 6 жыл бұрын
You look like Zac Efron...btw great lecture..
@TuongNguyen-cz5se
@TuongNguyen-cz5se 3 жыл бұрын
How do we play the lua code?
@menukafrancisco1271
@menukafrancisco1271 4 жыл бұрын
It is so confusing to program with love 2d what other software should we use to program love 2d with. When I click on Love.exe all I find in the screen is "NO GAME" beside it I find a blank black screen which cannot type on. What should I do? I'm just a beginner
@shikhargautam9212
@shikhargautam9212 4 жыл бұрын
i also at first got a duck floating in mid air and nothing else then i made the pong pong folder open with the path of love.exe in love2d folder and it worked. i am having windows 10 and lua5.3.5 . make sure you have downloaded lua binaries . hope it helps
@skysong8140
@skysong8140 4 жыл бұрын
you need to download a code editor or IDE before running the game, when done download the distribution code from the assignment page, then you can run it
@EvanOttinger
@EvanOttinger 6 жыл бұрын
I've try using the updated versions of push.lua, but I'm still not getting anything rendered past Pong 1. Has anyone encountered this?
@ostrich_dog
@ostrich_dog 5 жыл бұрын
Me
@HelloWorld-id5ho
@HelloWorld-id5ho 3 жыл бұрын
According to me, I have submitted code as mentioned that is 1. assignment0 directory should be submitted 2. assignment0 should be submitted with specified branch Submission Feedback "Your code is not structured as required by the yellow box before Step 1 of the submission instructions: cs50.harvard.edu/games/2018/assignments/0/#how-to-submit" Can anyone point out specific requirement that I violated so that next time this won't happen from my side.
@rayarc5478
@rayarc5478 6 жыл бұрын
pong pong pong!!! now i play pong all day with my AI paddle XD
@coltonoscopy
@coltonoscopy 6 жыл бұрын
haha Breakout, coming soon, should hopefully provide you with a little more quality entertainment ;)
@joesilva3519
@joesilva3519 3 жыл бұрын
legend has it he is still playing pong with the ai to this day
@charbelsarkis3567
@charbelsarkis3567 5 жыл бұрын
What font did he use?
@slickiboi69
@slickiboi69 Жыл бұрын
I just started the course of CS50G and i have a question... how were you able to open the code from github and later open it in love and can you please tell how to do it in windows.
@dastranjer9274
@dastranjer9274 Жыл бұрын
*hope
@olusholaabejide2280
@olusholaabejide2280 4 жыл бұрын
How do I move to another directory and then change the current directory? And how do I get the current directory changed and run "cd assignment0"?
@mbarbierif
@mbarbierif 3 жыл бұрын
The command "cd" means change directory, if you do "cd folder1" you can go inside that folder, if you want to go back to a parent directory you can do "cd ..", hope this helps!
@leishisomarchang3297
@leishisomarchang3297 5 жыл бұрын
Hi colten! Your pong repo is having runtime error in love 2D version 11. So please upadate it. Looking forward for the update
@skaruts
@skaruts 3 жыл бұрын
If the error is about *love.window.getPixelScale* in *push.lua,* change it to *love.window.getDPIScale.* love2d.org/wiki/love.window.getDPIScale
@nickng8069
@nickng8069 5 жыл бұрын
How do you move the games you made into iOS platform or apps? I mean are these games only for PC?
@WarriorOfSneak
@WarriorOfSneak 3 жыл бұрын
You check out the office wiki of Love2D (love2d (dot) org /wiki/Game_Distribution). You can compile (export) your game to Windows, MacOS, Linux, Debian, Android and even iOS.
@ggousier
@ggousier 4 жыл бұрын
Hi ! Very good video. Do you know an all in one kit development called Pico 8 ?
@mirefecetin316
@mirefecetin316 Жыл бұрын
how am i gonna download löve2d on my fedora computer? I got stuck on a second
@paulocesarleon7101
@paulocesarleon7101 5 жыл бұрын
Hi, how can I run the main.lua file from terminal? (just typing mYfile . as Colton does) [I got -bash: pong-0: command not found].( What I do is to write in terminal love + path)
@iconic410
@iconic410 2 жыл бұрын
Hello, if you use VSCode, try downloading the extension "LOVE2D Support" by clicking the option on the left of your VSCode window that looks like 4 squares and searching for "LOVE2D Support". Then you should probably be able to run your main.lua file by clicking Alt + L while being in your main file. If this does not work, it is probably because your file hasn't saved changes, click File at the top left, then Autosave. Now it should run your file everytime your press Alt + L. If you don't VSCode, sorry to be of no help.
@dishantbhor7721
@dishantbhor7721 2 жыл бұрын
@@iconic410 i followed the procedure suggested by u and for me it shows "Unable to find main.lua. This is not a Love2D project" can u pls guide me
@rachitagarwal2260
@rachitagarwal2260 6 жыл бұрын
cooooool
@abhishekchawla7344
@abhishekchawla7344 3 жыл бұрын
Hey Can Someone Help Me In The Projects Of Introduction To Game Development
@WipzY
@WipzY 4 жыл бұрын
for this game development do our pc recommend any specs
@prla5400
@prla5400 4 жыл бұрын
well for this lecture particularly nothing too big. As you saw a laptop of decent specs could do it :P
@programmingtube1781
@programmingtube1781 5 жыл бұрын
How to set up lua in windows
@arthurschiller5699
@arthurschiller5699 4 жыл бұрын
how can I install push to work on my sublime text file? I've been trying for a long time and I'm not able to make the game run because the sublime can't find the push.lua library.
@DanielP533Scripts
@DanielP533Scripts 4 жыл бұрын
First, install the package from (github.com/Ulydev/push) Then add it to your project respiratory (of course, unzip it first) On top of your code use require 'path to push file' Inside your folder there should be a 'push.lua' somewhere. For ex, if your folder that has 'push.lua' inside of it is named 'push-master' your code would be: push = require 'push-master.push' And yes, use dots instead of slashes, and remove the '.lua' extention. In a nutshell, **install push, unzip it, add it to your project's folder, then use the require commond to use it.** Enjoy :)
@arthurschiller5699
@arthurschiller5699 4 жыл бұрын
@@DanielP533Scripts thanks
@raahilbadiani7289
@raahilbadiani7289 4 жыл бұрын
@@DanielP533Scripts its showing error 404 i am unable to open it and i m also facing the same issue with push
@kirtikedia6274
@kirtikedia6274 4 жыл бұрын
From where i can get the source code?
@raahilbadiani7289
@raahilbadiani7289 4 жыл бұрын
I have a doubt. What if while we try to detect collision the ball is fast enough to never collide and get past our paddle within less than 1 single frame?
@skysong8140
@skysong8140 4 жыл бұрын
It is normal, colton did mention it in lecture 2 that at some point the speed will be too fast for collision detection to happen, so the ball will just fly past the screen and counts as scored. He'll mention how to fix that in lecture 2, so don't worry about that now, cheers!
@raahilbadiani7289
@raahilbadiani7289 4 жыл бұрын
@@skysong8140 thanks a lot!
@salmamohamed1261
@salmamohamed1261 4 жыл бұрын
I have a problem When I finish coding and open Love2d an error comes to me
@lorena-xe8ec
@lorena-xe8ec 4 жыл бұрын
same
@nathandaniel5451
@nathandaniel5451 3 жыл бұрын
Sounds like you have some debugging to do
@alokamanodya3198
@alokamanodya3198 4 жыл бұрын
Please explain push.lua directory
@r2rito654
@r2rito654 3 жыл бұрын
I had to say, I was watching the video, and halfway through I kinda fall asleep, I literary woke up for the last pong version. I started and finished CS50 (introduction to computer science) for this course and... the other one wasn't my interests but I never fall asleep watching one of the videos. The other program is kinda more appealing/fun to watch... this is just my humble opinion.
@rahulmittal9023
@rahulmittal9023 Жыл бұрын
I started this course first and reached up to lecture 2. Then I found CS50 and completed CS50 in 2-3 months. Now I started GD50 again from lecture 2. In parallel I am also working on the project for CS50.
@reaperlinh
@reaperlinh 5 жыл бұрын
How to run the file?
@capnjon6835
@capnjon6835 4 жыл бұрын
Error push.lua:222: attempt to perform arithmetic on local 'w' (a nil value) Traceback push.lua:222: in function 'resize' main.lua:42: in function [C]: in function 'xpcall' I cannot resize the application in pong-12 because of push.lua. What changes are needed to be made? Please help
@2Dmensions
@2Dmensions 4 жыл бұрын
I have the same problem. As soon as I include the Push library I get bugs from it.
@gdsirnishka3326
@gdsirnishka3326 4 жыл бұрын
your not supposed to resize the application, that’s why resizable is set to false in the source code, read the code first before immediately saying you have errors, which are all your fault
@sandro1262
@sandro1262 3 жыл бұрын
I have a question, what is the app for code ?? it's git hub? Thanks.
@ktdeauna_tvb
@ktdeauna_tvb 5 жыл бұрын
I was able to compile Pong 0 and Pong 1. For the rest of the Pong family files, I was get compilations with White Screens. I had to double check if love.graphics.clear() would make sense to my case.
@rndm8614
@rndm8614 5 жыл бұрын
replace the line: love.graphics.clear(40, 45, 52, 255) with: love.graphics.clear(40/255, 45/255, 52/255, 255/255)
@anaspeerzada
@anaspeerzada 4 жыл бұрын
@@rndm8614 Thanks, whats the issue with just the values?
@hotmandead1
@hotmandead1 6 жыл бұрын
Is there a playlist to this ?
@coltonoscopy
@coltonoscopy 6 жыл бұрын
Indeed! kzfaq.info/sun/PLhQjrBD2T383Vx9-4vJYFsJbvZ_D17Qzh
@devilhunterdante5863
@devilhunterdante5863 4 жыл бұрын
Error boot.lua:577: Cannot load game at path 'C:/Users/Jericho/Desktop/New folder (3)/man.lua'. Make sure a folder exists at the specified path. Traceback [C]: in function 'error' [C]: in function 'xpcall' [C]: in function 'xpcall' help
@sazdaz1955
@sazdaz1955 4 жыл бұрын
probably a typo, 'man.lua' should be 'main.lua'
@devilhunterdante5863
@devilhunterdante5863 4 жыл бұрын
@@sazdaz1955 nice catch thanks. main.lua has the same error
@demiladeadeisrael799
@demiladeadeisrael799 4 жыл бұрын
how do you the terminal
@SpectrumMox
@SpectrumMox 3 жыл бұрын
So I have a problem. When I play it, when the ball for example is hit by the right paddle, the velocity goes crazy and bounces up and down. Where is the problem in that? Is it if ball:collides(player1) then ball.dx = -ball.dx * 1.03 ball.x = player1.x + 5 The 1.03 part? Because 1.03 is a low number, right? So why did it accelerate so much?
@deethanyter7324
@deethanyter7324 22 күн бұрын
i think it has to do with your ball.dy = math.random(10, 150) i found 150 to be too much for me personally. it makes the y velocity shoot up and down like crazy like you were talking about
@raps55
@raps55 4 жыл бұрын
My push function isn't working
@santic.8120
@santic.8120 4 жыл бұрын
i'm getting an error like this: Error Paddle.lua:1: attempt to call global 'Class' (a boolean value) Traceback Paddle.lua:1: in main chunk [C]: in function 'require' main.lua:6: in main chunk [C]: in function 'require' [C]: in function 'xpcall' [C]: in function 'xpcall'
@herbalistdr.myounuskhan444
@herbalistdr.myounuskhan444 4 жыл бұрын
i am also facing the same problem
@kelissuthar2070
@kelissuthar2070 4 жыл бұрын
same problem i'm also facing right now in individual class, have u find an solution for this???
@l2t865
@l2t865 Жыл бұрын
Same bro were you using wsl?
@FrostyGamer247
@FrostyGamer247 3 жыл бұрын
I am not able to run the code. Why?
@reallygoodperson9487
@reallygoodperson9487 3 жыл бұрын
@ 1:11:05 so we are doing virtual height minus 4, why ? subtitles says the answer, :- inaudible, lol
@raps55
@raps55 4 жыл бұрын
My ball always has a very high y coordinate such that it takes a reeaally long time to reach the paddles.....any solution to that?
@skysong8140
@skysong8140 4 жыл бұрын
He wrote his code wrongly in the Ball.lua file, check the Ball:init() function, switch dx and dy and it should work properly
@nowak93
@nowak93 Жыл бұрын
I wonder if they would have done unreal instead of unity if this course ever gets updated
@The1mpeccable
@The1mpeccable 4 жыл бұрын
How To Make A AI Paddle?
@AnmolSahu
@AnmolSahu 3 жыл бұрын
Cool
@sanjanabharadwaj6768
@sanjanabharadwaj6768 3 жыл бұрын
Error push.lua:101: attempt to call field 'getPixelScale' (a nil value) Traceback push.lua:101: in function 'initValues' push.lua:48: in function 'setupScreen' main.lua:77: in function 'load' [C]: in function 'xpcall' [C]: in function 'xpcall' i get this error when i run the final source code
@Shubham_30_12
@Shubham_30_12 3 жыл бұрын
please tell me which programming language is to known by us to be able to understand this I'm new here thanking you in advance....
@abdulazizal-mugait2176
@abdulazizal-mugait2176 4 жыл бұрын
hi , I am facing a problem with the push library while programming , it gives me this error Error push.lua:101: attempt to call field 'getPixelScale' (a nil value) Traceback push.lua:101: in function 'initValues' push.lua:48: in function 'setupScreen' main.lua:49: in function 'load' [C]: in function 'xpcall' [C]: in function 'xpcall' , I tried to change the function getPixelScale() to getDPIScale() in the push ,as per the suggestions of others on the net that've faced similar issue , it worked in pong1 after some tweaks but it did not work when running pong2
@skysong8140
@skysong8140 4 жыл бұрын
the love2d version he used is outdated now raw.githubusercontent.com/Ulydev/push/master/push.lua replace your current push.lua file with this . In addition search for love.graphics.setColor in love.draw() function, divide all the parameters by 255, if i recall correctly it should be (40/255, 45/255, 52/255, 1)
@diegofelipe2119
@diegofelipe2119 4 жыл бұрын
@@skysong8140 thanks
@evgenkaban6018
@evgenkaban6018 6 жыл бұрын
where I can find the code for this video
@evgenkaban6018
@evgenkaban6018 6 жыл бұрын
thanks, I think this should be in the description for the video
@Ender-im5ez
@Ender-im5ez 4 жыл бұрын
Current spot I’m at: 55:50
@wizard612power7
@wizard612power7 Жыл бұрын
i dont know how to run my .lua file can someone help me
@AquaPhoenix-w9u
@AquaPhoenix-w9u 2 ай бұрын
well what i did 4 years ago was drag the file like pong1, pong2... directly into the running löve (ballon displaying framework.) I think your can directly do it in terminal in mac, even on windows if you set environment variables.
@chantisyt9413
@chantisyt9413 4 жыл бұрын
I need help how do I add powerups to a game? 😕
@kensleylewis
@kensleylewis 4 жыл бұрын
In regards calling a function of a class, or a table, can we always use a colon? Are their cases where a dot would be appropriate?
@DanielAraujo92
@DanielAraujo92 2 жыл бұрын
The colon actually means that you're passing the same table as the first argument (as far as a I remember), that's the problem that I see in this course, they assume you know LUA already and don't even have an introductory lecture or even written lesson about it. Compared to CS50x this is not great.
Can You Draw A PERFECTLY Dotted Circle?
00:55
Stokes Twins
Рет қаралды 42 МЛН
God-Tier Developer Roadmap
16:42
Fireship
Рет қаралды 7 МЛН
Why learn LUA?
6:24
Kodaps Academy
Рет қаралды 7 М.
How to Start Gamedev in 2024
10:28
Sasquatch B Studios
Рет қаралды 435 М.
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
How to Code (almost) Any Feature
9:48
DaFluffyPotato
Рет қаралды 664 М.
12 Desk Setup Upgrades That ACTUALLY Matter
11:20
Oliur / UltraLinx
Рет қаралды 598 М.
6 Levels of Thinking Every Student MUST Master
17:12
Justin Sung
Рет қаралды 1,2 МЛН
Everything I Learned at Game Dev University
2:49
My GameDev Pal
Рет қаралды 34 М.
Programming Is NOT Enough | Add these 7 skills…
13:19
Travis Media
Рет қаралды 414 М.
Making a Blacksmithing Game in 1 Week Using Love2D
5:11
SquidGod
Рет қаралды 20 М.