N-body sim
- 11 Devlogs
- 25 Total hours
Simulates gravitational bodies pulling on each other.
Simulates gravitational bodies pulling on each other.
I have been setting everything up for the ship!!!!
I added a layer of polish to the game. Also got rid of the sliders! They’re too finicky and ugly and take up too much code. I also added a bunch of hotkeys to make the user’s life a bit better. Next thing I post should be the ship!!!!
I added a bunch of new things as well as restructuring the code a bit. I added the ability to manipulate time mainly. I also separated the code a bit so all the physics logic is in its separate file. Hope to ship soon!!!!!!!
I made the bodies colorful! I also added a slider for the mass so the scroll wheel is just for zoom.
Also going to clean up the code soon (I keep procrastinating lol) and this might be the version where I ship et!
Sorry I haven’t posted in awhile, but I got a BIGGIE UPDATEEEEEEEEE
I added the ability to move around the world and zoom in and out of the play area. No more do you have to witness your beautiful 2 body system go off screen into oblivion! Now, you can follow it to the ends of the universe!!!!!!
After this, I plan to clean up the code a bit and change the controls since now the scroll wheel is mixed up with the zooming. I plan to keep adding things to the game until its fun
BIGGE UPDATE ALERT
I added a bunch of buttons on screen that can now be used to place and delete bodies. I also made a bunch of underlying changes so I could do this!
The next thing to add is wasd controls for a player that can move around and follow bodies as they follow their trajectories. After that I may or may not add a rocket to the game. who knows!
I fixed a few bugs including one where the masses were added twice in collisions. I also tweaked the colors and added a mass counter so that the user
can see the exact mass before placing a body.
After doing this, I plan to fix any more bugs and clean up the code. Then I will implement a camera that can follow the bodies and a small ship the player can spawn. After that I (might!) be good night for this project
I finally figured out Github (yayayay!!!) and now my workflow is (hopefully) gud. I also added the proper formula for momentum when a body gets hit. Will need to clean up the code though.
I changed the color of the planets (cyan is kinda getting tired) and I made it so that the planets can gobble each other up
I added user inputs and the ability to shoot your bodies and set their sizes
I’m working on a N-body sim