Learn Godot by creating Pong

preview_player
Показать описание
An practical introduction to the Godot Game Engine by creating a simple Pong game. I will be using the python-like GDScript for the project, but you don't need any coding knowledge to follow along.

Timestamps:
0:00:00 Intro
0:02:26 Intro to Godot
0:13:37 The player character
0:25:20 Moving the player
0:39:12 Setting up the level
0:50:09 Creating the opponent
0:59:01 Creating the ball
1:09:53 Making the ball bounce
1:15:14 Opponent Ai
1:24:02 Ball reset
1:32:43 Adding a score
1:41:36 Countdown
2:01:03 Final details

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

Take this into consideration while following the tutorial in Godot4:
1. Kinematicbody2d is now characterbody2d
2. Move_and_slide() doesn´t work (because is build in or something), use move_and_collide() instead and change the speed to a smaller number
3. "Invalid get index 'normal' (on base: 'KinematicCollision2D)" to fix this change .normal to .get_normal() and the ball will bounce
4. .find_node() is not going to work, use .get_node() instead (also change the speed to a smaller number like 5)

Jatniel-Snchz
Автор

This feels like it is premium like I paid $20 for it but it's actually free. You are amazing and your tutorials are extremely good. Keep it up!

nogoodgod
Автор

I wasted 4 hours for a pong before I came here. And you made it golden in only 2 hours. Such easy and clean within this short time. Hats off !!

XtrimUniverse
Автор

Important Note: if you're using Godot 4 then you should now that Kinematicbody2d has been changed to Characterbody2d.

MadaraUchiha-bthg
Автор

This tutorial/course is so great. The explanations are so clean and also the visuals too. Almost everyone said it feels like a great Godot course and it really does. Pls make more Godot course-like tutorials like this, it really helps me to learn Godot and GDscript as a Beginner.

johnbenjaminvistan
Автор

This video is amazing. I'm a Unity developer but having some trouble understanding Godot's workflow, this video explained it very well. Thanks again!

καλαμ
Автор

This needs to be redone for Godot 4, I went through loops trying to figure out enemy ai!

jestjames
Автор

I've wasted so much time and money on GODOT tutorials that start off strong and then hit a huge off-putting snag halfway through. "CLEAR CODE" is a perfect name for your channel! As a game design instructor trying to curate the perfect tutorial playlists, I feel I've struck gold :) I'd be a big fan of your PYGAME tutorials too if it had an IDE with graphic layout editor and easy install like GODOT does.

sjacobson
Автор

You are the man who taught me Pygame, all for free with AMAZING quality. I would have had to learn Pygame and the basics of Godot for $50. Thank you for producing these amazing tutorials for free, keep it up!

sirpickle
Автор

why is this dude so good at tutorials, not just this one, literally all of his tutorials are like this

North_annex
Автор

Thanks for the video. Love the clean and clarity aspect of it. 🥰

pablo
Автор

Despite on that it's godot 3.0 tutorial, this video actually helps me even on godot 4.2

thanks and sorry for bad English

LavenderRumineko
Автор

46:00 You could set up one static body. Name it Walls, and add 2 collision shapes to it, naming them CollisionTop and CollisionBottom.

lufog
Автор

The animations and the annotations on the screen really helps us to learn!
Thanks for your effort!

aditgaur
Автор

For anyone who is confused why only the opponent is making Score but the player is not. heres the solution to fix it.
Hey, so the problem in the code is that only the opponent score is updated, not the player score. So even if the player scores a goal, the opponent would get the point.
To fix it, just remove opponent_score += 1 from score_achieved() and add it to on_right_body_entered() and add player_score += 1 to on_left_body_entered() and then you should be good :)

phoxpsy
Автор

I think that the coordinate system in game engines is like this, because if we analyze CRT TV, the cathode rays start from the upper left corner and sweep row by row from left to right, when a row ends it goes down a scanline below and repeats the process, when it reaches the end in the lower right corner, restarts. As the Atari 2600 worked directly with this, it seems natural to choose the coordinate origin in the upper left corner and the positive y axis downwards. In 1:07:11, this is modular aritmetic, basically the clock, 15 = 3 mod (12), 15 is 3 modulo 12, if you pick the number 15 and divides by 12, the remainder is 3. If you pick any integer number a -> a = n mod (2) -> n in {0, 1}, because if a is divisible by 2, your remainder is 0, otherwise is 1.

aulasdematematicaefisica
Автор

I just finished the course and WOW!! This has got to be the BEST way to learn godot 3. Thank you so much man. I almost quit game dev because I just couldn't learn but you actually made it simple enough to where I could understand and follow.

I actually at one point tried a course that was from a real game dev teacher and I got to say, You LEGIT teach better than an actual SCHOOL TEACHER!!

Thank you so much. You are the best!

TheName_J
Автор

Amazing, I did it. your instructions were clear and easy to follow, with the comments section for updated changes, and chat gpt to debug my codes, this was a great intro to using godot. I did some html, php and java 10+ years ago and have forgotten it all, so I was basically a noob and this tutorial turned me into pretty much a God, I am now a creator of worlds. Thank You

supernalbjj
Автор

You are a miracle Sir in teaching.... Love the way you teach.... Stay Blessed❤❤❤❤❤❤

kingshahzad
Автор

Very high quality stuff! Glad i stumbled across this as im interested in both python and godot. Perfect!

Juice_-jtqv