Questions tagged as 'pygame'

0
answers

Error installing pygame

I'm trying to install pygame in my python 2.7. I do it in this python because for some reason if I try to install pip in python 3.7 it will not let me. From the terminal I entered: sudo pip install pygame And supposedly installed it well, b...
asked by 19.09.2018 / 22:15
0
answers

Map scrolling / camera in python with pygame

It seems that the camera follows the character but the camera moves slower than the character. I thank you in advance for any help or advice. Mapa.py import pygame import random from pygame.locals import * from Superficie import * from Par...
asked by 01.09.2018 / 00:15
0
answers

I am creating a 3-band simulator game "billiards" and the problem is that I can limit the movement of the ball to only one side in Python won pygame

I'm doing a 3-band simulator game "billiards" and the problem is that I manage to limit the movement of the ball to one side, I enter the rest of the commands and those are no longer executed. * the instruction that carries an asterisk is the...
asked by 25.07.2018 / 01:53
0
answers

Seemingly nonexistent error in python with pygame

I have a method that converts a "pygame.Font" class to a "pygame.Surface" surface with the method already predefined by pygame in the "pygame.Font" class: .render (). The problem is that sometimes, without apparent sense, the program remains fro...
asked by 21.04.2018 / 15:37
0
answers

How to make a button repeat its action?

As an entertainment I'm doing a "mini-game" based on Stargate, the platform is pygame, the function of the program is to get random addresses based on a dictionary, the theme is that the program works only once, when you give it button to make t...
asked by 04.03.2018 / 10:42
1
answer

Objects are not drawn and the display appears in black

I'm using Pygame but I can not get my objects to draw correctly. I do not get any errors and the application responds correctly. The objects are displayed correctly in the console (with print ), only the display appears black. This is m...
asked by 15.07.2017 / 18:33
0
answers

main () error missing 1 required positional argument: 'self'

I'm starting in this pygame and I get this error in main ()    missing 1 required positional argument: 'self' import pygame import random r1=pygame.Rect(0,0,0,0) pygame.init() class Recs(object): def __init__(self,numeroinicia):...
asked by 07.07.2017 / 14:29