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:
Zaponium 2024-03-19 00:49:20 +01:00
commit cbc07fdf16
19 changed files with 462 additions and 30 deletions

View file

@ -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()