Sand and Water v3.3

Sand and Water v3.3

by griffpatch

๐Ÿ‘ 443,340 โค๏ธ 20,614 โญ 18,062 ๐Ÿ”„ 759
Created: Feb 28, 2018 Last modified: Jan 30, 2024 Shared: Mar 1, 2018

Instructions

โ˜…โ˜…โ˜… SAND and WATER โ˜…โ˜…โ˜… 30 Jan 2024 - v3.3 โ˜… Perfect painting fix Yep - One of those sand simulators :) - So why did I make this project? Well, because this idea came to me - why can't we interact with the sand... like push it around? So I gave it a go! Also, I tried to make the project run quick by using lists of active sand to only process the sand that is moving. I recently updated the project to add water too. Now water simulation is FAR harder and more laggy than sand so forgive the lag if you start trying to hurl lots of water around :) โ˜…โ˜…โ˜… Controls โ˜…โ˜…โ˜… โ€ƒMouse -โ€‚โ€…Move around to push sand. โ€ƒClick -โ€ƒโ€‚Drop New Sand โ€ƒDrag -โ€ƒโ€‚Click and drag a sand dropper to move or delete โ€ƒT -โ€ƒโ€ƒโ€ƒTool - (Spray, Pencil, Eraser, etc) โ€ƒM -โ€ƒโ€ƒโ€ƒMaterial - (Sand, Water, Concrete, etc) โ€ƒS -โ€ƒโ€ƒโ€ƒSize - (of brush / pen) โ€ƒH -โ€ƒโ€ƒโ€ƒHand - (for pushing sand) โ€ƒP -โ€ƒโ€ƒโ€ƒPause โ€ƒR -โ€ƒโ€ƒโ€ƒReset As always - Have fun! โ˜…โ˜…โ˜… So how does it work? โ˜…โ˜…โ˜… I have 3 main lists in my scripts: L - Level Grid (a row for every possible pixel location) A - Active Sand (a list of the active sand locations on the grid) X - Invalidate (a list of screen locations that need repainting) P - Power (used by water to evaporate old water) I only look for movement of active sand pixels, and when one moves, it looks for new sand pixels to add to the active sand pixel list. The pushing of sand is done by tracing from the current mouse position across the sand piles looking for a possible empty space on the other side. โ˜…โ˜…โ˜… Change Log โ˜…โ˜…โ˜… 30 Jan 2024 - v3.3 โ˜… Perfect painting fix 29 Mar 2019 - v3.2 โ˜… Minor painting fix 16 Mar 2018 - v3.1 โ˜… New left hand toolbar โ˜… Sand and water interact better (slow fall and drift in water + fixed water teleporting) 6 Mar 2018 - v2.2 โ˜… Blue is now officially water! Took some doing! Hope it doesn't lag too much to be enjoyable! 5 Mar 2018 - v2.0 โ˜… Removed air bubbles in sand when moved โ˜… Prevent sand being deleted when moved โ˜… Added Toolbar โ˜… Added Blue sand - floats on orange sand โ˜… Added sand droppers

Project Details

Visibility
Visible
Comments
Enabled

More Cool Projects

Project thumbnail
View Project

a bit of code (blockly in scratch) (0.1)

by kikiboom7_3023

Project thumbnail
View Project

NEED TO BE SAFE

by mars_2015

Project thumbnail
View Project

What If Morran And Her Family Was A Beat Up Button?

by IIAndSDFan2k7

Project thumbnail
View Project

WildBrain Logo 2020 "Short Version" With Byline

by furbylover123

Project thumbnail
View Project

YGL Black Hole Add Round 4

by YGL2K14

Project thumbnail
View Project

Geometr taytan 11

by 24bara5

Project thumbnail
View Project

Beat up jenny

by jayjay1i09

Project thumbnail
View Project

Klasky Csupo Robot Logo 4000 ABootOfWithTheHands Error

by ABootOfWithTheHands

Project thumbnail
View Project

Beat Up LarryBoy remix remix

by everton_trader

Project thumbnail
View Project

dwtdir's Russian Alphabet Lore Reloaded - A

by kaliq3176

Project thumbnail
View Project

face

by piczy25

Project thumbnail
View Project

beat up molly 1.3.0 remix

by _MadoX_

Project thumbnail
View Project

PBS Kids - Dot,Dee and Del (Vector Look)

by TheSpiderFoundation

Project thumbnail
View Project

Minecraft Clicker!โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒ #games

by UltraCoolGames

Project thumbnail
View Project

้’ใฎๅก”19้šŽ

by sakaryuu

Project thumbnail
View Project

scratch musics #music

by PAtech

Project thumbnail
View Project

NEW DK Rap Sentence Mixer! (v2.4.2 BETA)

by jjrcode

Project thumbnail
View Project

Talking ellie

by 777shark

Project thumbnail
View Project

Game Creator remix

by Crystlagis32

Project thumbnail
View Project

Advertising Be Like... #all #animations #collab

by yurkuns

Project thumbnail
View Project

ๆŽจใ—ใƒˆใƒฌ2000

by projectroom_kurihama

Project thumbnail
View Project

Fidget Spinner

by popfruitfed

Project thumbnail
View Project

Zeta Z Kids Logo (2009-2022)

by systemGIRL

Project thumbnail
View Project

Beat Up Nickel remix remix

by paata27747438