Pygame (Python Game Development) Tutorial - 60 - Moving the Turret Part 2

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

This guy is deff an awesome python teacher.  More explanation and in depth of why would be helpful.

eddwinnas
Автор

Here's some tips for you guys in the future(keep in mind my main language is Java, not Python):
1. Try to make a utilities class or something, that way you can keep your collision boxes and drawing things neater.
2. Use multiple files!
3. Use more images, there's no shame in doing that.
4. The more you draw rectangles and such in the raw code, the less neat it looks.

Lad_Duck
Автор

I've written this block of code inside the tank() function instead of solving the problem externally. I think that actually makes more sense, atleast for me.
if turPos > 8:
turPos = 8
elif turPos < 0:
turPos = 0

yassir
Автор

I was wondering if you could possibly go a bit more in depth? All I'm really doing is copying what you at least for me, I'm not really learning why we do this, or why we do that, etc. It'd mean a lot to me.

imTrickShotter
visit shbcf.ru