
Python and Pygame Tutorial - Build Tetris! Full GameDev Course
video description
Date: 2022-03-14
Related videos
Comments and reviews: 8
Toni
It seems this tutorial is doing a good job in motivating people to try programming. Here are some tips that were missing from the tutorial. Run the program -very- often and do -very- small changes to make sure your code keeps working. It is a good practice to avoid -magic values- in your code. If you use (0, 0, 0) to represent black, write black = (0, 0, 0). If your play area width on screen is game board width times block size in pixels, write play_area_width_px = game_board_width - block_size_px. Also, in this tutorial we are inventing new rules for Tetris as we go. Since we are trying reimplementing an existing game we'd be better off following some existing specification. For example, we might decide to implement the -Standard Rotation System- that specifies one specific way of rotating the blocks.
reply
It seems this tutorial is doing a good job in motivating people to try programming. Here are some tips that were missing from the tutorial. Run the program -very- often and do -very- small changes to make sure your code keeps working. It is a good practice to avoid -magic values- in your code. If you use (0, 0, 0) to represent black, write black = (0, 0, 0). If your play area width on screen is game board width times block size in pixels, write play_area_width_px = game_board_width - block_size_px. Also, in this tutorial we are inventing new rules for Tetris as we go. Since we are trying reimplementing an existing game we'd be better off following some existing specification. For example, we might decide to implement the -Standard Rotation System- that specifies one specific way of rotating the blocks.
reply
tim
Awesome video. Thanks was a big help. even though there was some errors i was able to cross reference the full code you provided and figure out where to make small changes to get the game to run. The small errors are a good way to learn whats happening and what needs to change, and where. found it vary helpfull in learning rather then just coping code. Thanks keep up the videos
reply
Awesome video. Thanks was a big help. even though there was some errors i was able to cross reference the full code you provided and figure out where to make small changes to get the game to run. The small errors are a good way to learn whats happening and what needs to change, and where. found it vary helpfull in learning rather then just coping code. Thanks keep up the videos
reply
Ho-ng
I think it would be better if you code bit by bit then show the result, then add/fix and explain along the way.
For example,
Step 1 create the grid
Step 2 Add the pieces
-Create class Piece
- ...
...
reply
I think it would be better if you code bit by bit then show the result, then add/fix and explain along the way.
For example,
Step 1 create the grid
Step 2 Add the pieces
-Create class Piece
- ...
...
reply
The
The full code link isn't exactly the full code of what he did, like the score and high score code isn't in it and a lots of stuff isn't in it too. And the you lost code doesn't work, it doesn't show you lost when I lost.
reply
The full code link isn't exactly the full code of what he did, like the score and high score code isn't in it and a lots of stuff isn't in it too. And the you lost code doesn't work, it doesn't show you lost when I lost.
reply
Nick
Great video, i'm at the end and the shape renders only as one block but when it's down you see de correct shape, i'm going over de code for 2 hours but can't find whats wrong, does anyone know what is wrong?
reply
Great video, i'm at the end and the shape renders only as one block but when it's down you see de correct shape, i'm going over de code for 2 hours but can't find whats wrong, does anyone know what is wrong?
reply
Kanae
hey im at 54:00 and I've gotten alot of errors which I can't figure out why one of them is
def get_shape():
return Piece(5, 0, random.choice(sahpes))
it says that Piece() takes no arguments
reply
hey im at 54:00 and I've gotten alot of errors which I can't figure out why one of them is
def get_shape():
return Piece(5, 0, random.choice(sahpes))
it says that Piece() takes no arguments
reply
Abhishek
Ur teaching process is wrong ... After every code of line u should check ... By output.. If any single error come in codding how we can fix that fault .,.,.
but u r project is very good ...
reply
Ur teaching process is wrong ... After every code of line u should check ... By output.. If any single error come in codding how we can fix that fault .,.,.
but u r project is very good ...
reply
Arturo
FOR MAC USERS!:
make sure you are using pip3 to install pygame, use a virtual environment, run the code with python3 (I'm using visual code studio instead of pycharm)
reply
FOR MAC USERS!:
make sure you are using pip3 to install pygame, use a virtual environment, run the code with python3 (I'm using visual code studio instead of pycharm)
reply
Add a review, comment
Other channel videos















