Pygame Breakout Beginner Tutorial in Python - PART 5 | Finishing Touches

preview_player
Показать описание
In this Python tutorial I code Breakout using the PyGame module. I'm going to cover the final steps of the game by adding player feedback and text instructions.

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

Hi, I recentaly found your channel. It is very nice game - remembering old days. Thanks. Few questions about applying some new features like below (this may increase complexity)
Question: If we increase the canvas size to window's size, may it have performance issue?
New features - either as some time passes or user breaks some no of bricks
1. Increasing ball speed
2: Splitting one ball to 2|3 balls - depends on canvas dimentions - and also managing the speed

ashvinsanandia
Автор

Hello sir! I just discovered your channel, it's really amazing! Thanks for the hard work! When I was young I played Atari. And there were some features like if we hit a brick placed deeper in the wall, the ball goes faster according to how deep is the brick. Also there were some randomly"magic" bricks that dropped bonuses down, and if you catch these items with the paddle, you can have your paddle size increased for a while, or move speed or else. I'm very interested to know about it if you want :)

flosrv
Автор

I noticed that the ball speed_x could be slowed down all the way to 0, which makes the game very easy. This is a quick 'fix' that can be added under the loop where the ball speed is limited to speed_max:

elif self.speed_x == 0:
self.speed_x += player_paddle.direction

martinjensen
Автор

I get an error when the ball collides:

line 80, in draw_wall
pygame.draw.rect(screen, block_col, block[0])
TypeError: rect argument is invalid

JuggernautMusic
Автор

I know this video is super old, but I recently ran into your channel and saw this series. Is there a way to add multiple balls with different strengths?

norigaya
Автор

Hello, can you upload there all code for this game?

aleksanderjanic
Автор

Hey!!. Do you have any ideas in how i could add a main menu and lives to this game?

rvdiumgaming