Third day of development
This was little bit short but I implemented almost everything I wanted. (approximate development time 40 minutes)
9/19/20251 min read
During third day of development I didn't have a lot of time to work but I managed to implement almost all functionalities of drag and drop sand feature I wanted.
I started with little discussion with AI about possible implementations of this and then proceeded to implementation. It was pretty straight forward.
To pickup sand I just used circle search function I previously implemented and if block is sand then I put it into list and after search I went through this list and replaced all pixels from it for empty spaces.
Releasing sand was pretty similar, I used circle search to get list of empty spaces and then inserted sand pixels into them, similar to spawning sand from projectiles I did.
There is few things I need to solve before marking this feature as completed. First is circle search, currently it looks like square when releasing sand and I would like to make it look more like a circle. Second thing I need to solve is ghost visualization of blocks that are carried, because currently I just make them disappear and reappear. Current system could also work if I make some custom icons for mouse cursor but I thing it will look more satisfying when you see pixels you carry.
Thanks for reading!