pygame
"no matching architecture in universal wrapper" when importing pygame
I\'m on a MacBook Pro running Snow 开发者_JS百科Leopard 10.6.8 and Python 2.7.2. I went on the pygame website, downloaded and installed all the required frameworks and programs, compiled and installed[详细]
2023-04-13 09:07 分类:问答"List index out of range" error in Python
I am making a simple Checkers aga开发者_如何学编程in. And, in order to keep track of all the locations for the checkers to move to, I created a list to add all of the locations.[详细]
2023-04-12 23:58 分类:问答How can I play an mp3 with pygame?
import pygame file = \'some.mp3\' pygame.init() pygame.mixer.init() pygame.mixer.music.load(file) pygame.mixer.music.play()[详细]
2023-04-12 10:06 分类:问答Pygame quick pixel reading
Alright, hopefully someone can help me with this because I\'m at a loss here. I\'m working on a game in python that uses the camera as the main controller. To play the game, you move a simple light a[详细]
2023-04-12 08:30 分类:问答pygame Collision Detection for a Cannonball
For the past week I have been working on a Cannon Game for class. Our current iteration is to add a target and collision detection. From my understanding pygame.draw functions return Rect objects. I a[详细]
2023-04-12 01:26 分类:问答Moving sprites with key events in pygame [duplicate]
This question already has answers here: How can I make a sprite move when key is held down (6 answers) Closed 3 months ago.[详细]
2023-04-11 16:16 分类:问答Where can I find and install the dependencies for pygame?
I am relatively new to linux and am trying to install the pygame dev environment for python. When I run the setup.py it says that I need to install the following dependencies, one of which I found and[详细]
2023-04-10 09:50 分类:问答Pygame not working with sockets
I created one program with pygame, imageGrab and sockets but it doesn\'t work. It should take a printscreen of the server with ImageGrab, convert it to a string, and send it to the client.However, the[详细]
2023-04-09 15:58 分类:问答Installing Pygame and Pymunk on Mac OS X 10.6
I have not been able to install Pymunk and Pygame for the same version of python. I have tried binaries, source installs, fink, and Macports, for system python, python 2.6, and python 2.7, with 32 and[详细]
2023-04-09 10:28 分类:问答python/pygame, pass input from a class to another class
there is a way to pass a value or a variable from a class to another class without having to pass through 开发者_如何学C the main function[详细]
2023-04-09 07:46 分类:问答