[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
Pygame (Python Game Development) Tutorial – 54 – Tank Body
by
Tags:
Comments
6 responses to “Pygame (Python Game Development) Tutorial – 54 – Tank Body”
-
On this line:
pygame.draw.rect(gameDisplay, black, (x – tankHeight, y, tankWidth, tankHeight))
why are you minusing the x co-ordinate with tankheight?
-
The problem around 1:50, is because of how integer division is handled in python.
python 2.x => 1/2 = 0, 20/2 = 10
python 3.x => 1/2 = 0.5, 20/2 = 10.0
You are using python 3.x -
I have looked on the net for such things and I must say that these are the best tutorials for Pygame I have ever seen! The only thing I could want more is blitting gifs or maybe a PySDL . I think however, that these are out of the scope of this series. Either way, I will keep watching this series!
-
I'm loving these videos, it has become part of my daily routine to work on these games as the videos come out.
-
Thank you for doing what you do. These videos are invaluable to me.
-
Ngggh, didn't think you'd go that far, now I do have to watch your tutorials anyway…
Leave a Reply