The Python Oracle

How to make entities take damage with color collision in pygame?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Magic Ocean Looping

--

Chapters
00:00 Question
03:16 Accepted answer (Score 1)
05:50 Thank you

--

Full question
https://stackoverflow.com/questions/6564...

Accepted answer links:
[pygame.sprite.Sprite]: https://www.pygame.org/docs/ref/sprite.h...
[pygame.sprite.Group]: https://www.pygame.org/docs/ref/sprite.h...
[spritecollide]: https://www.pygame.org/docs/ref/sprite.h...
[spritecollide]: https://www.pygame.org/docs/ref/sprite.h...
[image]: https://i.stack.imgur.com/ObuMK.gif

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #pygame #collisiondetection #pygamesurface

#avk47