Welcome to this awesome simulation! Click on the buttons, or press keys to add elements to the screen. The buttons are on the screen, but the keys are Q = Sand W = Ice E = Fire R = Moss These elements react to each other much like you would expect them to in real life. If they do no then please comment in the comments section telling me what interaction i am missing! Also obviously when objects such as sand and fire are moving and processing collisions their will be lag! Unfortunately all though this would run smoothly on a real programming software, scratch doesn't work like that. So dont put to many moving particles down at once!None
This is based off of a good friend of mines project he made. I looked at it and was hooked immediately, however i wanted to try coding it to be much more efficient then scratch's cloning and collision system. What i got was this beauty here! This project works by saving each element to a list then rendering it, collisions work by searching through the list for a specified value. If you end up looking at that code basically i have two loops of numbers making sure every time "Gravity" is called every element is compared to another. I hope to add comments inside to help people inter prate my messy code! Hope you enjoy! And please check out the original! You can find the original here http://scratch.mit.edu/projects/26436564/