1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-28 18:34:18 +00:00
swear-jar/entity/coal_diamond/diamond.tscn

37 lines
1.4 KiB
Text
Raw Normal View History

2023-10-02 18:36:00 +00:00
[gd_scene load_steps=6 format=3 uid="uid://cr5tiep20hk0s"]
[ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin_physics_material.tres" id="1_mma75"]
[ext_resource type="Texture2D" uid="uid://bquk2q5g6bst5" path="res://entity/coal_diamond/diamond.png" id="2_abwth"]
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="3_n4fa5"]
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="4_yfos5"]
2023-10-02 20:29:40 +00:00
[ext_resource type="Script" path="res://entity/gem/RandomValue.gd" id="5_g8xmh"]
2023-10-02 18:36:00 +00:00
[node name="Diamond" type="RigidBody2D"]
collision_layer = 4
collision_mask = 14
2023-10-02 20:12:29 +00:00
mass = 3.0
inertia = 400.0
2023-10-02 18:36:00 +00:00
physics_material_override = ExtResource("1_mma75")
continuous_cd = 1
linear_damp = 0.1
angular_damp = 0.1
2023-10-02 20:29:40 +00:00
[node name="CollisionShape2D" type="CollisionPolygon2D" parent="."]
2023-10-02 21:33:32 +00:00
scale = Vector2(1.5, 1.5)
2023-10-02 20:29:40 +00:00
polygon = PackedVector2Array(0, 8, 10, -2, 4, -8, -4, -8, -10, -2)
2023-10-02 18:36:00 +00:00
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
texture_filter = 1
texture = ExtResource("2_abwth")
[node name="Collectible" parent="." instance=ExtResource("3_n4fa5")]
type = &"Diamond"
[node name="Valuable" parent="." instance=ExtResource("4_yfos5")]
2023-10-02 20:29:40 +00:00
value = 10000
[node name="RandomValue" type="Node" parent="Valuable"]
script = ExtResource("5_g8xmh")
min_value = 9000
max_value = 16000