Jasper ha scritto:
Richard Jones wrote:
On Wed, 5 Sep 2007, pistacchio wrote:
maps are certainly a very common feature in game development. the
easiest way to trace maps (and the one that i've used in other
languages
in tha past) is to use multidimensional arrays. so, a tile-map, c
Jasper ha scritto:
Richard Jones wrote:
On Wed, 5 Sep 2007, pistacchio wrote:
maps are certainly a very common feature in game development. the
easiest way to trace maps (and the one that i've used in other
languages
in tha past) is to use multidimensional arrays. so, a tile-map, c
Luke Paireepinart ha scritto:
Lenard Lindstrom wrote:
Luke Paireepinart wrote:
In single process mode it will lock up the editor, but frees it
when the window Pygame window closes.
But if you have an error in your code, the window won't exit, and
the editor won't unfreeze. That's the prob
Luke Paireepinart ha scritto:
ght-click and choose edit with IDLE.
instead, open IDLE from the start menu and load your files from within
IDLE (should be in 'recent documents')
there's some problem with IDLE and using the separate subprocess that
only comes up when you right click and edit, so
Richard Jones ha scritto:
On Wed, 5 Sep 2007, pistacchio wrote:
maps are certainly a very common feature in game development. the
easiest way to trace maps (and the one that i've used in other languages
in tha past) is to use multidimensional arrays. so, a tile-map, can be
stored and w
maps are certainly a very common feature in game development. the
easiest way to trace maps (and the one that i've used in other languages
in tha past) is to use multidimensional arrays. so, a tile-map, can be
stored and worked on as a simple array (or list) that goes like this:
tile_map[x][y]
Lenard Lindstrom ha scritto:
James Paige wrote:
On Tue, Sep 04, 2007 at 05:09:14PM +0200, pistacchio wrote:
Greg Ewing ha scritto:
pistacchio wrote:
while not done:
pygame.display.flip()
for event in pygame.event.get():
if event.type == QUIT:
done = True
Greg Ewing ha scritto:
pistacchio wrote:
while not done:
pygame.display.flip()
for event in pygame.event.get():
if event.type == QUIT:
done = True
Note that pygame.event.get() doesn't block, so you're
spinning in an extremely busy loop here. The screen
m
hi to all!
this is my first post in pygame (windows xp, python 2.5). i've started
using pygame some days ago and after a bit of coding i'm completely
stuck. the problem is that even the simpliest code like
import pygame
from pygame.locals import *
pygame.init()
screen = pygame.display.set_mode