C++ Tutorial 21 - Simple Pong Game (Part 2)

  Рет қаралды 83,531

NVitanovic

NVitanovic

Күн бұрын

Пікірлер: 47
@nobodynobody4683
@nobodynobody4683 7 жыл бұрын
I'm now in the process of developing my own game because if these tutorials.thank you so much for making them
@TheDrumergod
@TheDrumergod 9 жыл бұрын
please dont stop this videos
@skirankumar000
@skirankumar000 8 жыл бұрын
Hi, I request you to please make a video on operator overloading with all of its examples..
@prince5922
@prince5922 6 жыл бұрын
it's the toughest concept in programming
@hussain4373
@hussain4373 3 жыл бұрын
At 4:58 I'm getting an error saying" cPaddle was not declared in this scope", can anyone explain please?
@Shad0ow123
@Shad0ow123 8 жыл бұрын
your videos helped me pass my exams, thank you so much !
@visaqueries2023
@visaqueries2023 Жыл бұрын
can you please say why did you delete the main function of the ball? then what was the reason to show ball position before if you gonna delete it later and use paddle instead?
@Swanseaguy1979
@Swanseaguy1979 9 жыл бұрын
Thanks for taking the time to post these videos, how many lessons will there be in the series?
@ninodecaro9099
@ninodecaro9099 3 жыл бұрын
I'm getting "No operator "
@sd3776
@sd3776 4 жыл бұрын
is GameManger supposed to be GameManager?
@skykingjason
@skykingjason 9 жыл бұрын
Hi, I appreciate your tutorials, as I am learning a lot. However, just like in the Snake tutorial, you have included the conio.h library. As a Mac user using Xcode, everything works perfectly until there, as the conio.h library is exclusively for Windows. I would really appreciate it if you used more universal solutions that everyone can use!
@NVitanovic
@NVitanovic 9 жыл бұрын
+GalaxyMods I'm not sure if it is a valid replacement, but you can try this library sourceforge.net/projects/linux-conioh/
@funnifurrytechgirl
@funnifurrytechgirl 4 жыл бұрын
if you want a programming language that can be used on all OS's, look elsewhere
@Nguyenthao-oj9ku
@Nguyenthao-oj9ku 2 жыл бұрын
hello man, can you please explain why do you need to use inline from 85 to 89? I think inline is good when we use multi files.
@abdelrhmanahmed1378
@abdelrhmanahmed1378 4 жыл бұрын
why you use pointer instead of regular player object ?
@narahs22
@narahs22 8 жыл бұрын
Dude why are up and down always opposite when you say it? Paddle 1 went from (0,0) to (0,-1) isn't that moving down or am I missing something???
@narahs22
@narahs22 8 жыл бұрын
I was confused when you say moving up is y- -, but it actually moves downward from (0,0) to (0,-1) so do you just have up and down mixed up or am I not understanding something.
@dbredred1
@dbredred1 8 жыл бұрын
It is, Because he put the y after the X in the cout, and the coordinates start at the top left. Meaning that 0 would be the top, and we need to take away to get closer to 0.
@omegazyph
@omegazyph 7 жыл бұрын
Pong game\main.cpp|80|error: type `class cPaddle' is not a direct base of `cPaddle' i don't know why i have this
@omegazyph
@omegazyph 7 жыл бұрын
i found out i had to take the : cPaddle() out now it works fine
@potatoingots1806
@potatoingots1806 4 жыл бұрын
i cant use conio.h command what shall i do instead???
@funnifurrytechgirl
@funnifurrytechgirl 4 жыл бұрын
it doesnt seem to work, even when i copy-paste i get syntax errors
@ganxe
@ganxe 8 жыл бұрын
Hi, please why "inline" for Reset() in cPaddle class and not for cBall class (just: void Reset()) ? Thank you.
@pouriakalantari6537
@pouriakalantari6537 5 жыл бұрын
it s because inline functin will be proceed so much faster than others but is depends on whole codes and the amount of line of the incline function.. here its very useful why maybe during the game we need many times to reset and in a case of incline func, it will be done much more easier and faster
@adanolivares6773
@adanolivares6773 8 жыл бұрын
I'm in between part 2 and part 3. after successfully compiling the code after part 2, I get a warning message about delegating constructors only available in c++11. will this be a problem after im done with the whole thing?
@adanolivares6773
@adanolivares6773 8 жыл бұрын
thanks for the vids by the way. I successfully recreated the snake game thanks to you
@laughAFrame
@laughAFrame 7 жыл бұрын
how to use the class "cmanager" using inheritance?
@jjeon9850
@jjeon9850 7 жыл бұрын
How do I see the source code? It keeps freezing at a tab saying "checking your browser... please wait"
@papasluck1898
@papasluck1898 5 жыл бұрын
hi im unsure if you are still active on this channel but when I input cout
@starelite6332
@starelite6332 4 жыл бұрын
Did u include conio. H and friend function in each class?
@blighmorgan5551
@blighmorgan5551 3 жыл бұрын
@@starelite6332 where would I put coino.h
@starelite6332
@starelite6332 3 жыл бұрын
@@blighmorgan5551 #include #include Using namespace std; Add these three lines at the start and then try
@bdgboa7547
@bdgboa7547 7 жыл бұрын
do i save this as a .bat file???
@Nick-jb4xi
@Nick-jb4xi 6 жыл бұрын
it's still a .cpp file
@judewoolls3432
@judewoolls3432 8 жыл бұрын
Thanks successfully made snake game
@nofelnofa8121
@nofelnofa8121 6 жыл бұрын
cPaddle( int x,int y) :cPaddle{ } what mean :cPaddle() thank you so much
@Cr0ftyTV
@Cr0ftyTV 5 жыл бұрын
he's creating an object called cPaddle using the cPaddle constructor. So it uses the x and y from the original cPaddle class.
@sitimariam3312
@sitimariam3312 9 жыл бұрын
this pong game use 2D array??
@NVitanovic
@NVitanovic 9 жыл бұрын
+siti mariam No arrays.
@adindarizkyfebiyanto6290
@adindarizkyfebiyanto6290 6 жыл бұрын
thanks bro
@usama57926
@usama57926 6 жыл бұрын
great
@LuRybz
@LuRybz 8 жыл бұрын
Code: pastebin.com/EVsxyZbi
@unamattina6023
@unamattina6023 4 жыл бұрын
I don't know that will anyone see this but WHY DID HE SAY INCREASE Y BUT HE DECREASE Y??? WHY HE DIDN'T Y++ FOR UP MOVEMENTS?????????????
@uovo
@uovo 4 жыл бұрын
because its using the same way pixel on your screen appear, coordinate [0,0] is equal to the first pixel of the screen which is in the top left, so y[0] is the top and if you add you're actually going down, i dont know if i explained good enough.
@evergreensyduction1944
@evergreensyduction1944 7 жыл бұрын
BAD!
C++ Tutorial 21 - Simple Pong Game (Part 3)
26:15
NVitanovic
Рет қаралды 102 М.
Pong Clone in C++ // Code Review
34:31
The Cherno
Рет қаралды 96 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Integrals // Calculus through Minecraft
10:20
Gragbuilds
Рет қаралды 3 М.
C++ Tutorial 21 - Simple Pong Game (Part 1)
15:27
NVitanovic
Рет қаралды 198 М.
Linus Torvalds thinks Java is a horrible language
1:17
TFiR
Рет қаралды 1,1 МЛН
C++ Tutorial 15 - Making simple Tic Tac Toe game (Part 1)
23:46
NVitanovic
Рет қаралды 289 М.
🔥Pong Game with C++ and Raylib - Beginner Tutorial
42:30
Programming With Nick
Рет қаралды 68 М.
C++ Tutorial 22 - Simple Hangman Game (Part 3)
17:40
NVitanovic
Рет қаралды 32 М.