| 1234567891011121314151617181920212223242526272829303132 |
- from pygame import image
- from os import path
- # taille de la fenêtre
- WINDOW_WIDTH = 1000
- WINDOW_HEIGHT = 700
- # Nombre d'images par secondes
- FPS = 60
- # Nombre de colonnes et de lignes sur la map
- NB_COL = 17
- NB_ROW = 12
- # Espacement entre les tuiles (en px)
- GAP = 8
- # images
- HEXA = image.load(path.join("images/hexa.png"))
- SEED = image.load(path.join("images/seed.png"))
- PLAYER = image.load(path.join("images/player.png"))
- FARMER = image.load(path.join("images/farmer.png"))
- NEST = image.load(path.join("images/nest.png"))
- # tuile de base pour le personnage
- ORIGIN = 0
- # couleurs
- BACKGROUND_COLOR = (24, 40, 69)
|