a cross-platform python framework including graphics and sound libraries for designing video games.
Questions tagged [pygame]
59 questions
12
votes
2 answers
Unable to run "sdl-config"
I'm new to Pi and Linux, and I'm using the Pi Zero W with a fresh version of Raspbian installed. I'm trying to get PyGame installed on the Pi so that I can work on a project. When I run the command
pi@raspberrypi:~/pygame $ python setup.py
This is…
meabster
- 123
- 1
- 1
- 4
1
vote
1 answer
Pygame axis values
how can I see the values that come from the different joystick axis? For example, if i press the joystick half up, that there is a value of 1600 (all the way up: 3200). There is the event.axis, but it can just be 0 or 1.
I already connected the ps3…
Melobih
- 23
- 4
1
vote
1 answer
pygame wont upgrade to latest version :ERROR: Could not find a version that satisfies the requirement pygame==2.0.1
Iam trying to install latest version of pygame to run it on python 3 but when I type this in terminal
sudo pip3 install pygame==2.0.1
I get the following error
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting…
Meghana R Prakash
- 11
- 1
1
vote
0 answers
pygame small screen missing mousecklicks
I am using a small 2.4" touchscreen with a resolution of 320x240 and I am working with pygame to create a GUI. Strangely I am not recording any mouse click between y position 26 and 35.
The problem is not caused by the touchscreen itself. The…
qubit
- 129
- 2
0
votes
1 answer
Pygame does not recognize number pad?
i use a small USB number pad/number keyboard for my Raspberry. It works well but my problem is, that it does not work with Pygame. I want to use the RETURN key with:
elif event.type == pygame.KEYDOWN:
if event.key == pygame.K_RETURN....
But it…
0
votes
0 answers
When my Raspberry PI 4 boots to Desktop, how do I make it automatically open the terminal, and run a command?
I've got a pygame script that I'd like to run automatically when I turn on my raspberry pi 4.
The pygame script has a GUI so it's important that the script runs in a terminal on the Desktop and I'm able to see it through something like VNC…
-1
votes
1 answer
Cannot get pygame to open a wav file
I copied this program from a previous reply on this site:
import pygame
pygame.mixer.init()
pygame.mixer.music.load('beep.wav')
pygame.mixer.music.play()
while pygame.mixer.music.get_busy()==True:
continue
The 'beep.wav. file is located in the…
epzcaw
- 9
- 1
- 2