Readonly
assetsReadonly
encyclopaediaReadonly
engineReadonly
mainReadonly
musicReadonly
pauseReadonly
playerReadonly
saveReadonly
sideReadonly
soundReadonly
starReadonly
starReadonly
starReadonly
ttsReadonly
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
The player data.
The timestamp when the save file was created.
The position in the object's frame of reference.
The rotation quaternion in the object's frame of reference.
The coordinates of the body in the universe.
The coordinates of the star system.
Floating point X coordinate of the star system inside the star sector. Must be between -0.5 and 0.5.
Floating point Y coordinate of the star system inside the star sector. Must be between -0.5 and 0.5.
Floating point Z coordinate of the star system inside the star sector. Must be between -0.5 and 0.5.
Integer coordinates of the star sector along the universe X axis
Integer coordinates of the star sector along the universe Y axis
Integer coordinates of the star sector along the universe Z axis
Inits the current star system
The position in the object's frame of reference.
The rotation quaternion in the object's frame of reference.
The coordinates of the body in the universe.
The coordinates of the star system.
Floating point X coordinate of the star system inside the star sector. Must be between -0.5 and 0.5.
Floating point Y coordinate of the star system inside the star sector. Must be between -0.5 and 0.5.
Floating point Z coordinate of the star system inside the star sector. Must be between -0.5 and 0.5.
Integer coordinates of the star sector along the universe X axis
Integer coordinates of the star sector along the universe Y axis
Integer coordinates of the star sector along the universe Z axis
The position in the object's frame of reference.
The rotation quaternion in the object's frame of reference.
The coordinates of the body in the universe.
The coordinates of the star system.
Floating point X coordinate of the star system inside the star sector. Must be between -0.5 and 0.5.
Floating point Y coordinate of the star system inside the star sector. Must be between -0.5 and 0.5.
Floating point Z coordinate of the star system inside the star sector. Must be between -0.5 and 0.5.
Integer coordinates of the star sector along the universe X axis
Integer coordinates of the star sector along the universe Y axis
Integer coordinates of the star sector along the universe Z axis
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
The player data.
The timestamp when the save file was created.
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.