ParticleLife is my revisitation in Java of Particle Life Simulation by Hunar Ahmad.
- SimulationPanel and ControlsPanel both have the
setSimulation(simulation)
method. Refactor code in order to have only 1 method declaration somewhere. Maybe create a superclass for the panels. - Assign the correct access modifier to class fields.
- Create getter and setter methods rather than accessing class fields directly.
- Delete unused ActionListener from ControlsPanel or SimulationPanel.
- Improve JPanel layouts.
- Create a proper "game loop" to run the simulation.
- Improve input handling.
- Improve particles movement precision.
- Fix particles exiting the panel border.
- Find better way to update JFrame title without having to hard-code the title string in the game-loop.