Changed resource spawning

added interact functionality
temp added zoom with scroll wheel
This commit is contained in:
2024-02-27 10:21:28 -06:00
parent 5467e044a7
commit f87b1cfa9a
17 changed files with 163 additions and 41 deletions

View File

@@ -0,0 +1,11 @@
[gd_resource type="Resource" script_class="GameResource" load_steps=3 format=3 uid="uid://dr00rd4f42jqe"]
[ext_resource type="Script" path="res://scripts/game_resource.gd" id="1_tfoa4"]
[ext_resource type="Resource" uid="uid://0crnt5nbhhlv" path="res://data/game_resources/gem/spawn_pattern_close.tres" id="2_n3fuo"]
[resource]
script = ExtResource("1_tfoa4")
atlas_location = Vector2i(5, 6)
pickup_value = 10
name = "Gem"
spawn_patterns = Array[Resource("res://scripts/spawn_pattern.gd")]([ExtResource("2_n3fuo")])

View File

@@ -0,0 +1,11 @@
[gd_resource type="Resource" script_class="SpawnPattern" load_steps=2 format=3 uid="uid://0crnt5nbhhlv"]
[ext_resource type="Script" path="res://scripts/spawn_pattern.gd" id="1_bi4rm"]
[resource]
script = ExtResource("1_bi4rm")
min_distance = 16
max_distance = 40
min_spread = 30
quantity = 4
cluster_size = 6