joshdon / ProjectSand

HTML5 Sand Falling Game
https://www.projectsand.io/
GNU General Public License v3.0
60 stars 33 forks source link

Can you pls keep updating #3

Closed nicebenny23 closed 3 years ago

nicebenny23 commented 3 years ago

This game is the best game many add lava rock as something you can place and something that is affected by physics that’s not a particle

nicebenny23 commented 3 years ago

You r the best btw

joshdon commented 3 years ago

Hey, thanks for the nice comments. I'm busy with some other projects right now, but I'm happy to take pull requests :)

Certain elements (such as lava rock) are intentionally meant to be created, rather than placed directly. That said, it is possible to set the pen color to any element you want with the javascript console.

With respect to physics, the main issue is that most elements are stateless. Only particles carry state. This design choice was to support really fast updates for a large canvas holding lots of elements, all from a single javascript thread.