Skip to content
Muhammed Zafar edited this page Jul 7, 2025 · 4 revisions

Homepage

Home

The homepage serves as the central hub of TheLifeOfPy. It includes:

  • The environment where your organisms live and interact.
  • A sidebar for navigating to graphs, documentation, and the Laboratory, where new creatures are designed.
  • Additional functionalities to control and monitor your simulation.

Major Components

Environment

The environment is where organisms live, move, and interact. It also contains plant shrubs, which serve as a vital energy source.

Plants

Plants appear as tiny green dots and are the primary energy source for organisms. Currently, consuming plants is the only way for creatures to regain energy.


Laboratory

You can access the Laboratory from the sidebar by selecting Create Organism.

Attributes

Attributes Lab

The Attributes Lab allows you to define the physical traits of your organisms.

Key Attributes

Initial Population

  • The starting number of organisms.
  • Default: 10 | Max: 1000

Species

  • Unique name for the species, allowing creatures to recognize each other.
  • Auto-generated but can be modified.

Defense Mechanism

  • None → No defense.
  • Swordling → Can kill other organisms that lack a shield or camouflage.
  • Shieldling → Protection against Swordlings.
  • Camoufling → Currently functions the same as Shieldling (no additional benefits yet).

Domain

  • The shape of the creature (purely visual).

Vision Radius

  • Determines how far a creature can see.
  • Default: 40 | Max: 100

Age of Maturity

  • The age at which a creature becomes capable of mating.
  • Default: 200

Size

  • The visual size of the creature.
  • Default: 10 | Max: 100

Color

  • The body color of the creature (purely visual).
  • Default: Randomly generated.

Max Speed

  • The highest speed at which the creature can move.
  • Default: 1

Max Lifespan

  • The maximum time a creature can exist before dying, regardless of other conditions.
  • Default: 100000

Max Energy

  • The total energy a creature starts with at birth.
  • Consumed energy cannot exceed this value.
  • Default: 1000

Neural Lab

Neural Lab

In the Neural Lab, you define how your organisms behave by configuring their sensors, actuators, and neural connections. These connections include hidden neurons, bias neurons, and weights, determining how the organism processes information and reacts to its environment.

The sensors and actuators will be explored in more detail on the next page.