2023-10-02 12:18:48 +00:00
|
|
|
[gd_scene load_steps=9 format=3 uid="uid://6pp1pebasum3"]
|
2023-10-02 09:21:27 +00:00
|
|
|
|
|
|
|
[ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin_physics_material.tres" id="1_1d567"]
|
2023-10-02 12:18:48 +00:00
|
|
|
[ext_resource type="Script" path="res://entity/gem/gemstone.gd" id="2_4sf3r"]
|
2023-10-02 09:21:27 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://b21bsbo5f0ed7" path="res://entity/gem/gemstone.png" id="2_gmg5g"]
|
2023-10-02 12:18:48 +00:00
|
|
|
[ext_resource type="Shader" path="res://entity/gem/gemstone.gdshader" id="3_v0fk6"]
|
2023-10-02 09:21:27 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="4_01x0a"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="5_wdbjk"]
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_130vq"]
|
|
|
|
radius = 4.0
|
|
|
|
height = 10.0
|
|
|
|
|
2023-10-02 12:18:48 +00:00
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_sakte"]
|
|
|
|
shader = ExtResource("3_v0fk6")
|
|
|
|
shader_parameter/Shift_Hue = null
|
|
|
|
|
2023-10-02 09:21:27 +00:00
|
|
|
[node name="Gemstone" type="RigidBody2D"]
|
|
|
|
collision_layer = 5
|
|
|
|
collision_mask = 7
|
|
|
|
mass = 1.5
|
|
|
|
inertia = 800.0
|
|
|
|
physics_material_override = ExtResource("1_1d567")
|
|
|
|
continuous_cd = 1
|
|
|
|
linear_damp = 0.1
|
|
|
|
angular_damp = 0.1
|
2023-10-02 12:18:48 +00:00
|
|
|
script = ExtResource("2_4sf3r")
|
2023-10-02 09:21:27 +00:00
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
scale = Vector2(2, 2)
|
|
|
|
shape = SubResource("CapsuleShape2D_130vq")
|
|
|
|
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
|
|
|
|
texture_filter = 1
|
2023-10-02 12:18:48 +00:00
|
|
|
material = SubResource("ShaderMaterial_sakte")
|
2023-10-02 09:21:27 +00:00
|
|
|
texture = ExtResource("2_gmg5g")
|
|
|
|
|
|
|
|
[node name="Collectible" parent="." instance=ExtResource("4_01x0a")]
|
|
|
|
type = &"Gem"
|
|
|
|
|
|
|
|
[node name="Valuable" parent="." instance=ExtResource("5_wdbjk")]
|
|
|
|
value = 10
|
|
|
|
|
|
|
|
[connection signal="collected" from="Collectible" to="Collectible" method="_on_done"]
|