0
votes
0answers
49 views

pygame object returns wrong button object

Another question from dumb developer :) I have class for window: class MainMenuWindow(Window): # singeltone: _instance = None def __new__(cls, *args, **kwargs): if not cls._instance: ...
-1
votes
2answers
171 views

bump map from color map (RGB) generation?

Is there a library like PIL (Python Imaging Library) which takes a RGB image (pixel data) and generates a bump map image? If not, how can I do that? I know the results might not be very good. I know ...
3
votes
1answer
182 views

Pygame performance issue for many images

I've made a script for generating a game world based off of image pixel data. Trying to make a python map editor My progress so far has resulted in a program which loads an image and draws sprites ...
1
vote
1answer
149 views

Pixelated and incomplete image when loading with pygame.image.load

This is the image I'm trying to load on the surface, an 40x40 Ubuntu logo: Ans this is how it looks when trying to show the image on the surface via the blit method: I'm trying to load different ...
5
votes
1answer
908 views

How can I resize pixel art in Pyglet without making it blurry?

I have a tileset of 8x8 pixel images, and I want to resize them in my game so they'd be double that (16x16 pixels, e.g. turning each pixel into a 2x2 block.) What I'm trying to achieve is a ...
1
vote
2answers
318 views

Pygame circular cropping/masks

I have been going through the documentation and the Pygame functions and classes today, but couldn't find a reasonable way to either create a circular crop of an image or how to use a mask to perform ...