Heck yeah, you punch those trees, Gary!

This commit is contained in:
2025-10-31 21:10:55 +11:00
commit ee8deac651
27 changed files with 382 additions and 0 deletions

9
terrain/terrain.gd Normal file
View File

@@ -0,0 +1,9 @@
extends TileMapLayer
var dirt_id = 0
var grass_id = 1
func _unhandled_input(event: InputEvent) -> void:
if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT and event.is_pressed():
var coords: Vector2i = local_to_map(event.position)
set_cell(coords, dirt_id, Vector2i.ZERO, 0)