# constantes.py
"""Toutes les constantes du jeu Bucheron - Projet NSI Première"""

# ── Fenêtre ────────────────────────────────────────────────────────────
LARGEUR     = 900
HAUTEUR     = 650
FPS         = 60
HAUTEUR_HUD = 55   # hauteur de la barre d'info en haut

# ── Couleurs (R, G, B) ─────────────────────────────────────────────────
BLANC        = (255, 255, 255)
NOIR         = (  0,   0,   0)
JAUNE        = (255, 215,   0)
ORANGE       = (255, 140,   0)
ROUGE        = (220,  50,  50)
GRIS         = (140, 140, 140)
GRIS_CLAIR   = (210, 210, 210)

HERBE        = ( 76, 153,   0)
VERT         = ( 60, 160,  60)
VERT_FONCE   = ( 30, 100,  30)
VERT_CLAIR   = (144, 238, 144)

MARRON       = (139,  90,  43)
MARRON_FONCE = ( 90,  50,  20)
PEAU         = (210, 160, 110)
CHEMISE      = ( 50, 100, 200)
JEAN         = ( 60,  60, 160)

# Bouleau
BLANC_BOULEAU = (235, 230, 215)
VERT_BOULEAU  = (180, 220, 130)

# Chêne
BRUN_CHENE    = ( 70,  40,  10)
VERT_CHENE    = ( 20,  80,  20)

# Rochers
GRIS_ROCHER       = (115, 110, 105)
GRIS_ROCHER_CLAIR = (165, 160, 152)
GRIS_ROCHER_FONCE = ( 75,  70,  65)
RAYON_ROCHER      = 24

# Hache améliorée
DUREE_HACHE_AMELIOREE = 600   # frames = 10 s à 60 FPS
DELAI_COUPE_AMELIORE  =   8   # frames entre coups (vs 25 normal)

# ── Joueur ─────────────────────────────────────────────────────────────
VITESSE_JOUEUR = 3
TAILLE_JOUEUR  = 22    # rayon de collision du joueur
PORTEE_COUPE   = 52    # distance max pour couper un arbre (pixels)
DELAI_COUPE    = 25    # frames entre deux coups de hache (~0,4 s à 60 FPS)

# ── Arbres ─────────────────────────────────────────────────────────────
RAYON_ARBRE = 20       # rayon du feuillage

# ── Niveaux ────────────────────────────────────────────────────────────
ARBRES_BASE      =  5  # arbres au niveau 1
ARBRES_INCREMENT =  3  # arbres supplémentaires par niveau
