Skip to main content

Questions tagged [pygame]

a cross-platform python framework including graphics and sound libraries for designing video games.

0 votes
0 answers
396 views

I’m having trouble running a pygame script on my Raspberry Pi Zero 2W with Raspberry Pi OS Lite. The script is intended to display images directly on the screen. However, I’m encountering errors and ...
Max Delissen's user avatar
0 votes
0 answers
110 views

I am trying to autostart a simple pygame python script using systemd. My raspberrypi5 is configured to autologin when starting. Using a .desktop entry I am able to start my game, however I would like ...
user25767759's user avatar
0 votes
0 answers
110 views

Here is a small test code that I had running on my RPi 3B+, that plays a sequence of notes, which worked with no issues: from music21 import midi, stream, converter s = stream.Stream() for i in range(...
XuUserAC's user avatar
  • 111
0 votes
1 answer
956 views

I am doing my NEA project right now and I have a problem using 2 TFT LCD. Here are more details about the LCD 2.8" LCD SPI, Driver: ili9341 with touch version 1.2, this a picture of it: I have ...
Mohamed Ahmed's user avatar
0 votes
0 answers
128 views

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 ...
 E D I T S's user avatar
1 vote
1 answer
223 views

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/...
Meghana R Prakash's user avatar
1 vote
0 answers
212 views

I am trying to work with raspberry pi 4 and OV9281-110 camera ( https://www.waveshare.com/wiki/OV9281-110_Camera) When I try to run pygame to read camera input I get the following error: pygame 2.1.2 (...
some1's user avatar
  • 11
0 votes
1 answer
874 views

I'm trying to solve this problem. I would like to boot a raspbery directly into pygame without starting the GUI. I have a raspberry pi generation 2 with the current "2021-01-11-raspios-buster-...
576i's user avatar
  • 229
0 votes
1 answer
546 views

I'm trying to set up a Python process that plays audio to auromatically start on boot with systemd but when I do the audio is full of pops, even though it's fine when I run it myself in the command ...
Aido's user avatar
  • 111
3 votes
1 answer
1k views

I have written a small python script that plays a track after the press of a button (and ignores further button presses until the track has completed). The script works perfectly fine when started ...
robertmusil's user avatar
1 vote
1 answer
2k views

I've been working on my own object recognition program based on the rpi-vision test program pitft_labeled_output.py (from this webpage). It's basically a custom neural network model and a bit modified ...
A6EE's user avatar
  • 73
0 votes
1 answer
430 views

I am using an external USB sound card with my Raspberry Pi 4 and play music using pygame. To set the audio output from the 3.5 mm minijack to the USB sound card I first checked the available outputs ...
Jorn's user avatar
  • 119
0 votes
0 answers
168 views

I'm trying to edit a Python script that works perfectly - except I want to change one variable and I can't figure out how to do it. The script plays a set of mp3 files in a directory. The script ...
D_eM's user avatar
  • 11
-1 votes
2 answers
264 views

I have managed to create a dispmanx element from a python script. I want to write text on this element. I can do it with pygame, but pygame does not provide layer feature. I need this feature for ...
Bob5421's user avatar
  • 107
0 votes
1 answer
560 views

I am playing a video with OMXPlayer in fullscreen mode. What I want to do is to draw something. I want to see my video by transparency. I have tried with pygame, but I cannot see both videos and ...
Bob5421's user avatar
  • 107

15 30 50 per page