User Profile
Collapse
-
Try to copy the compiled(.pyc) mixer module from the pygame folder(Under Pythonx/Lib/site-packages/pygame). -
Pixelperfect Collision, hitmask/blank error
I am trying to understand the way that pixelperfect collisions works, I have made a program using two circles(images) bouncing around in the pygame window. This is the script:
Code:import pygame, importedfunctions, random pygame.init() clock = pygame.time.Clock() screen = pygame.display.set_mode([640,480]) class BallClass(pygame.sprite.Sprite): def __init__(self, x,y): pygame.sprite.Sprite.__init__(self)
-
Pygame program to executable error color dict?
I started to make a game using pygame.init() and wanted to test if it worked as an executable using py2exe so I made the an setup.py script which i called via cmd followed by py2exe
setup.py
Code:from distutils.core import setup import py2exe setup(console=['SKPD.py'])
Import Error: No module named colordict... -
Python surface error? Why?
I have got a problem in my script. i am trying to make an rpg game(Yeah yeah i just started...). When i run the program and push any of the arrow keys i get an error. Why ?
The errors look like the followings
Code:elif event.key == pygame.K_DOWN: y = y - 20 screen.blit(player[x, y])
Code:def Walk(self, x, y): pygame.draw.rect(screen, [0,255,0],[0, 0, 480, 640])
No activity results to display
Show More
Leave a comment: