User Profile

Collapse

Profile Sidebar

Collapse
Trolkar8
Trolkar8
Last Activity: Jun 11 '12, 06:52 PM
Joined: Nov 9 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Try to copy the compiled(.pyc) mixer module from the pygame folder(Under Pythonx/Lib/site-packages/pygame).
    See more | Go to post

    Leave a comment:


  • Trolkar8
    started a topic Pixelperfect Collision, hitmask/blank error

    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)
    ...
    See more | Go to post

  • Trolkar8
    started a topic Pygame program to executable error color dict?

    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'])
    But after that when i try to run the program from the dist folder i get the error:
    Import Error: No module named colordict...
    See more | Go to post

  • Trolkar8
    started a topic Python surface error? Why?

    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])
    ...
    See more | Go to post
    Last edited by Trolkar8; Nov 9 '11, 09:13 PM. Reason: forgot something
No activity results to display
Show More
Working...