Player

The player is a unique entity that interacts with the game using a combination of mouse and keyboard inputs.

## Creating a player

The player can be customized prior to starting a game through a dedicated interface in the game menu. This allows for the creation of a unique player for each game session. Customization options include selecting different skin variants, eye colors, beard styles, and hairstyles.

6 skins variants

7 beards variants

6 eyes variants

11 hairs variants

During the game, the player has the option to change their clothes by either purchasing them from a dyer or crafting them using a spinning wheel.

In addition to physical customization, players also have the option to allocate 7 points to various technical characteristics when creating a new game. These technical characteristics are divided into 3 distinct groups, allowing players to shape their character's abilities and strengths according to their preferred playstyle:

* **Movements**: Each point proportionally increases the speed of player movement (target hit, minerals mining, etc). It also increases the speed when player swims or runs.
* **Strength**: Each strength point grants a +1 damage per hit to any element or entity. If the number of strength points is above 4, the bonus is increased to +2 damages. There is a +10% chance per strength point to trigger this bonus.
* **Luck**: Several advantages like increasing success probability of cloning and entity capture, and also increasing the number of recovered items after death . Moreover, when player uses a tool to destroy something, the selected tool has a small probability to give more items than expected. The number of additional collected items is equal to the number of luck points divided by two.

## Description during game

When a world is created, the player typically spawns near the center of the planet. At this point, the player's inventory is empty, except for a rag shirt and rag pants. The player can move around using the keyboard and interact with various elements on the planet using the mouse. Collected items can be stored in the player's personal inventory, which consists of 24 slots. Additionally, the player can utilize crafting tables and engage in trade with villagers to steadily expand their available resources.

The quick bar, located at the bottom of the screen, also displays the player's health and energy levels. It provides a convenient way for the player to access their selected items. The player can easily switch between items in the quick bar by scrolling the mouse wheel.

Additionally, the player has the ability to sprint and jump. Sprinting consumes energy at a faster rate, approximately four times higher than the standard walking speed, but it significantly increases the player's movement speed. Jumping, on the other hand, does not have any negative effect on the player's energy level.

## Combat mode

When the player engages in combat by either attacking an entity or being attacked, they enter into combat mode. In this mode, the player is restricted from performing certain actions such as changing maps, entering buildings, escaping from a planet, or exiting a cave. It is necessary to finish the combat before engaging in other activities. The combat mode remains active until seven seconds have passed without the player delivering or receiving a hit. At that point, the combat mode is automatically deactivated. To indicate that the player is in combat mode, the quick bar turns red, providing a visual indicator.

## Energy and life

> I've learned that each type of food provides unique health benefits and varying levels of energy. This is very interesting.
>
> Traveller

Player must monitor their energy and health bars. The energy bar is on the left, indicating energy, while the health bar is on the right, representing current health points. Player loses energy when:

* He walks
* He sprints (losing x4 more energy than walking)
* He is in combat mode
* It snows on a glacial planet

When the energy bar reaches 0, the player becomes weakened, losing the ability to sprint and experiencing reduced strength during combat or mining. Energy can be restored by sleeping or consuming food. Different foods have varying nutritional values, affecting health and energy differently. For instance, stews are more beneficial for health, while blueberries provide a greater energy boost.

Player's health gradually decreases when being hit by entities or coming into contact with lava. If the health value reaches 0, the player is automatically killed. Consuming food helps to restore health. Wearing armor can also reduce the probability of taking damage.

## Death

Player can meet their demise through various means such as contact with lava, combat with entities, or falling from a planet. Upon death, 70% of the player's inventory is lost, and they respawn on their initial planet with only a rag shirt and rag pants. The remaining items are left behind on the ground.

However, the player can improve its luck stat to reduce the number of items lost upon death. Each point of luck decreases the probability of losing an item by 10% when the player is killed.

## History

* Added 1 new beard variants
* Added 2 new skin variants
* Added 2 new eyes variants
* Added 3 new hairs variants
 0.1.0