Pytris is a Tetris clone, though coded from scratch using Python 2.7 and Pygame (and many other freeware tools). Pytris can ONLY be played using a gamepad - see FAQ for details. The Game should run on every Windows PC and every Apple Mac. Mac Users must have Pygame installed and play the Game from source. The Game features a 1 Player mode as well as a 2 Player VS mode.
- Home Page
Pygame.org account Comments
josmiley 2014-07-21 08:34:43
Traceback (most recent call last):
File "pytris.py", line 33, in <module>
from constants import *
File "/home/greg/Bureau/Pytris/constants.py", line 52, in <module>
GAMEPADS = gamepads.get_gamepads()
File "/home/greg/Bureau/Pytris/core/gamepads.py", line 97, in get_gamepads
pad = Gamepad(nr)
File "/home/greg/Bureau/Pytris/core/gamepads.py", line 227, in __init__
File "/home/greg/Bureau/Pytris/core/gamepads.py", line 244, in init_buttons
for button_name, nr in button_mapper[self.typ].iteritems():
AttributeError: Gamepad instance has no attribute 'typ'
Don Polettone 2014-07-21 13:32:00
I have just implemented that the game prints the controllers name if unknown type - you may download the new version and test again, letting me know what it says, thank you! (Version is still 1.26; uploaded the new File there).
Cheers, Don Polettone
josmiley 2014-07-21 22:16:18
Gamepad Type unknown: SAITEK P220
Don Polettone 2014-07-21 22:45:33
thanks a lot again for testing josmiley! Actually I did not plan to support a controller like this and it's not so easy to map the buttons if I don't own it myself, but I tried to fix it and it MIGHT work... feel free to download again and give it a try. Please post what IDLE says about it now since I've included some new print statements about the controllers, thank you!
Solipsist Physicist 2015-09-05 00:16:25
Doesn't work with Xbox 360 for Windows controller.
Don Polettone 2015-09-17 12:58:56
Hey Solipsist Physicist. I am truly sorry you couldn't play the game using an Xbox 360 pad. I will try to get such a controller and make the game work with it, too. Yet I don't know when this is gonna happen though; haven't been programming for some time now... But this is a great comment and very helpful, thank you! I'll be fixing that, promised.