mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-29 10:54:18 +00:00
54 lines
2.2 KiB
Text
54 lines
2.2 KiB
Text
[gd_scene load_steps=11 format=3 uid="uid://451ddbtq4163"]
|
|
|
|
[ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin_physics_material.tres" id="1_vp2el"]
|
|
[ext_resource type="Texture2D" uid="uid://wpen8vmuyvqv" path="res://entity/item/item_chalice.png" id="2_rnc33"]
|
|
[ext_resource type="Texture2D" uid="uid://dvthocklcjh15" path="res://entity/item/item_chalice_gems.png" id="3_crdaw"]
|
|
[ext_resource type="PackedScene" uid="uid://vkvtap437nnf" path="res://color/colored.tscn" id="4_n40wg"]
|
|
[ext_resource type="Shader" path="res://entity/gem/gem_shading_material.gdshader" id="5_bkxhb"]
|
|
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="6_eanc2"]
|
|
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="7_0qpb5"]
|
|
[ext_resource type="Script" path="res://entity/gem/RandomValue.gd" id="8_87qrp"]
|
|
[ext_resource type="AudioStream" uid="uid://br25ip30mu174" path="res://audio/conversione/mechanic_sound.wav" id="9_v6jws"]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_6xf6v"]
|
|
radius = 12.95
|
|
height = 42.31
|
|
|
|
[node name="ItemChalice" type="RigidBody2D"]
|
|
collision_layer = 5
|
|
collision_mask = 7
|
|
mass = 1.5
|
|
inertia = 800.0
|
|
physics_material_override = ExtResource("1_vp2el")
|
|
continuous_cd = 1
|
|
linear_damp = 0.1
|
|
angular_damp = 0.1
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
scale = Vector2(4, 4)
|
|
shape = SubResource("CapsuleShape2D_6xf6v")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="CollisionShape2D"]
|
|
texture_filter = 1
|
|
texture = ExtResource("2_rnc33")
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
|
|
texture_filter = 1
|
|
texture = ExtResource("3_crdaw")
|
|
|
|
[node name="Colored" parent="CollisionShape2D/Sprite" instance=ExtResource("4_n40wg")]
|
|
shader = ExtResource("5_bkxhb")
|
|
|
|
[node name="Collectible" parent="." instance=ExtResource("6_eanc2")]
|
|
type = &"Gem"
|
|
|
|
[node name="Valuable" parent="." instance=ExtResource("7_0qpb5")]
|
|
value = 10
|
|
|
|
[node name="RandomValue" type="Node" parent="Valuable"]
|
|
script = ExtResource("8_87qrp")
|
|
|
|
[node name="SoundWorking" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource("9_v6jws")
|
|
|
|
[connection signal="collected" from="Collectible" to="Collectible" method="_on_done" flags=18]
|