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

Problem To Install Pygame On Ubuntu 20.04lts

I am on Ubuntu 20.04LTS, and I try to install pygame (for python) for a school project. But when I … Read more Problem To Install Pygame On Ubuntu 20.04lts

How To Add Five Rows Of Invaders In Space Invader Game

i currently have 1 row of 11 invaders in my space invader game and wish to add 5 more rows, what co… Read more How To Add Five Rows Of Invaders In Space Invader Game

How To Get Rid Of Pygame Surfaces?

In the following code, there is not just one circle on the screen at any given point in time. I wan… Read more How To Get Rid Of Pygame Surfaces?

Draw A Circle In Pygame Using Tkinter

using bits of code from another question, I embedded a pygame window in a tkinter window, I'm t… Read more Draw A Circle In Pygame Using Tkinter

How Do I Display A Large Black Rectangle With A Moveable Transparent Circle In Pygame?

That question wasn't very clear. Essentially, I am trying to make a multi-player Pac-Man game… Read more How Do I Display A Large Black Rectangle With A Moveable Transparent Circle In Pygame?

Pygame Collision Code

First of all, I have to say that I'm french (so that you understand why I make all these mistak… Read more Pygame Collision Code

Simple Pygame Audio At A Frequency

How can I create a 440 Hz sound that plays smoothly forever using audio with Pygame? I assume this … Read more Simple Pygame Audio At A Frequency

Pygame Sound Keeps Repeating

I am trying to play a sound at the end of a game when there is a lose. Previously this code below w… Read more Pygame Sound Keeps Repeating

How Can I Deepcopy A Pygame Sprite Group?

I am trying to implement a chess AI using a monte carlo tree search. This requires playing through … Read more How Can I Deepcopy A Pygame Sprite Group?

How To Make Sprite Move Upwards And Downwards With Joystick In Pygame

I am trying to create a project that I have made before but apart from this time I am going to be u… Read more How To Make Sprite Move Upwards And Downwards With Joystick In Pygame

Is There A Way To Get The Coordinates Of A Specific Object/click In Pygame?

I want to write a program where if I click, a circle is drawn on the pygame screen. If I click agai… Read more Is There A Way To Get The Coordinates Of A Specific Object/click In Pygame?

__init__() Got Unexpected Keyword Argument 'y'

I'm following the book, 'Python Programming For The Absolute Beginner' and decided to t… Read more __init__() Got Unexpected Keyword Argument 'y'

Python3.2 How To Keep Turtle From Going Off The Screen And When It Does Reset?

I am writing a simple project with pygame and turtle graphics. They aren't integrated together.… Read more Python3.2 How To Keep Turtle From Going Off The Screen And When It Does Reset?

Pygame Sprite Not Moving

I'm faced with a logic error where the sprite simply doesn't move regardless of input. My c… Read more Pygame Sprite Not Moving

Where To Put Images Folder In Python Exe?

I have converted a python game I designed into an exe. Running the exe itself causes it to flash an… Read more Where To Put Images Folder In Python Exe?

Python & Pygame How To Move And Rotate Polygon Towards The Mouse Position?

(EDIT: The rotation doesn't matter too much to me anymore - just the movement. I am still curio… Read more Python & Pygame How To Move And Rotate Polygon Towards The Mouse Position?

Pygame: Centering Text System Font Text

I have read this post about centering text: Pygame - How to Center Text However instead of importin… Read more Pygame: Centering Text System Font Text

Failure On Import Pygame.font

import pygame works fine for me, but import pygame.font fails with the error: ImportError: dlopen(/… Read more Failure On Import Pygame.font

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?

Pygame Using Time.sleep To Wait For X Seconds Not Executing Code Above It

I am trying to recreate Pong in pygame and have tried to change the color of the net to red or gree… Read more Pygame Using Time.sleep To Wait For X Seconds Not Executing Code Above It