pygame Questions

2

Solved

The only way I know how to make an animation is by using individual images (as in 1 image per file). I got a sprite sheet but I don't want to spend the time cropping each individual sprite ou...
Broek asked 20/11, 2013 at 23:39

6

Solved

I have a button in my Pygame program. Whenever my cursor is hovering over the button, I want the cursor to change to this image (but it could be any custom image), which is different from the defau...
Krafftebing asked 12/8, 2020 at 3:11

4

Solved

When I try to run a program that uses pygame I get a slow "startup"(init) (4-5s) and this error from ALSA. Fixing ALSA is not my objective, I'd like to know why is it being initialized if I have no...
Retene asked 6/8, 2015 at 5:30

11

I just spent a fair amount of time finding a 64-bit installation of pygame to use with python 3.3, (here) and now am trying to make a window. However, although the window opens up fine it does not ...
Disseisin asked 9/11, 2013 at 20:1

4

Solved

I'm just wondering if it is possible for me to get the resolution of a monitor in Pygame and then use these dimensions to create a window so that launching the program detects the monitor resolutio...
Farce asked 13/11, 2013 at 12:58

7

Solved

Does anyone know how to change the pygame icon? I found a thing on the pygame website that lets you do this, but when I try it, it just makes the pygame window very small.
Osteo asked 21/1, 2014 at 23:16

6

I thought that pygame.font.Font was to load .ttf fonts, and that you can't load a font without having the .ttf file in the same directory, but I have seen a video where someone load a font without ...
Megalo asked 23/6, 2016 at 21:8

2

Solved

How do I detect Mouse scroll up and down in python using pygame? I have created a way to detect it, but it doesn't give me any information about which way I scrolled the mouse as well as being terr...
Feodor asked 4/7, 2022 at 14:54

5

I'm fairly new to pygame and ive hit my first stump which I cannot find an answer for.. After blitting text, then changing the string for the same variable, the game instead of replacing the...
Multiplicand asked 6/5, 2012 at 3:28

3

Solved

I am developing a time-critical app on a Raspberry PI, and I need to send an image over the wire. When my image is captured, I am doing like this: # pygame.camera.Camera captures images as a Surfa...
Till asked 5/10, 2013 at 1:55

7

Solved

I used to draw lines (given some start and end points) at pygame like this: pygame.draw.line(window, color_L1, X0, X1, 2), where 2 was defining the thickness of the line. As, anti-aliasing is not ...
Immediacy asked 1/6, 2015 at 16:1

4

new to pygame just wondering how i would go about adding a background image into the game itself? this is my code so far, i've been using the bg as a way to import my image but the py file itself r...
Toplevel asked 17/1, 2015 at 23:49

4

In the game I'm making, I'm trying to move the window around the screen for a mini game (don't ask) and I've tried what I saw own threads and only found 1 x = 100 y = 0 import os os.environ['SDL_V...
Hoarse asked 13/6, 2017 at 11:40

4

Solved

I have made a small space invader game using pygame and I was wondering if I could play it on the browser using pyscript. Is this even possible ? Do I have to rewrite everything ?
Carroty asked 10/5, 2022 at 6:27

3

Solved

I am doing some operations with vectors and physics in PyGame and the default coordinate system is inconvenient for me. Normally the (0, 0) point is at the top-left corner, but I would rather that ...
Countless asked 16/4, 2012 at 0:12

8

I was wondering if someone could give me a detailed explanation on how to run a game/app developed using Pygame on an Android phone. I recently finished programming PacMan and it works perfectly on...
Tombouctou asked 29/5, 2014 at 13:20

3

Solved

I've been trying to make an .exe from my .py game and it's been really frustrating. I'm using Python 3.5.2, Pygame 1.9.2 and Pyinstaller 3.2. The game is running perfectly as .py, but after I ent...
Batts asked 17/12, 2016 at 23:29

6

I have 3 game libraries installed on my PC: pyglet, pygame and Panda3D. I would like to create a 2D game and make it a web browser game so i can put it on facebook. I know that Panda3D has a web-...
Medico asked 9/12, 2011 at 23:20

8

The Problem Im trying to turn a python file into an EXE file, however I seem to be running into the same problem every single time, whether it is CX_Freeze or Pyinstaller. I just tried using pyins...
Pugliese asked 14/1, 2017 at 4:48

13

This is the code I have: import pygame pygame.init() I'm very confused because if I try to run the file, then there seems to be no issue, but pylint says the following: E1101:Module 'pygame' ...
Employer asked 28/5, 2018 at 15:21

5

Is there a cross platform way to get the monitor's refresh rate in python (2.6)? I'm using Pygame and PyOpenGL, if that helps. I don't need to change the refresh rate, I just need to know what it ...
Rosanarosane asked 3/8, 2009 at 23:7

10

I need the window position right after I created a pygame window: window = pygame.display.set_mode((width, height), 0, 32) pygame.init() By default, the window starts at 0,0 - but I also need x,...
Antibaryon asked 9/11, 2010 at 16:19

10

Solved

In pygame I use pygame.draw.rect(screen, color, rectangle) for all the rectangles in my program. I want to be able to rotate these rectangles to any angle. I have seen the following code to rotate ...
Making asked 8/4, 2016 at 23:15

7

I had been trying to rotate an image around its center in using pygame.transform.rotate() but it's not working. Specifically the part that hangs is rot_image = rot_image.subsurface(rot_rect).copy()...
Lacrimator asked 15/11, 2010 at 9:55

2

Solved

So I am trying to fade my screen out and back in after completing a level using PyGame. My problem is that only the fadeout() works and not the fadein(). When calling the fadein() the screen turns ...
Tuber asked 24/10, 2019 at 11:36

© 2022 - 2025 — McMap. All rights reserved.