Questions tagged [pygame]
Pygame is a set of Python modules designed for writing video games.
Use this tag only if you are using the Pygame library and not if you have a question about programming a game in Python in general.
I have a simple game coded up using the Podsixnet library http://github.com/chr15m/PodSixNet and I want to be able to play test with another friend living in another state. My repo currently is ...
I want to display the user's computer name in Fourhundredone() but the error keeps telling me I need an integer? (TypeError: an integer is required (got type str)) is there any way to display it more ...
Good evening, I'm making a platformer and would like to know when you should use one of the both.
For example for:
1)The player controlled character
2)The textured tiles that make up the level
I just started pygame and I started coding a little game, but when I put the code for the tiled map my game lagged! I don't understand why so I ask you.
from player import ...
How do I get rid of the background colour outline on my image?
Currently getting an outline around my blited image to the pygame window when treating the background colour as transparent.
I have not ...
I set image in center screen, but mask stay at (0, 0) coordinates
self.image = pygame.Surface(self.size)
self.image.fill((255, 255, 255))
self.rect = self.image.get_rect(center=position)
self.mask = ...
I have created a Snake game using python. But i want to make it more user friendly by adding a feature where craker would be busted at the point where the snake collide with the edge. And the game ...
My player attacks by throwing their weapon at the enemies. This is currently done by using a singular sword that gets thrown, then teleports back to the player to be thrown again. I want to change ...
i have converted the python file to an exe file using the pyinstaller. The command i used is this "pyinstaller --onefile snake_game.py". i just an empty cmd window and it closes after few seconds =>. ...
import numpy as np
from tkinter import *
#import tkinter as tk
#from shapely.geometry import Point, Polygon
My second game is a platformer. I drew all the spites, drew the background and the platform, but I cant move my character more than 45 pixels one way, even when it is supposed to move 5 pixels. I also ...
I am making a big video game in python/pygame, and it has 9 files (including the main file). When I make the main file into an executable and give it to other people, I don't want them to see all the ...
I'm trying to implement a game which allows for the clicking of randomly spawning circles, which give you points everytime u click on it.
I am following through a book which teaches me how to make simple games.
I added a line and when I run it, if gives me error sign.
This error says my lie
last_hit_time = 0
has syntax error. but I ...
I am working on a pygame project. I want to start play audio and mute others when the app is running.Is there any way to do this?