feature: added flowers

This commit is contained in:
Ulad 2023-06-15 18:17:12 +02:00
parent 536d232488
commit 4d25ab18e0
1 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import pygame
import random
import Flower
#import Flower
import Beehive
import Frames
from Field import Field, Neighbors
@ -25,6 +25,7 @@ pygame.display.set_icon(setIcon)
### tilemap
FLOWER = 0
SHORT = 1
TALL = 80
TREE = 100
@ -40,7 +41,8 @@ Directions = {
tiles_types = {
SHORT: pygame.image.load('spritesNtiles/shortGrass64.png'),
TALL: pygame.image.load('spritesNtiles/tallGrass64.png'),
TREE: pygame.image.load('spritesNtiles/dirtTree64.png')
TREE: pygame.image.load('spritesNtiles/dirtTree64.png'),
FLOWER: pygame.image.load('spritesNtiles/flower64.png')
}
@ -54,7 +56,7 @@ tilemap_types = []
for x in range(tilemapSizeX):
tilemap_types.append([])
for y in range(tilemapSizeY):
rr = random.choices([SHORT, TALL, TREE], weights=[0.5, 0.4, 0.1])[0]
rr = random.choices([SHORT, TALL, FLOWER], weights=[0.5, 0.4, 0.1])[0]
tilemap_types[x].append(rr)