Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
2 answers
992 views

I'm making a Pygame of, basically, "Breakout". I'm using collisions, and want a simple way to have different bounce effects of the different sides of one rectangle. What I currently have for the ball-...
user avatar
1 vote
2 answers
3k views

I have coded an animation (in python) for a beach ball to bounce around a screen. I now wish to add a second ball to the window, and when the two collide for them to bounce off each other. So far, ...
user avatar
1 vote
3 answers
9k views

I've just started learning how to use pygame yesterday. I was read this one book that was super helpful and followed all its tutorials and examples and stuff. I wanted to try making a really simple ...
RamonLion's user avatar
1 vote
2 answers
472 views

import mymodule, ctypes #import pygame foo = ctypes.cdll.MyDll.foo print 'success' if i uncomment the import pygame this fails with WindowsError: [Errno 182] The operating system cannot load %1. ...
Dustin Getz's user avatar
3 votes
4 answers
3k views

I have been messing around with pygame and python and I want to be able to call a function when an attribute of my class has changed. My current solution being: class ExampleClass(parentClass): ...
tomeedee's user avatar
  • 1,259
2 votes
4 answers
4k views

I'm using pygame to draw a line between two arbitrary points. I also want to append arrows at the end of the lines that face outward in the directions the line is traveling. It's simple enough to ...
directedition's user avatar
15 votes
2 answers
12k views

Surface.blit has a new parameter in 1.8: blend. The following values are defined: BLEND_ADD BLEND_SUB BLEND_MULT BLEND_MIN BLEND_MAX BLEND_RGBA_ADD BLEND_RGBA_SUB BLEND_RGBA_MULT BLEND_RGBA_MIN ...
Aaron Digulla's user avatar
2 votes
2 answers
537 views

I'm building a relatively simple programme to test collision detection, it's all working fine at the moment except one thing, I'm trying to make the background colour change randomly, the only issue ...
user33061's user avatar
  • 1,905
16 votes
2 answers
17k views

Is it possible to get a fully transparent window in Pygame (see the desktop through it)? I've found how to create a window without a frame, but there doesn't seem to be any obvious way to make it ...
One Crayon's user avatar
  • 19.3k
0 votes
4 answers
285 views

I have one class that needs to grab an attribute that is set in another. It's not a standard data type though. Here's the code; class graphics: def __init__(self, Fullscreen = False, Width = 640, ...
Stephen Belanger's user avatar
4 votes
2 answers
4k views

I am trying to create an application like the one here: http://www.eigenfaces.com/ Basically lots of overlapping circles drawn with pygame. I cannot figure out how the blend the circles to make them ...
user avatar
59 votes
3 answers
64k views

Can someone give me some example code that creates a surface with a transparent background in pygame?
Paul D. Eden's user avatar
  • 20.7k
18 votes
9 answers
29k views

If I want to move to C++ and SDL in the future, is Python and pygame a good way to learn SDL?
user avatar
13 votes
7 answers
6k views

What are some toolkits for developing 2D games in Python? An option that I have heard of is Pygame, but is there anything that has more range to do more things? What are the good and bad parts about ...
David Locke's user avatar
  • 18.1k

1
357 358 359 360
361