예제 #1
0
파일: Alipy.py 프로젝트: Skythunder/Alipy
screen = pg.display.set_mode((ww, wh), 0, 32)
pg.display.set_caption(world.name)
# draw the white background onto the surface
WHITE = (255, 255, 255)
screen.fill(WHITE)
pg.display.update()
'''
ccc=Creature(1)
ccc.generateGene()
world.tiles[12][6].content=ccc
ccc.xpos=6
ccc.ypos=12
world.creatures[ccc.creature_id]=ccc
'''
#world.randomPop([6,6,6])
world.readPop("lista.csv")
#print str(ccc)
# run the main loop
print_creatures = False
print_creatures_file = False
stats = False
while True:
    #process events
    for event in pg.event.get():
        if event.type == pg.QUIT:
            pg.quit()
            sys.exit()
        if event.type == KEYDOWN:
            if event.key == K_UP:
                fps+=10
            if event.key == K_DOWN: