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,15 @@
extends Node2D
@export var small_tree = preload("res://small_tree/small_tree.tscn")
func _ready() -> void:
randomize()
_procgen()
func _procgen() -> void:
for i in range(0, 15):
var grid_pos = Vector2i(randi() % 20, randi() % 20)
if grid_pos.x == 0 and grid_pos.y == 0: continue #NOTE: don't spawn on the player
var st = small_tree.instantiate()
st.position = Vector2(grid_pos * 32)
add_child(st)