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

Trying To Make Screen Center To Player In Pygame Simple 2d Platformer

I am creating a simple 2D platformer in Pygame. In this project I have been trying to use classes m… Read more Trying To Make Screen Center To Player In Pygame Simple 2d Platformer

How To Detect Collision Between Objects In Pygame?

I'm making a sidescrolling game in Pygame, and if the fox sprite collides with the tree, it is … Read more How To Detect Collision Between Objects In Pygame?

Can't Hear The Sounds I Am Tring To Play With Pygame

I can't hear the sounds I am trying to play with pygame. This is my code. import pygame pygame.… Read more Can't Hear The Sounds I Am Tring To Play With Pygame

Pygame: Cell Physics

I'm making a dumbed down version of agar.io. Currently, the cell is placed upon a grid backgrou… Read more Pygame: Cell Physics

Questions Regarding The Pygame.mask Function

So I read the documentation of pygame but I could not understand it clearly. I recently asked a que… Read more Questions Regarding The Pygame.mask Function

Making Clone Enemies

I'm making a simple game in pygame, in which you're supposed to dodge or shoot the targets … Read more Making Clone Enemies

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

Cant Find Pygame Module

I just started game developing in python with pygame and I have the following code: bif='main_b… Read more Cant Find Pygame Module

Pygame Program Stops Responding, Giving No Error

so my program is meant to display buttons in rows, then wait for the user to click one, however wha… Read more Pygame Program Stops Responding, Giving No Error

Python Pygame Mask Collision

when I try to use this piece of code, it only works for 1 object, not for every. I'm trying to … Read more Python Pygame Mask Collision

Using Pygame.sprite.spritecollideany Python

I am new to python programming, and I am practicing by making a Alien Invasion game. This is a clas… Read more Using Pygame.sprite.spritecollideany Python

Pygame : Smooth Picture Aparition

Can someone help me on this ? : I try to make a title that appear smoothly on the user screen : def… Read more Pygame : Smooth Picture Aparition

How To Get Vertical Rotation In 3d Space With Opengl?

I have a field of cubes created in OpenGL and I have walking around working as expected, and part o… Read more How To Get Vertical Rotation In 3d Space With Opengl?

Error When Installing Pygame On Mac (catalina)

I have been trying to install PyGame onto my Mac on Catalina and can't figure out how to. The e… Read more Error When Installing Pygame On Mac (catalina)

Pygame How To Detect Clicks From A List Of Images

For my levels screen I use images for each level button, there are 15 on a page. I was able to blit… Read more Pygame How To Detect Clicks From A List Of Images

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

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

Pygame: Mouse Specific Axis Detection

How can I detect ONLY the X axis, for example? maus_x = 0 maus_y = 0 pygame.mouse.get_pos(maus_x, m… Read more Pygame: Mouse Specific Axis Detection

How Can I Play A Sine/square Wave Using Pygame?

I'm trying to play a sine wave using Pygame's sndarray.make_sound function. However, when I… Read more How Can I Play A Sine/square Wave Using Pygame?

Python/pygame Adding A Title Screen With A Button

I have this code import pygame, random, sys from pygame.locals import * BLACK = (0, 0, 0) WHITE =… Read more Python/pygame Adding A Title Screen With A Button