Skip to content
Soszust40 edited this page Nov 4, 2025 · 3 revisions

🎮 Game Settings

These settings control the player experience, appearance, and core game physics for both Player and AI modes.

  • Window Size: Sets the width and height of the game window in pixels.
  • Language: Changes the text for the menus and UI elements. The available options are English and Spanish.
  • Music Volume: Controls the volume of the game's sound effects, such as the jump, death, and score-milestone sounds.
  • Daylight Cycle: Toggles the visual theme of the game.
    • Auto: The game starts in "Day" mode and automatically switches to "Night" mode and back again as your score increases.
    • Day: Forces the game to always use the "Day" theme (white background).
    • Night: Forces the game to always use the "Night" theme (dark background).
  • Initial Game Speed: Sets the starting speed for the ground and obstacles. In both game modes, the speed will gradually increase as the score gets higher.
  • Dino Gravity: Adjusts the gravity value applied to the dino. A higher value will make the dino feel "heavier," causing it to fall faster and have a shorter jump. A lower value will make it feel "lighter" and floatier.
  • Bird Spawn Score: The score the player must reach before birds (Pterodactyls) will begin to appear as obstacles. This is used in both Player and AI modes. Setting this to -1 disables birds entirely.

🧠 AI Settings (NEAT)

These settings directly configure the parameters for the NEAT (NeuroEvolution of Augmenting Topologies) algorithm. They control how the AI "evolves" and learns. These values are saved to the neat-config.txt file.

  • Population Size: The number of dinos (genomes) that are tested in each generation.
  • Fitness Threshold: The AI's training will automatically stop if any single dino reaches this fitness score (which is based on game score), as it is considered "solved".
  • Max Generations: The maximum number of generations the AI will run for before the training session stops. This value is loaded from the main settings.
  • Reset on Extinction: If set to True, the NEAT population will be re-created from scratch if an entire generation fails to reproduce (goes extinct).
  • Activation Function: The mathematical function (like relu, sigmoid, or tanh) that neurons in the AI's "brain" use to process inputs and decide on an output (like "jump" or "duck").
  • Weight Mutation Rate: The probability (from 0.0 to 1.0) that the connection strength (weight) between two neurons will be randomly changed when a new AI is "born".
  • Compatibility Threshold: A NEAT-specific value that controls how dinos are grouped into "species." AIs with similar "brain" structures are grouped together to compete, which protects new, innovative structures from being eliminated too quickly.
  • Max Stagnation: The number of generations a species is allowed to exist without any improvement in its top fitness score. If it exceeds this, the species is considered "stagnant" and is removed.
  • Survival Threshold: The percentage (from 0.01 to 1.0) of the worst-performing dinos within each species that are eliminated every generation.
  • Species Elitism: The number of top-performing dinos in a species that are guaranteed to pass on to the next generation without any mutations.
Clone this wiki locally