Tested some custom resources with a test scene.
This commit is contained in:
parent
4c512379c5
commit
1fd4a809f2
14 changed files with 125 additions and 4 deletions
46
ResourceTest.tscn
Normal file
46
ResourceTest.tscn
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
[gd_scene format=3 uid="uid://cbn8gkhh54biw"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://xjow2vrn307m" path="res://test_enemy.gd" id="1_wrqmu"]
|
||||
[ext_resource type="Script" uid="uid://0nsrno5ksdeh" path="res://scripts/ExampleResource.gd" id="2_2fskf"]
|
||||
[ext_resource type="Resource" uid="uid://cy58t3vbkogtu" path="res://resources/example_resource1.tres" id="2_4vrue"]
|
||||
[ext_resource type="Texture2D" uid="uid://dy743vehs0t1t" path="res://icon.svg" id="3_nascw"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_nascw"]
|
||||
script = ExtResource("2_2fskf")
|
||||
speed = 5.0
|
||||
metadata/_custom_type_script = "uid://0nsrno5ksdeh"
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vrue"]
|
||||
|
||||
[node name="ResourceTest" type="Node2D" unique_id=1938241335]
|
||||
|
||||
[node name="TestEnemy" type="Area2D" parent="." unique_id=197600973]
|
||||
position = Vector2(177, 252)
|
||||
script = ExtResource("1_wrqmu")
|
||||
example_resource = SubResource("Resource_nascw")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="TestEnemy" unique_id=392517985]
|
||||
position = Vector2(19, -111)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TestEnemy" unique_id=1888418400]
|
||||
shape = SubResource("RectangleShape2D_4vrue")
|
||||
|
||||
[node name="TestEnemy2a" type="Area2D" parent="." unique_id=681188134]
|
||||
position = Vector2(60, 166)
|
||||
script = ExtResource("1_wrqmu")
|
||||
example_resource = ExtResource("2_4vrue")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="TestEnemy2a" unique_id=479189583]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TestEnemy2a" unique_id=1055590466]
|
||||
shape = SubResource("RectangleShape2D_4vrue")
|
||||
|
||||
[node name="TestEnemy2b" type="Area2D" parent="." unique_id=148383400]
|
||||
position = Vector2(176, 93)
|
||||
script = ExtResource("1_wrqmu")
|
||||
example_resource = ExtResource("2_4vrue")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="TestEnemy2b" unique_id=2119219440]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TestEnemy2b" unique_id=656950543]
|
||||
shape = SubResource("RectangleShape2D_4vrue")
|
||||
Loading…
Add table
Add a link
Reference in a new issue