alpapaydin / Godot4-3D-Smooth-Destructible-Terrain

A basic demonstration of procedural smooth terrain generation in Godot 4 in 100 lines.
MIT License
14 stars 3 forks source link

Right click to place dirt. #5

Closed gregrylivingston closed 1 month ago

gregrylivingston commented 1 month ago
  1. Add an alt action input to add dirt instead of digging.
  2. Modified player controller to include the alt action (break blocks now takes a bool that decides where it is digging or placing dirt).
  3. Modify world.gd to flip digging value depending on user action.