pygame
How can I have varied KMOD status' for a single key in Pygame?
Here\'s what I\'ve got so far: for event in pygame.event.get(): if event.type == KEYDOWN: if event.key == K_LEFT:[详细]
2023-03-13 03:36 分类:问答compiling a python program that uses pygame into an executable
I wanted to compile my python program that uses pygame into an executable using py2exe bu开发者_如何学Got I\'m experiencing some problems.I run the script in the windows command line and it seems to w[详细]
2023-03-13 02:42 分类:问答continue loop if arrow keys are not pressed in pygame
I\'m trying create this function such that if any key besides any of the arrow keys are pressed, the loop continues until an arrow key is 开发者_JAVA技巧pressed.The program crashes every time and does[详细]
2023-03-13 02:14 分类:问答Draw a transparent rectangles and polygons in pygame
How can I draw a rectangle that has a color with an alpha? I have: w开发者_开发技巧indowSurface = pygame.display.set_mode((1000, 750), pygame.DOUBLEBUF)[详细]
2023-03-12 12:25 分类:问答How can I crop an image with Pygame?
I am learning pygame and want a graphic for a button with the three states: normal, hover, and pressed. I have an image like this one ...[详细]
2023-03-11 14:01 分类:问答Python A* algorithm not searching appropriately
So I\'m trying to write a Python implementation of the A* algorithm.My algorithm finds the path to the target without trouble, but when I get the program to visualize the closed and open lists, I noti[详细]
2023-03-10 17:28 分类:问答Play .swf with Python/Pygame/OcempGUI
I\'m looking at switching programming languages due to some unavoidable roadblocks. However, before I dedicate myself to a whole new language, I need to know if it is possible for me to play .swf or .[详细]
2023-03-10 03:05 分类:问答Why is my basic PyGame module so slow?
I\'ve planning on writing a code in Pygame and I was just getting started with the basics and found that the executing code was really slow. When I press a key it takes a while for it to print it in t[详细]
2023-03-09 06:51 分类:问答Using Python 3.1 and 2.5 together
I\'m currently working the final project for my pro开发者_C百科gramming class. We\'re writing it in Python 3.1, and I\'m doing the GUI. My team\'s leader wants to do the whole project in 3.1, but most[详细]
2023-03-06 17:54 分类:问答My first game: Python using pygame vs. Java using lwjgl?
My game would be a simple 2D tower defense type game. It should have some animations and sounds. I\'ve only learned Java so this开发者_如何学Go seems like a huge plus for choosing that option. But I\'[详细]
2023-03-06 16:10 分类:问答