Python Pygame Tutorial - More Platforms

preview_player
Показать описание
Thank you for watching my video and I really hope you found something useful.

In this episode as promised I'm looking at creating
multiple platforms so the player class we created
in the previous video has something to interact with.

Or if you'd like to download the zipped files follow this link

To download the script for this episode click this link.

and for the script with the player class click this link.

... and if you have any comments then feel free but bear in mind I don't pretend to be an expert, I just enjoying using Python and Pygame.

Anthony

Downloads:

Documents:

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

Are there any commercial games made using pygame?

kamalnayan
Автор

Sorry for all the questions aahah, really liking these tutorials. I'm just having a small problem with my code. In my platforms class, I keep getting an error when I try to run the program. The error I get is: "type object 'p' has no attribute 'p.x1". This error is a result of the code in the platforms class when I try and draw the image of my platform to the surface. And if I try and just put in a static number for p.x1 it gives me the same error for p.y1, p.x2. and p.y2. For some reason it doesn't seem to recognize 'p' as an instance of the platform class. Any help would be sweet!

andrewschroeder