Moved godot files into a directory to keep things clean

This commit is contained in:
2025-11-05 15:35:08 +11:00
parent cb85608dfe
commit 9f48ca5ee0
28 changed files with 12 additions and 6 deletions

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)