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

Multiple Bullets Pygame

I know there have been several topics on this but I still can't figure out how to make my robot… Read more Multiple Bullets Pygame

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

Confused At Why Pygame Display's A Black Screen

So before I decided to ask this question I did a little research to see what my problem was and cam… Read more Confused At Why Pygame Display's A Black Screen

Pygame Window Not Showing In Macosx

I've been using pygame inside a conda environment. The installation went well, but whenever I c… Read more Pygame Window Not Showing In Macosx

Error: Couldn't Open Image

I'm working on a time based movement program in pygame. And I keep receiving this error. Trace… Read more Error: Couldn't Open Image

Reset And Restart Pygame Program Doesn't Work

I have an issue with resetting my game in pygame when the user is asked to restart. The program is … Read more Reset And Restart Pygame Program Doesn't Work

Online Game Give The Error "("connectionabortederror: [winerror 10053] "

I made a game in python with pygame and socket, my game works perfectly in local server, but when i… Read more Online Game Give The Error "("connectionabortederror: [winerror 10053] "

Bad Timing When Playing Audio Files With Pygame

When I play a sound every 0.5 second with PyGame: import pygame, time pygame.mixer.init() s = pyga… Read more Bad Timing When Playing Audio Files With Pygame

Pygame Dual Monitors And Fullscreen

I am using pygame to program a simple behavioral test. I'm running it on my macbook pro and hav… Read more Pygame Dual Monitors And Fullscreen

What Is The Surface.blit() Function In Pygame? What Does It Do? How Does It Work?

I am a beginner in Python and I am not clear about the function surface.blit(). What does it do? Ho… Read more What Is The Surface.blit() Function In Pygame? What Does It Do? How Does It Work?

Pygame Not Returning Joystick Axis Movement Without Display

I've seen other solutions to this problem say that you either need to call the pygame.event.pum… Read more Pygame Not Returning Joystick Axis Movement Without Display

Pygame.error:video System Not Initialized

So i wrote this code: # Pygame development 4 # Focus on making code object oriented # Introduce cla… Read more Pygame.error:video System Not Initialized

Pygame Change Level - Level Made Of List

Hello i am new in pygame. And i have used this example: http://pygame.org/project/1061/ The example… Read more Pygame Change Level - Level Made Of List

Python Rectangle Collision Handling With Pygame

I've been doing extensive research on this topic for the past few days and I can't seem to … Read more Python Rectangle Collision Handling With Pygame

Python Socket Wait

I was wondering if there is a way I can tell python to wait until it gets a response from a server … Read more Python Socket Wait

Why When The X And Y Size Are Not The Same The Grid Is Not Showing Properly

I have this code that is used to display a grid but when size_x and size_y are not the same the gri… Read more Why When The X And Y Size Are Not The Same The Grid Is Not Showing Properly

Pygame - Sprite Movement Causes Layers

Im trying to make a rain effect with pygame but it seems as if the background is not cleaning up be… Read more Pygame - Sprite Movement Causes Layers

Why Won't My Character Jump In Pygame/python

This is my first Pygame game that I'm making. I am planning on making a 2 player fighting game … Read more Why Won't My Character Jump In Pygame/python

Snake Game: Snake Colliding With Itself

Hi I am currently writing a snake game code and I am nearly finished however I am having difficulty… Read more Snake Game: Snake Colliding With Itself

How To Set The Pivot Point (center Of Rotation) For Pygame.transform.rotate()?

I want to rotate a rectangle about a point other than the center. My code so far is: import pygame … Read more How To Set The Pivot Point (center Of Rotation) For Pygame.transform.rotate()?