/Infinity-Square-Space

Infinity Square/Space. The prototype of the game is open source.

Primary LanguageC#MIT LicenseMIT

Infinity Square/Space.

The prototype of the game is open source. Version 1.0

Features: infinite procedurally generated world, almost complete destructible of everything, a very large number of NPCs (up to 1000 in one star system), battles involving hundreds of NPS, gravity is an important game element.

GitHub Logo

This prototype of the game is completely playable, but nevertheless, this is not a complete game. The source contains all the tools for the development of the game, but you need the above-average programming skill. There are no comments in the code, but the code itself is well structured, all the scripts and shaders, functions and variables are named so that it is clear what they are responsible for.

This game prototype consists of five main parts:

  • Pools of static game objects.
  • Procedural generation based on the coordinate system.
  • The system of destruction, based on the substitution of objects, objects from the pool of static objects.
  • Artificial intelligence, with a primitive simulation of life and interaction with each other, the world and the player.
  • Game controller, with a set of weapons and skills.

In the folder Infinity-Square-Space/Version 1.0/Compiled Builds/ are compiled builds of the game, under different API DirectX 11, DirectX 12 and Vulkan.

Web version - https://nvjob.itch.io/infinity-square-space-web


Prerequisites

To work on the project, you will need a Unity version of at least 2018.3.9f1 (64-bit).

Installation:

  • Create a new project in Unity.
  • Download from the folder Infinity-Square-Space/Version 1.0/Sources/ archive Assets.zip, ProjectSettings.zip and unpack them in the directory of your new project.
  • Open the desired scene in the Scenes directory.

GitHub Logo GitHub Logo GitHub Logo

Basic information

The “Main” directory contains all the files and scripts associated with the procedural generation of the planetary system. The “AI“ directory contains all the files and scripts associated with artificial intelligence. The “Player” directory contains all the files and scripts associated with the game controller, inventory and interface. The “Menu” directory contains all the files and scripts associated with the initial menu for selecting a planet.

The “Universe” script in the “Menu” scene is responsible for generating the star field.

GitHub Logo GitHub Logo

The “StarSystem” script in the “Main” scene is responsible for generating the star system.

GitHub Logo GitHub Logo

When you first start in the editor, first start the “Menu” scene to apply the settings of the “Main” scene, which are stored in “PlayerPrefs”. To test the main “Main” scene, you can generate the star systems you need using test seed.

GitHub Logo


Authors

Designed by #NVJOB Nicholas Veselov | https://nvjob.pro | http://nvjob.dx.am | https://twitter.com/nvjob

License

This project is licensed under the MIT License - see the LICENSE file for details

Notice

I am aware that sounds do not spread in space. And there are no square planets in space. And gravity works differently.