Re: [pygame] Why does my ball vibrate?

2007-12-01 Thread Matt Smith
Douglas Bagnall wrote: FLOOR = 384 if ypos = FLOOR and velocity 0: overstep = ypos - FLOOR ypos = FLOOR - overstep * bounce velocity = -velocity * bounce I tried using this code and I go back to the situation where the ball continues to bounce when it should

[pygame] Bouncing ball - separating the physics from the frame rate

2007-12-01 Thread Matt Smith
Hi, I know have the following code for my bouncing ball program: #! /usr/bin/python import sys, pygame, math pygame.init() xpos = 92 ypos = 0 gravity = 9.8 velocity = 0 # How much of the velocity of the ball is retained on a bounce bounce = 0.8 screen = pygame.display.set_mode((200, 400),

[pygame] Ludum Dare X - Dec 14-16 - Update

2007-12-01 Thread Phil Hassey
Hey, Ludum Dare 10 is coming! Ludum Dare is a regular community driven game development competition. The goal is, given a theme and 48 hours, to develop a game from scratch. Ludum Dare aims to encourage game design experimentation, and provide a platform to develop and practice rapid game

[pygame] Problem accessing pygame.Rect() members

2007-12-01 Thread Jake b
I wrote a custom pygame.sprite.RenderPlain() class. It modifies .draw() to include a source rect of the sprite. Now I need to modify the dest rect, converting its world() coordinates to screen() coordinates. I wrote: Map().coord_to_screen( world ) and Map().coord_to_world( screen ) and they are

[pygame] Help configuring Pygame on OS X Leopard

2007-12-01 Thread Unnsse Khan
Hello there, I am a Python / Pygame newbie... Installed Pygame by installing the following files located at: http://pythonmac.org/packages/py25-fat/index.html Am running Python 2.5 on OS X Leopard... Copied the following code from Pygame online tutorial: #!/usr/local/bin/python import

Re: [pygame] Help configuring Pygame on OS X Leopard

2007-12-01 Thread Brian Fisher
On Dec 1, 2007 7:10 PM, Unnsse Khan [EMAIL PROTECTED] wrote: Installed Pygame by installing the following files located at: http://pythonmac.org/packages/py25-fat/index.html There isn't a pygame package for python 2.5 at that page... I am not aware of a prebuilt pygame for python 2.5 for Mac

Re: [pygame] Help configuring Pygame on OS X Leopard

2007-12-01 Thread Brian Fisher
On Dec 1, 2007 7:10 PM, Unnsse Khan [EMAIL PROTECTED] wrote: When I ran this program, I receive the following error message: Traceback (most recent call last): File /Users/untz/DevResources/Python/pygame_helloworld/hello.py, line 3, in module import pygame ImportError: No module

Re: [pygame] Help configuring Pygame on OS X Leopard

2007-12-01 Thread Casey Duncan
On Dec 1, 2007, at 8:12 PM, Brian Fisher wrote: On Dec 1, 2007 7:10 PM, Unnsse Khan [EMAIL PROTECTED] wrote: Installed Pygame by installing the following files located at: http://pythonmac.org/packages/py25-fat/index.html There isn't a pygame package for python 2.5 at that page... I am not