Skip to content Skip to sidebar Skip to footer
Showing posts with the label Pygame

Flags And Depth In Coding (pygame)

So I am starting to learn pygame and in this line: pygame.display.set_mode((640,300), 0, 32) I'… Read more Flags And Depth In Coding (pygame)

Use Pygame Mouse While Hidden

Is there a way to use the mouse while, pygame.mouse.set_visible(False) is activated. Currently mou… Read more Use Pygame Mouse While Hidden

How To Embed A Tkinter Window Into A Pygame Game Gui?

I have coded the Tkinter window and my pygame game separately. However, when I tried to link the tw… Read more How To Embed A Tkinter Window Into A Pygame Game Gui?

Build Pygame With Full Image Support?

I'm trying to create a graphical application and using pygame as my library. However, in order … Read more Build Pygame With Full Image Support?

Duplicating A Sprite

I'm having trouble with getting new sprites to be added. I'm looking for something along th… Read more Duplicating A Sprite

Check Collision Between A Image And A Line

I check collision: offset = (x0 - x1, y0 - y1) result = player1.mask.overlap(player2, offset) Its … Read more Check Collision Between A Image And A Line

I Tried To Draw A Rectangle In Pygame But The Colour Is Flickering...why?

So, I'm trying Pygame again (still a beginner), I tried to draw a rectangle, but the colour jus… Read more I Tried To Draw A Rectangle In Pygame But The Colour Is Flickering...why?

Using Pygame To Stream Over Sockets In Python Error

i am working on with a webcam script i got of the internet in python and i am using pygame module t… Read more Using Pygame To Stream Over Sockets In Python Error

Pygame Snake Velocity Too High When The Fps Above 15

I am having a hard time figuring the physics of speed in this snake game I made using pygame. The i… Read more Pygame Snake Velocity Too High When The Fps Above 15

Pygame Rotate Line Delete Old Line

How can I rotate a line in pygame using math module and every second rotate line delete old line. I… Read more Pygame Rotate Line Delete Old Line

How To Fix Infinite Jump Bug In Pygame?

I am trying to make a game, but you can keep spamming 'w' (jump) for infinite height which … Read more How To Fix Infinite Jump Bug In Pygame?

When Trying To Install Pygame On Anaconda Python 3.x Is Downgraded To Python 2.7

I'm working with Anaconda Python 3. I'm trying to install pyOpenGL, Vpython and pygame. In… Read more When Trying To Install Pygame On Anaconda Python 3.x Is Downgraded To Python 2.7

How To Make An Image In Pygame Stay Still When Rotated?

So I'm trying to make an image point towards the mouse at all times, and it sorta works. The im… Read more How To Make An Image In Pygame Stay Still When Rotated?

Can Someone Please Explain This Weird Pygame Importing Convention?

I see that people usually import Pygame like this: import pygame from pygame.locals import * I don… Read more Can Someone Please Explain This Weird Pygame Importing Convention?

Py2app: Operation Not Permitted

I want to create an application called 'dodgeball' and I have my main script (which uses py… Read more Py2app: Operation Not Permitted

Cx_freeze: "no Module Named 'codecs'"

I've been desperately trying to compile my python pygame program into standalone executables to… Read more Cx_freeze: "no Module Named 'codecs'"

Run Terminal Commands On Raspberry Startup

I am working on a project in which I am using curses and pygame librarie, my python program/script … Read more Run Terminal Commands On Raspberry Startup

Pygame Memoryerror

HI i wrote a simple block collecting program that was working just fine and dandy until i added sou… Read more Pygame Memoryerror

How To Spawn A Sprite After A Time Limit And How To Display A Timer Pygame

i would like to spawn a 'boss' Sprite after a certain time has passed or x amount of mobs h… Read more How To Spawn A Sprite After A Time Limit And How To Display A Timer Pygame

Raspberry Pi Auto Starting A Program

So I have a python game (PyGame) running on a raspberry Pi. I have followed the instructions found … Read more Raspberry Pi Auto Starting A Program