Universe and planets

The universe is the environment where the player encounters planets, spaceships, and asteroids. It serves as the primary means for the player to traverse between different planets.

## Mechanics

Universe is generated using a 2D rolling mechanism. When a new game is created, a grid consisting of 100 x 100 sectors is generated. Procedural generation determines the distribution of sectors within the grid. Each sector can contain celestial bodies such as planets or stars, while some sectors remain empty. The universe sectors are arranged in a manner resembling the surface of a football. If a player continues to move in the same direction, he will return to their starting point.

An example of universe is represented on image below. Each pixel represent one sector, and the color represent a different celestial body.

## Spawn

The default planet where the player initially spawns is typically situated near sector 0,0. Upon spawning, the can player appear on one of three types of planets: temperate, forested, or mediterranean. These default peaceful planets consistently feature a village, providing player with a convenient starting point. The planet spawn is generally located near the center of the planet, with slight adjustments made to the spawn point if it falls in water.

## Planets

Each planet is a unique with procedurally generated worlds containing distinct characteristics, and featuring a variety of vegetation and entities. These planets can host various structures, including villages, graveyards, ruins, trading outposts, igloos, and more. Exploring different planets is the primary way to acquire valuable resources, but the player must exercise caution, as some planets can be extremely hostile. The list of available planets is given below:

* Temperate planet
* Forested planet
* Mediterranean planet
* Islands planet
* Desertic planet
* Glacial planet
* Volcanic planet

## Celestial bodies

Celestial bodies refer to any astronomical objects other than planets. Certain sectors may contain bodies like stars or black holes, and these can be incredibly perilous. Black holes are known for causing the loss of many spaceships, as they exert powerful gravitational forces that can attract and ultimately destroy ships. The player can also come across asteroid fields, which are great sources of stone, but navigating them comes with the risk of damaging the spaceship's hull, potentially leading to destruction. Here is a list of available celestial bodies:

* Asteroid field
* Star
* Black hole

## Spaceships

Different types of spaceships can be found in the universe. While some of these ships are peacefully traveling and have no intention of attacking the player, others are more aggressive and will not hesitate to engage the player to acquire their resources. All spaceships are equipped with cannons, which they can use both for offense and defense. This makes space combat an essential part of the game.

The quantity and location of unknown spaceships in the universe are entirely random, so the player can encounter them virtually anywhere in space. Be prepared to navigate the cosmos carefully and engage in combat when necessary.

## Hyperspace travel

hyperspace travel is a feature available by consuming hyperspace fuel. It allows the player to rapidly navigate the universe, but it comes at the cost of consuming fuel. To initiate a hyperspace jump, the player must access the spaceship interface while in space, choose the desired sector, and click "Hyperspace" to execute the jump. This action not only transports the player to the selected sector but also depletes the hyperspace fuel. Given the rarity and preciousness of this resource, careful management is crucial. It's worth noting that hyperspace travel is only feasible if the player has previously visited the chosen sector, otherwise, the jump will be canceled.