Pygame Space Invaders Beginner Tutorial in Python - PART 6 | Pixel Perfect Collision Using Masks

preview_player
Показать описание
In this Python tutorial I code Space Invaders using the PyGame module. I'm going to pixel perfect collision to the spaceship using masks

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

Thank you so much for this project!!! you are amazing!

zaiiii.n
Автор

Thank you again! I continued as you said, and I started to understand what, where and why it was written xD

volodyagorov
Автор

Hi Russ! But I'm trying to make multiple enemies come down the screen But I only could make one comes down due to both rows and cols variables are 1. But if I try to make multiple enemies come down on the screen in random positions, how will be able to do that?
Thanks Russ!😀

Dailydoseofbacon
Автор

Hola saludos desde Colombia tus videos son geniales e aprendido demasiado !

masterfrozz
Автор

Hi Russ - we were able to comment out "self.mask = and it still looks like the mask is working. We still have the extra argument in the spritecollide function. Any idea why? Is pygame creating the mask behind the scenes?

daveperry
Автор

this was exactly the game that I wanted to make and finally I undestand why before nothing was working! I have only one issue with the spaceship bullet. When at minute 3:10 you explain to add a self.kill() to destroy the bullet when it collide with the alien on my code it doesn't destroy it and keep going like I didn't write that line of code. Perhaps an update on pygame?

matteoscalas
Автор

Hi could you please upload the code only for this video please because i am getting a strange error thanks

musaratskitchen
Автор

i have this error;AttributeError: 'Alien_Bullets' object has no attribute 'get_rect'

PhuongNguyen-xssn
join shbcf.ru