v1.0.4
Voilaaa!!! This is my 5th ship for this project. seems like its been about a week since I have started this project and it has come to become quite complex now. I have focused more on usability and good-to-have features in this update. Added a few modes to increase the fun threshold though.
new mode
-
repel (x): the mouse pointer changes to a no entry sign like symbol and all the particles are repelled by the mouse pointer. they try to escape and run away from the mouse pointer as much as they can.
-
disco (d): in this mode, the particles change their color continuously (every 0.8s fyi). also added an epilepsy warning before the starting of this mode so that it doesnot cause any harm to anyone [ it was suggested by a voter in the previous updates ].
code
- i have finally refactored the code in this update. made a new js folder which comprises all the code. broke it down into 6 js files. you can find more info in the readme.md in the repo.
- the friction slider was wrong all this time. there was a simple logical error in the code. dont know how this was passed on through all these 4 updates hehe
new keybindings
-
R -> it restarts the simulation. if you are bored with your current simulation or you messed up something, you can press R and a new blank canvas will appear for you to get your creative juices flowing again.
-
H -> it hides the panel. allows more space to have fun with. when the panel is hidden, it shows a small text in the top left corner of the screen which gives info about the major shortcuts like toggle panel(h), restart(r), screenshot(q), etc
-
Q -> screenshot. it snaps a pic of the current simulation you are doing. it ignores all the UI elements and shows your particles and their fun behaviors only. it took a bit too long to add this but finally it has been added. yay!
ui
to sum up the updates in UI:
- i have added a new color palette system which contains 5 of them (default, ice, fire, neon and mono). the panel has a section for selecting a palette.
- added a screenshot button which takes a snap of your simulation and gives it to you, which you can download, print and keep it in your workspace or show it to your friends, great flex hehe ;)
- the disco mode shows an epilepsy warning everytime you try to start it. it was a need (one of the voters requested for it)
sound
yepp, i have introduced sounds in this update. not globally, it is just in two buttons. one is the screenshot button, which makes a camera snap sound effect when clicked and the other is the dice button which makes dice roll sound effect when clicked. thanks to pixabay for helping me with the sound effects!
future improvements
if i continue on this project, i will have to improve on these things;
- the epilepsy warning shows up each and every time the disco mode is fired up. kinda annoying ngl
- particles count text color changes only when it reaches the particle count to that limit for the first time.
- need to add a FINAL fun mode. couldn’t think of anything yet.
- maybe add more sound effects throughout the game.
note
As I say always, this is the particle simulator that I have always wanted to play since my childhood, from the good ol’ mrdoob days. This project started as a simple project but has turned out to be not so simple and packed with a lot of features in every ship. Been putting a lot of hrs last week for this, need to touch some grass again. Might be inactive for a few weeks following this update. Till then, have fun simulatingg particlessss!