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

Mixels Intro S4.5 - But ReMixed

by oliveira_7g

Project thumbnail
View Project

Opening and closing to Own Hour PBS Funding Credits 1993 vhs

by justinc253253

Project thumbnail
View Project

wither storm

by TotallyFake_GVERSE

Project thumbnail
View Project

1v1 pong

by Felixiscool6000

Project thumbnail
View Project

Chonito ball pool OFICIAL

by chonito123

Project thumbnail
View Project

AY in Boulder Attack REDUX! [ Remix 3 | 14 Players ] remix

by santiagomarino2013

Project thumbnail
View Project

(DON'T REPORT) Evil Stephanie Cat escapes from Russia/GROUNDED/gets a punishment day remix

by Petar1928Serbia

Project thumbnail
View Project

salinewin.exe sounds by bytebeat

by TornadoColumma

Project thumbnail
View Project

[3D]ใƒœใƒผใƒซใ“ใ‚ใ“ใ‚2

by s00384206

Project thumbnail
View Project

Lazy Town - The Mine Song CG5 Remix [visualizer] remix

by 456344s

Project thumbnail
View Project

Untitled-3

by footballer2003

Project thumbnail
View Project

Geometry Dash Adrift

by iPhone_ATT_TWC115

Project thumbnail
View Project

Pie Clicker!

by LilyMakesThings

Project thumbnail
View Project

-<[{(Collabs)}]>- talking tom and ben news HD v2 remix-2

by gerofernandez

Project thumbnail
View Project

Beat up P-head but its without music

by itika11

Project thumbnail
View Project

Epic!Sans Battle (Preview)

by Iseekperfection

Project thumbnail
View Project

โ˜ใƒใƒˆใƒซใƒใ‚ฆใƒณใƒ‰ ใ‚ชใƒณใƒฉใ‚คใƒณ (ๅฎŒๅ…จๆ—ฅๆœฌ่ชž็‰ˆ)

by kangekin-yuki

Project thumbnail
View Project

Cannyblocks Band 5 (For JustNumberVectors)

by VP2006S

Project thumbnail
View Project

Numberblocks Band Sixteenths 38 (For @Bfdityler2021)

by AidanScratchMaker

Project thumbnail
View Project

Dateblocks Band 24 (Aidans Version)

by AidanScratchMaker

Project thumbnail
View Project

Beat up an apple (1.1.5)

by catsarereal1233

Project thumbnail
View Project

Undertale fangame test.

by sleepy_weeps

Project thumbnail
View Project

Beat up Edward And Mr Biscuit 2

by Jose52theNauttp

Project thumbnail
View Project

breath of the wild

by OCTOPUS-SQUAD