Learn Python by Building Five Games - Full Course

preview_player
Показать описание
Learn Python in this full tutorial course for beginners. This course takes a project-based approach. We have collected five great Python game tutorials together so you can learn Python while building five games. If you learn best by doing, this is the course for you.

⭐️ Course Contents ⭐️

⌨️ (0:01:18) Pong

⌨️ (0:45:36) Snake

⌨️ (1:34:57) Connect Four
🔗 Tutorial from Keith Galli. Channel: @KeithGalli

⌨️ (2:42:36) Tetris

⌨️ (4:22:12) Online Multiplayer Game

--

Рекомендации по теме
Комментарии
Автор

I am a brand new coder, with no expirience. Finding an actually helpful video has been really difficult, but this one helped out more than I can explain. Thank you so much, just the first program about pong showed me more about game design and code than I ever would have though I would know

nintendonerd
Автор

OK but why are you staring directly at my soul?

meflea
Автор

The first tutorial is the best!
the teacher explains EVERYTHING and advices on the little details we have to focus on.

techbot
Автор

This was the most straight-forward Python tutorials I have seen so far. The people are really good at coding and explain things really well! I will definetly recommend this channel to my friend who also wants to learn Python. Thanks again for teaching me and other people Python!

sumitpaul
Автор

Imagine pressing space bar 4 times


this post was made by TAB gang

qqqalo
Автор

Instructions unclear accidentally made Gta 7

bijayanath
Автор

The first game was sooo nice to remake myself for practice!! Had tons of fun!

phoenixyt
Автор

I created my first app by doing what he did, didn't do nothing by myself but it's the best way of learning because the next time I'll at least have the concept. Learning practically is the best way.

chenko
Автор

just finished Pong and added an extra feature, when the ball hits the paddle it increases speed by multiplying dx and dy by 1.03, it gives a really smooth increase in difficulty as the ball bounces and makes the game more interesting.

to apply this simply add "ball.dx *= 1.03" and "ball.dy *= 1.03" at the end of both paddle collision functions.

ps. thanks free code camp for helping me find easier to interpret information on how to code, if I didn't see this and python for beginners or something like it, I would still be spending my nights confused or playing videogames instead of learning something useful.

thefierceninja
Автор

26:53
on line 95, if you find the line difficult you can change the line in simpler to understand like:
if ball.xcor() > 350 and (paddle_b.ycor() + 40 > ball.ycor() > paddle_b.ycor() - 40):


In the video on line 95, after 'and', the comparison (ball.ycor() < paddle_b.ycor() + 40 and ball.ycor() > paddle_b.ycor() - 40) is same as (paddle_b.ycor() + 40 > ball.ycor() > paddle_b.ycor() - 40), but the 2nd one is easy to read/understand.


Likewise, at 29:15, you can change (ball.xcor() > 340 and ball.xcor() < 350) to (340 < ball.xcor() < 350)
so the overall command would look like,
if (340 < ball.xcor() < 350) and (paddle_b.ycor() + 40 > ball.ycor() > paddle_b.ycor() - 40):

pranishkhadgi
Автор

Just wanted to say thanks to all those involved in creating, editing, and posting this. Tremendously helpful to us new coders. Liked and subscribed!

jusxehp
Автор

Timestamp:

1:20 Pong
45:38 Snake
1:35:05 Connect four
2:42:46 Tetris
4:22:28 Multiplayer Game

MisterSocke
Автор

This is an EXCELLENT test to see if you are “learn by doing” type of learner. New programmers can just dive in. Quite a bit of it will stick, even if it doesn’t make much sense right now.

chriss
Автор

In the Pong game there is a small check you forgot to do
With this program the paddles can go out of bounds
This gets fixed with a small if (I tested diff values and 250 is the one that better fits for me)
def paddle_a_up():
y = paddle_a.ycor()
if(y < 250):
y += 20
paddle_a.sety(y)

(y > -250 for paddle_a_down and paddle_b_down)
 Still a 10/10 video :D

mikaiwakura
Автор

At 9:37 you talk about the importance of testing as you go. This is SO true! At one point I accidentally put paddles after main loop, and it broke everything haha. Took me five minutes to realize what I'd done, but I learned from it, so it worked out :)

ScaerieTale
Автор

I am already far less frustrated with you than I was with another video from the same channel. Good pacing. Good explanation. And you aren't jumping all over the place in a way that is confusing. Thank you!

Formallyknownashandle
Автор

If you want to force the ball to move at a constant speed/frame rate in the PONG game, you may add a time.sleep(1/60) command in the while True: loop, and just play with the ball velocity if you need it to move faster or slower. Great video!

JohnParavantis
Автор

who's making a game in lockdown
damn!
its me.

laserasia
Автор

The first tutorial for Pong was really well done and easy to understand! Great job Christian!

Unfortunately, the second tutorial for Snake was not nearly as easy to follow or understand. I was really disappointed after getting at least halfway through and then found out that it wasn't working. (Right around 1:18 in the video.) I assumed I mistyped something and went through every piece of code. What I had typed was identical. Then, I tried going to the source code link and cutting and pasting pieces over what I had typed to see if I could find my error. That still didn't work. Finally, I just cut and pasted the entire source code over mine and it still doesn't work. I don't know if I should give the benefit of the doubt and assume that this worked in an earlier version of Python since the tutorial was from a few years ago. The error was:
for key in keys:
TypeError: Iterating over key states is not supported
I have to admit, I wouldn't recommend this tutorial based on not only the poor explanations, but the fact that it doesn't seem to work as written. This is a course for beginners and I unfortunately don't know that I can troubleshoot this issue. Frustrating.

Again, not to be all negative --- the first tutorial was great!!

New information: I searched the error and found someone who seemed to have the same problem with this tutorial. They recommended removing "for key in keys:" completely from the move method in the snake class. This seems to have worked. Cautiously continuing this tutorial...but concerned hahaha

jasonfelton
Автор

You can smooth the movement of the ball in the pong tutorial with wn.tracer(1), but it will slow the ball animation down greatly.

bwknowles