Game development software based on the Python programming language.

learn more… | top users | synonyms

7
votes
2answers
3k views

Increase blitting speed?

I'm working on a 2d sidescroller in PyGame. For each map we use one texture (this is the actual size of the texture): Then we load the image with this code: sprite = ...
0
votes
1answer
509 views

python for game development [duplicate]

Possible Duplicate: Famous games written in Python Is python any good for game development? Can I have some examples of great indie python games. So I can have an idea what it's capable ...
3
votes
4answers
249 views

What can be a game-play element in a game with Shakespeare's plays as the main theme?

I was thinking of learning about making games, so I thought of an idea about making a game on a play, since the content is already there. I actually found well parsed XMLs of Shakespeare's plays. I ...
1
vote
3answers
528 views

Basic developing in python? [closed]

I have basic experience in Python, and I want to know which is the best library to use in development. I was looking originally at Pygame but found it a bit lacking in tutorials. Are there any good ...
1
vote
2answers
316 views

Secondary monitor freezes game window

I was bored and dragging my game window around the screen and noticed something interesting. When I drag my game window over to my secondary monitor, the screen updating just completely freezes. Is ...
4
votes
1answer
831 views

Issue with implemented Minesweeper algorithm

So I'm attempting to learn Python by way of Minesweeper. I've got experience with SDL, so I figured playing around with PyGame sounded like a fun way to learn the syntax of the language. Anywho, I'm ...
5
votes
1answer
723 views

Separating Sprites from Models with PyGame

So I'm trying to code a game using the Model-View-Controller pattern, and therefore have a need to separate the models for my game objects with their sprite representations. The problem that I'm ...
0
votes
1answer
436 views

Batch blit vs separate blit

A tutorial that I have followed had me collect and blit all of my sprites with the following lines: allsprites = pygame.sprite.RenderPlain((l_sprites)) allsprites.draw() At the moment, this is fine ...
3
votes
3answers
646 views

Problem in blitting a clean, crisp sprite

I am having a bit of a tooling problem...and I am unsure of how to solve it. I am currently using PyGame to try and write a simple Minesweeper clone, except my sprites that I made are hexagon based ...
2
votes
2answers
9k views

Pygame How To Use Collision?

Can someone tell me how to implement collision in Pygame? For example I have a sprite called A and another one called B. How do I detect if they collide in Pygame?
9
votes
2answers
634 views

Common pattern to scale “real units” to pixels?

This is a follow-up question to this other one. I would like to know if there is a common/typical/best pattern to scale my representation of the world (currently 160Kmx160Km) to fit it to the drawing ...
-1
votes
3answers
1k views

When should I learn Pygame? [closed]

I've been learning python for about 2 months now. I think I'm getting used to the language. My question is, when should I start learning Pygame? Or how do I know if I'm ready for it? I'm learning ...
1
vote
3answers
836 views

sprite group doesn't support indexing

I have a sprite group created with pygame.sprite.Group() (and add sprites to it with the add method) How would I retrieve the nth sprite in this group? Code like this does not work: mygroup = ...
1
vote
2answers
312 views

shuffle a sprite group

Is there a way to shufle a group of sprites created with: pygame.sprite.Group() I have tried using random.shuffle but it apparently doesn't work on sprite groups.
6
votes
2answers
885 views

How to write reuseable components for pygame

Is there a recommended way to write reuseable components for pygame? Simple example would be a FPS counter. Should I write a class which has an init, update and draw method and call them from inside a ...
2
votes
2answers
1k views

Problems moving a rectangle in Pygame

I'm making a game in Pygame and I want to be able to target enemy unit. I made it so when I click on them a variable "targeted" becomes true, and stays true until I click somewhere else on the screen. ...
3
votes
3answers
928 views

What are the usual tools for importing models and animations?

I'm a total noob with regard to game programming (though not a noob to programming) and I'm using pygame + opengl to do some experiments with a little game I've been thinking of. I've been trying to ...
1
vote
3answers
3k views

Will I have an easier time learning OpenGL in Pygame or Pyglet? (NeHe tutorials downloaded) [closed]

I'm looking between PyGame and Pyglet, Pyglet seems to be somewhat newer and more Pythony, but it's last release according to Wikipedia is January '10. PyGame seems to have more documentation, more ...
7
votes
5answers
3k views

Are there any good UI widget toolkits for Pygame? [closed]

Are there any good, modern widget toolkits for Pygame? I've looked at PGU, but it's apparently unmaintained.
6
votes
8answers
9k views

Alternative to pyGame? [closed]

i'm learning something about game programming from a book about "pyGame". pyGame is simple, but... python is a little complex and different from my previous knoweledge about programming. I know ...
2
votes
2answers
496 views

Help making a visual transition with pygame and NumPy

Perhaps this could be better answered on Stack Overflow, but I thought it would be worth posting here. Right now I'm trying to make visual transitions with pygame's surfarray module which uses NumPy. ...
10
votes
6answers
6k views

Make pygame's frame rate faster

By profiling my game, I see that the vast majority of the execution time of my hobby game is between the blit and the flip calls. Currently, it's only running at around 13fps. My video card is fairly ...