365体育足球滚球比分

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.

Filter by
Sorted by
Tagged with
-1
votes
0answers
7 views

Podsixnet or other python server deployment suggestions

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 ...
0
votes
1answer
19 views

Displaying the user's computer name

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 ...
0
votes
1answer
13 views

Surfaces or Sprites in Pygame?

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 3)...
1
vote
1answer
24 views

Why my pygame game with a tiled map is lagging?

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. my code: import pygame from player import ...
0
votes
0answers
18 views

Pygame and win32api - blited image has outline when setting background as transparent with win32api

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 ...
0
votes
1answer
25 views

How i can change position of mask?

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 = ...
0
votes
0answers
14 views

adding bustling of cracker feature when the snake colides with the edge in a snake game using pygame in python

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 ...
0
votes
1answer
17 views

Mask collision between two sprite groups

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 ...
0
votes
1answer
16 views

i have converted python program to an .exe file but on opening the .exe file i don't see an output, but just a empty cmd window

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 =>. ...
0
votes
1answer
43 views

Dragable and Rotatable polygon

import numpy as np from tkinter import * #import tkinter as tk #from shapely.geometry import Point, Polygon class obstaclelist: def __init__(self,): self.obsL=[] self.obsnums=0 ...
1
vote
1answer
23 views

Why doesn't my sprite move correctly in pygame?

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 ...
-1
votes
0answers
37 views

Using pyinstaller with scripts in a different directory [closed]

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 ...
1
vote
2answers
29 views

How do I determine if my mouse is over randomly spawning objects

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. import pygame import time import random pygame.init() ...
-2
votes
0answers
35 views

python script syntax error, alhough there is noothing wrong [closed]

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 ...
1
vote
0answers
13 views

python: is it possible to get all threads of current playing audio and mute some of them?

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?

15 30 50 per page
1
2 3 4 5
886