Top "Pygame-surface" questions

pygame object for representing images.

Animated sprite from few images

I've been searching for some good tutorial about making simple sprite animation from few images in Python using Pygame. I …

python animation pygame sprite pygame-surface
How do I detect collision in pygame?

I have made a list of bullets and a list of sprites using the classes below. How do I detect …

python pygame collision-detection pygame-surface
Pygame creating surfaces

Code: #!/usr/bin/python import pygame, time, sys, random, os from pygame.locals import * from time import gmtime, strftime pygame.…

python python-2.7 pygame pygame-surface
SVG rendering in a PyGame application

In a pyGame application, I would like to render resolution-free GUI widgets described in SVG. What tool and/or library …

python svg pygame widget pygame-surface
How do I flip an image horizontally in pygame?

This is in pygame. How do I flip an image (lets say an image of a pig looking to the …

python python-2.7 python-3.x pygame pygame-surface
How to fix this DeprecationWarning

DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using int is deprecated, and may be removed …

python python-3.x pygame pygame-surface pygame2
How to create a pygame surface from a numpy array of float32?

I have a piece of code that works using my_surface = pygame.image.load('some_image.png') This returns a …

python pygame pygame-surface
How to draw a transparent image in pygame?

Consider a chess board, i have a transparent image of queen(queen.png) of size 70x70 and i want to …

python pygame pygame-surface
How do I blit an image to a surface in pygame that's the same size as a Rectangle

I'm making a game with pygame and each Sprite has a rectangle and an image. How would I blit this …

python image pygame blit pygame-surface