Add start of ship editing
This commit is contained in:
parent
d85338d9f2
commit
b88c0eb358
18 changed files with 288 additions and 100 deletions
|
@ -2,13 +2,14 @@
|
|||
* Constants that do not change during gameplay.
|
||||
* This can kind of be treated like a configuration file, I guess.
|
||||
*
|
||||
* All le
|
||||
* All length units are relative to the size of a small ship module, which
|
||||
* is always 1x1.
|
||||
*/
|
||||
|
||||
// For fixing floating point rounding errors.
|
||||
export const EPSILON = 1e-8;
|
||||
// Unit length of sector. Only for internal representation.
|
||||
export const SECTOR_SIZE = 512;
|
||||
// Star count per sector.
|
||||
export const STAR_DENSITY = (SECTOR_SIZE ** 2) / 10000;
|
||||
// G, G-boy, The big G, Mr. G, g's big brother, G-dog
|
||||
export const GRAVITATIONAL_CONSTANT = 0.01;
|
||||
// Perspective constraints. Higher zoom value = closer.
|
||||
|
@ -16,3 +17,10 @@ export const MIN_ZOOM = 1;
|
|||
export const MAX_ZOOM = 100;
|
||||
export const DEFAULT_ZOOM = 10;
|
||||
export const ZOOM_SPEED = 0.01;
|
||||
// Ship landing. Angle in radians.
|
||||
export const TIP_ANGLE = 30.3;
|
||||
export const TIP_SPEED = 0.015;
|
||||
// Ship flight mechanics. Speed measured in units per tick.
|
||||
export const FUEL_BURN_RATE = 0.01;
|
||||
// Distance at which an orbited planet will not be considered a parent body.
|
||||
export const MAX_PARENT_CELESTIAL_DISTANCE = 120;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue