All pastes #1925487 Raw Edit

Draw Map Code

public python v1 · immutable
#1925487 ·published 2010-08-25 23:28 UTC
rendered paste body
#Draw Map Codemapx = 0mapy = 0for x in range(8):    for y in range(12):        if mapx == 600:            mapy += 50            mapx = 0                  #gamedata blit        if gamedata[x][y] == 1:            screen.blit(grass,(mapx,mapy))                    if gamedata[x][y] == 0:            screen.blit(water,(mapx,mapy))        if gamedata[x][y] == 2:            screen.blit(dirt,(mapx,mapy))            #overlaydata blit        if overlaydata[x][y] == 6:            screen.blit(star,(mapx,mapy),star1)            #npc data blit            #player blit                mapx +=50