Commit 19/03-24
Fixed issue with terrain height level (y level on the x-y coordinate system) not properly being assigned and creating double-layers. Also fixed problem with "null terrain" being created and turned into a biome. Added biome balance to help regulate amount of each biome spawning.
This commit is contained in:
parent
808e806b6a
commit
cbc07fdf16
19 changed files with 462 additions and 30 deletions
7
Main.py
7
Main.py
|
|
@ -1,5 +1,6 @@
|
|||
import pygame
|
||||
import sys
|
||||
from threading import Thread
|
||||
|
||||
sys.path.append('./Map')
|
||||
|
||||
|
|
@ -89,10 +90,8 @@ GameMap = MapManager.MapManager()
|
|||
|
||||
GameMap.load(map)
|
||||
|
||||
screen.blit(map, maprect)
|
||||
pygame.display.flip()
|
||||
|
||||
GameMap.populate(map)
|
||||
t = Thread(target=GameMap.populate, args=(map,))
|
||||
t.start()
|
||||
|
||||
time2 = pygame.time.get_ticks()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue