Demolish-Mode Feature
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 :)
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 |
Changed the label for toggle switch