Readonly
encyclopaediaReadonly
engineReadonly
mainReadonly
musicReadonly
pauseReadonly
playerReadonly
sideReadonly
starReadonly
starReadonly
starReadonly
tutorialGenerate save file data and store it in the autosaves hashmap in local storage
Generates save file data and downloads it as a json file
Generates a save file data object from the current star system and the player's position
Inits the current star system
Loads a save file and apply it. This will generate the requested star system and position the player at the requested position around the requested orbital object. This will perform engine initialization if the engine is not initialized.
The save file data to load
Loads universe coordinates and apply them. This will generate the requested star system and position the player at the requested position around the requested orbital object. This will perform engine initialization if the engine is not initialized.
The universe coordinates to load
Takes a screenshot of the current scene. By default, the screenshot is taken at a 4x the resolution of the canvas
Toggles the star map
Static
CreateCreates the engine and the scenes and loads the assets async
A promise that resolves when the engine and the scenes are created and the assets are loaded
Main class of Cosmos Journeyer. It handles the underlying BabylonJS engine, and the communication between the starmap view and the star system view. It also provides utility methods to take screenshots and record videos. It also handles the pause menu.