Pygame Breakout Beginner Tutorial in Python - PART 1 | Initial Setup

preview_player
Показать описание
In this Python tutorial I code Breakout using the PyGame module. I'm going to cover the initial setup of the game loop and the wall of blocks.

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

Your Pygame OOP Tutorial is very good. I learn now the way of OOP

thomaspfaff
Автор

man you are amazing !
keep creating this amazing game, there are so good to understand the basic of python in the right way .

minasidry
Автор

pft the 2 people who disliked just couldnt comprehend the big brain energy lol

CaffeinatedBorb
Автор

guys make sure you have 2 under-scores for the init. As in __init__ and not _init_ . This was a bug that took me a long time to find so hope it is helpful :)

shalankaamarasekera
Автор

how to create the game using sprites for the bircks?

fernandoazpurua
Автор

line 61, in draw_wall
block.col = blockGreen
AttributeError: 'list' object has no attribute 'col'
Plzz help I am a begginer

yoyo
Автор

its running an error on line 28:
def_init_(self)

siddharthjoshi
Автор

How would you create the game by using the turtle module

wajeehrizvi
Автор

Why do you put parenthesis around block[0] in the 'draw border' line but not in the 'draw blocks' line?(70, 71)
pygame.draw.rect(screen, block_col, block[0]) # draw each block
pygame.draw.rect(screen, bg, (block[0]), 2) # draw a border around each block

Great tutorial, heading to part 2!

haleybaron
Автор

Hello, can i ask about how to install this game to exe? Thank you

CWX
Автор

for some reason it says I have to define rows,
for row in range(rows):

on this line and I defined it as
rows: 8

do you have an Ida of why it might not be working

fernandoazpurua