Falling Sand

Falling Sand

11 devlogs
7h 42m
•  Ship certified
Created by Fire coin

A sandspiel copy (I did not know that sandspiel existed when I started this project) made in python tkinter. It includes some basic mechanics of different blocks falling down; water, lava and acid spilling. Wall being as immovable obstacle and simple sinking of sand in water and water forming stone in contact with lava. It also includes few different sizes for creation of blocks. I coded without AI and did not generate anything with it.

Timeline

Ship 1

1 payout of shell 182.0 shells

Fire coin

about 1 year ago

Fire coin • Covers 11 devlogs and 7h 42m

Fixed error when closing the window with the 'X'. Also compiled the exe file and published it on github.

Update attachment

Updated readme

Update attachment
Earned sticker

Added 2 new blocks, lava and stone. In contact with water, lava converts into stone. Stone does not fall. Both of them can be dissolved by acid.
Also added slider for diameter of creation blocks at cursor.

Update attachment
Earned sticker

Added acid to the game, it dissolves everything except air and itself. While creating it, I refactored some of the code to make it more readable.

Made sand falling down through water, it turned out to be more complex than I first thought.

Added functionality to water block, now it flows and spills.

Update attachment

Created a menu to select which block to create on canvas. Now the pixel window has an internal variable that tracks which block is currently selected to be drawn, when you choose from the menu, it changes. Otherwise no more blocks or block functionality added.

Update attachment

I have created an enum for block types, due to that I also had to correct the code to accept the enum instead of the integer. As next I have added colors to the blocks, and added 3 blocks in total: sand, wall and water. Currently only sand and wall blocks have implemented functionality. Sand logic is the logic from previous devlogs, and the wall is just standing still.

Update attachment

Added new rule for falling, to the pixels, now when they are on some other pixel, they will fall diagonally down either to the right or to the left, if there is free spot.

Update attachment

The pixel now have only 1 rule for falling, that is when it is free beneath them, they will fall. You can create more pixels by dragging with left mouse button pressed.

Update attachment

Created a pixel window class, which resizes based on number of rows, columns and pixel size.

Update attachment