Category "pygame"

How to change cursor in pygame?

I have a button in my pygame program. Whenever my cursor is hovering over the button, I want the cursor to change to this: I already know how to get the positio

How to set the pivot point (center of rotation) for pygame.transform.rotate()?

I want to rotate a rectangle about a point other than the center. My code so far is: import pygame pygame.init() w = 640 h = 480 degree = 45 screen = pygame.d

Pygame Collision detection `colliderect()`

While going through the docs of pygame, there was a method of pygame called colliderect() that is used to test if two rect objects have overlapped. colliderect

framerate independent movement breaking at higher fps?

I am trying to understand framerate independence and wrote this test code: import pygame, sys, time pygame.init() screen = pygame.display.set_mode((1280,720)) c

pygame - How to display text with font & color?

Is there a way I can display text on a pygame window using python? I need to display a bunch of live information that updates and would rather not make an imag

How to block calls to print?

Is there a way to stop a function from calling print? I am using the pygame.joystick module for a game I am working on. I created a pygame.joystick.Joystick obj

Uninstalling pygame on linux

I have been trying to uninstall pygame, but i'm not sure how and i couldn't find any resources to help me. I had installed pygame with the command python3 -m pi

Pygame change level - level made of list

Hello i am new in pygame. And i have used this example: http://pygame.org/project/1061/ The example shows how to chack for collision, make a level from a list a