Ultimate Python Turtle Graphics Tutorial: Space Arena 12 (Player/Enemy Collisions)

preview_player
Показать описание


NEED HELP?

❤️❤️ SHOW SOME LOVE AND SUPPORT THE CHANNEL ❤️❤️

Click Join and Become a Channel Member Today!
Channel members can get preferential comment replies, early access to new content, members only live streams, and access to my private Discord.

Amazon Affiliate Links

Other Affiliate Links

LINKS

LEARN MORE PYTHON

LEARN MORE JAVA

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

Thank you, Sarah! That bounce method is simple yet elegant and super fun! I'm hoping in the next tutorials the enemies bounce off each other too, but I can now make them do that myself anyway! So cool to learn yet another new feature! Oh yeah... thank you, Christian, as well... I guess. :D

ethansofiadada
Автор

Thanks for video!!
It looks better

def bounce(self, other):
self.dx, other.dx = other.dx, self.dx
self.dy, other.dy = other.dy, self.dy

АртемШестаков-дв
Автор

for people who want to know about the concise way
def bounce(self, other):
self.dx, self.dy, other.dx, other.dy = other.dx, other.dy, self.dx, self.dy

Bryan-bhcy
Автор

love your way of coding .
also want to learn more .
i want to become a programer in
INDIA

robinkr
Автор

can u make it so that when u get close to the edge of the border it expands in the direction ur heading like infinte terrain generation? u dont have to its just an idea

kaylianpanchoo
Автор

Hold on wait, you have a class. Is it like online or in person

Prostylin
Автор

Hi I am having an error can you help me please.
def reset(self):
self.x = 0
self.y = 0
self.health = self.max-health
self.heading = 90
self.dx = 0
self.dy = 0

My Error is that max health is not defined. I checked everything and matched if with yours but its not working. Help me please.

generator
Автор

Hello Christian? Would it be correct if I would write self.dx, self.dy = other.dx, other.dy in bounce method in Python. I think that is correct Python syntax?

eccololo
Автор

Have u noticed all the sprites dy is the same lol bc 2 videos ago when u wrote game.start_level() u accidentally put dy = random.randint(-2, -2)

nuklearboysymbiote
Автор

i have made it so the ram damage and missile damage is random! import random is good!

pythonicperson
join shbcf.ru