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://bpjj0x7jr1k6u"]
[ext_resource type="Script" path="res://scripts/game_resource.gd" id="1_4maxk"]
[ext_resource type="Resource" uid="uid://bsrqp68lxf2f" path="res://data/game_resources/carbon/spawn_pattern_close.tres" id="2_eyt7m"]
[resource]
script = ExtResource("1_4maxk")
atlas_location = Vector2i(5, 3)
pickup_value = 20
name = "Carbon"
spawn_patterns = [ExtResource("2_eyt7m")]

View File

@@ -0,0 +1,11 @@
[gd_resource type="Resource" script_class="SpawnPattern" load_steps=2 format=3 uid="uid://bsrqp68lxf2f"]
[ext_resource type="Script" path="res://scripts/spawn_pattern.gd" id="1_pksks"]
[resource]
script = ExtResource("1_pksks")
min_distance = 8
max_distance = 20
min_spread = 15
quantity = 4
cluster_size = 12