-
Notifications
You must be signed in to change notification settings - Fork 0
/
exampleFile.txt
17 lines (14 loc) · 996 Bytes
/
exampleFile.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* BELOW IS AN EXAMPLE OF A CORRECTLY FORMATTED PLANET FILE
/* THE FIRST LINE IS THE RUNTIME OF THE SIMULATION IN SECONDS
/* THE SECOND LINE IS THE TIME STEP ADJUSTMENT. THE NUMBER REPRESENTS HOW MANY "REAL LIFE DAYS" ARE REPRESENTED BY ONE SECOND OF SIMULATION TIME
/* THE THIRD LINE IS A SUN OBJECT. THE PARAMETERS ARE NAME, MASS, X POSITION, Y POSITION. AND COLOR, SINCE THE SUN IS THE CENTER OF THE SYSTEM, IT'S VELOCITY IS ALWAYS 0
/* THE NEXT LINES ARE PLANET OBJECTS. THE PARAMETERS ARE NAME, MASS, X POSITION, Y POSITION, X VELOCITY, Y VELOCITY, AND COLOR
/* !! RADII AND MASSES MUST BE POSITIVE !!
/* !! X AND Y POSITIONS MUST BE NON-NEGATIVE !!
/* !! NO SPACES SHOULD BE PRESENT IN THE FILE EXCEPT FOR AFTER THE COMMAS !!
120
20
sun, exampleSun, 25, 1.9885e30, 700, 400, #FFFF00
pla, examplePlanetOne, 3, 3.285e23, 700, 428.95, 47.36e3, 0, #8B4513
pla, examplePlanetTwo, 4, 4.867e24, 700, 346, -35.02e3, 0, #DAA520
pla, examplePlanetThree, 6, 5.972e24, 700, 474, 29.78e3, 0, #00BFFF