6 questions
0
votes
1
answer
78
views
Issue with pygame-ce in the Jupyter Notebook Demo
Every time I run any pygame code in Jupyter Notebook (the online demo) it just crashes, giving an error that I've looked for everywhere, to no avail. I'm using the Pyodide Kernel, which apparently ...
-2
votes
1
answer
122
views
How do I remove blurry rendering in Pygame or Pygame-CE?
I am trying to make a pixel-art 2d platformer in Pygame-CE. When I use a standard pygame display, the pixels come out as blurry:
Minimal Reproducible Example:
#Import everything
import pygame, sys
...
1
vote
1
answer
129
views
Pip exits when installing build dependencies for pygame-ce
I had pygame (not ce) on my Debian system and then updated it to pygame-ce using pip install —-upgrade pygame-ce and it worked fine, installing pygame-ce==2.5.2 . There were some more recent updates ...
0
votes
0
answers
84
views
Why can a python class using pygame's Vector2 as a parent not have an attribute name starting with x or y?
This is really weird, but I'm making a custom vector using pygame's Vector2 as a parent, and any attempt to define an attribute that starts with the letters x or y results in an error upon ...
0
votes
0
answers
108
views
PyGame: asynchronous version of pygame.time.Clock.tick()
There is no API for asynchronous Clock.tick() in pygame, how could I implement something like this? (This could be useful for things like pygbag that require async main loop.)
0
votes
1
answer
198
views
Why are my blurred drop shadows lightening instead of darkening a semi-transparent color in Pygame?
I feel like there is some fundamental aspect of alpha blending that I'm not understanding here.
I'm doing the following in Pygame to create a blurred drop shadow:
draw a white object
draw a black ...