inert icon indicating copy to clipboard operation
inert copied to clipboard

Demolish-Mode Feature

Open SlowMoschen opened this issue 1 year ago • 2 comments

Hello there 👋

I really enjoyed your Tower-Defence game, but sometimes I miss clicked when placing towers on the grid.

I am currently training to get more used to read and understand codebases from other developers and to add features or fix bugs. So I thought I'll implement a demolish feature to destroy misplaced towers.


following changes were made:

  • Added new UI Elements
    • A checkbox toggle switch to toggle the Demolish-Mode
    • Snackbar toasts to inform user about enabling and disabling of Demolish-Mode
  • Demolishing of misplaced towers
    • Only towers can be demolished - every other structure will be ignored
    • when clicking on a tower in the interface to place another, the Demolish-Mode will be disabled

Check out this little clip which presents the feature

https://github.com/CorentinTh/inert/assets/122015710/6f289f9a-81b8-4721-89dc-142a07a13af5


Hopefully this feature is appreciated :)

SlowMoschen avatar May 18 '24 09:05 SlowMoschen

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
inert ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 18, 2024 11:18am

vercel[bot] avatar May 18 '24 09:05 vercel[bot]

Changed the label for toggle switch

image

SlowMoschen avatar May 18 '24 12:05 SlowMoschen