Re: [pygame] Break outside the loop

2007-11-14 Thread David Muffley
On Nov 14, 2007 9:52 PM, Joseph king <[EMAIL PROTECTED]> wrote: > I keep getting a ***'break' outside the loop error on this code can anyone > help > > > for y in range(8): > for x in range(8): > c = Canvas() > c.grid(column=x, row=y) ># make a grid > grid = Grid(c, cell

Re: [pygame] Break outside the loop

2007-11-14 Thread Ian Mallett
In this case, it looks like your except thing happens after the loop ends. (StopIteration). Replace it with 'pass', and it should work. Ian

[pygame] Break outside the loop

2007-11-14 Thread Joseph king
I keep getting a ***'break' outside the loop error on this code can anyone help for y in range(8): for x in range(8): c = Canvas() c.grid(column=x, row=y) # make a grid grid = Grid(c, cellsize_x=8, cellsize_y=8, gridsize_x=10, gridsize_y=10) # get the maze gener

Re: [pygame] I'm getting BSOD while using PyGame.

2007-11-14 Thread Jake b
On Nov 14, 2007 4:49 AM, Sami Hangaslammi <[EMAIL PROTECTED]> wrote: > On Nov 12, 2007 10:07 PM, Jake b <[EMAIL PROTECTED]> wrote: > > I have Python: 2.5.1, and PyGame: pygame-1.7.1release.win32-py2.5.exe > > Check the other thread on this mailing list titled "BUG: seg fault > when loading image fr

Re: [pygame] I'm getting BSOD while using PyGame.

2007-11-14 Thread Jake b
On Nov 12, 2007 5:25 PM, Brian Fisher <[EMAIL PROTECTED]> wrote: > On Nov 12, 2007 12:07 PM, Jake b <[EMAIL PROTECTED]> wrote: > > I can get an equivalent c++ program to blit tiles using libSDL to work > > fine on both computers. That's why I'm wondering could it have > > anything to do with a cert

Re: [pygame] I'm getting BSOD while using PyGame.

2007-11-14 Thread Jake b
On Nov 12, 2007 3:40 PM, claxo <[EMAIL PROTECTED]> wrote: > Try to shortcut all the fps - cpu caping in your code, see if it > crash or freezes. Its seems to me that that all the restrictions are > fighting. If doenst crash, we know the problem is in the caping. > > claxo updated code: http://www

Re: [pygame] How to manage image source Rect()'s for units

2007-11-14 Thread Lenard Lindstrom
Jake b wrote: How do I do a test in my .add() method to check if the sprite added has a member named '.rect_source' ? ( Because if it does not, I'll default it to its .image.get_rect() ) Just access the attribute and catch the exception if it is not present. def add(self, sprite): try:

[pygame] Ludum Dare X - Dec. 14-16th

2007-11-14 Thread Phil Hassey
Hey, It's time for the 10th Ludum Dare compo! Dec. 7-14th - Registration and Theme Voting Dec. 14 at 7pm PST and runs until the 16th at 7pm PST Join the fun in irc.afternet.org #ludumdare With luck, the compo will be held on www.ludumdare.com .. Be sure to join the irc channel for the most up

[pygame] your game (2-player / multiplayer)

2007-11-14 Thread Michael Schmidt
Hello this mail adresses to the game developers of this list, which are - or plan to extent to - a 2-player / multiplayer game. There is a new Instant Messenger out, which is currently implementing games, which two chatting friends can play against each other. Therefor a communcication layer is

Re: [pygame] How to manage image source Rect()'s for units

2007-11-14 Thread Jake b
On Nov 13, 2007 5:12 PM, Greg Ewing <[EMAIL PROTECTED]> wrote: > Jake b wrote: > > > I tried using a pygame.sprite.RenderPlain(), but I couldn't make it > > use a source rect. > > You could create subsurfaces from the main surface > for all the frames. > > -- > Greg > Is creating a subsurface a sl

Re: [pygame] I'm getting BSOD while using PyGame.

2007-11-14 Thread Sami Hangaslammi
On Nov 12, 2007 10:07 PM, Jake b <[EMAIL PROTECTED]> wrote: > I have Python: 2.5.1, and PyGame: pygame-1.7.1release.win32-py2.5.exe Check the other thread on this mailing list titled "BUG: seg fault when loading image from file object". I'm guessing your problem might be caused by same reason (mis