diff --git a/GravityDev3.pde b/GravityDev3.pde index 6099e20..07030cd 100644 --- a/GravityDev3.pde +++ b/GravityDev3.pde @@ -1,3 +1,16 @@ +/* + GravityDev3 + Third iteration of a 2D gravity simulator. + by Nayan Sawyer + started Mar 2022 + version 0.3.4 Mar 31 2022 + + Features include clicking on a planet to lock onto it, center a focussed + planet, and pan/zoom. Next version planned will be written in C++ for better + acuracy and memory management, as this one has floating point imprecision + issues, and Processing is not effecient with memory. + +*/ PlanetManager pm; // Manages Planets Gui gui; // Contains and manages gui diff --git a/mGui.pde b/mGui.pde index 83d5706..1e03e7e 100644 --- a/mGui.pde +++ b/mGui.pde @@ -20,6 +20,7 @@ class Gui { } } +//Center button class CButton extends Button{ CButton(){ diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..3ba2363 --- /dev/null +++ b/readme.md @@ -0,0 +1,5 @@ +# GravityDev3 +Third iteration of a 2D gravity simulator. Features include clicking on a planet to lock onto it, center a focussed + planet, and pan/zoom. Next version planned will be written in C++ for better + acuracy and memory management, as this one has floating point imprecision + issues, and Processing is not effecient with memory.