diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2025-02-12 20:05:59 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2025-02-12 20:05:59 +0100 |
commit | 218748f67a6a6b35efc4a732ad11426d0f528709 (patch) | |
tree | e58504dd758ce6525844872007221cda2a8b6926 /stage/dice_throw/dice.tscn | |
parent | f6c81b065cf4d7f1302a50f2f72cfab32204a1ec (diff) |
Diffstat (limited to 'stage/dice_throw/dice.tscn')
-rw-r--r-- | stage/dice_throw/dice.tscn | 81 |
1 files changed, 67 insertions, 14 deletions
diff --git a/stage/dice_throw/dice.tscn b/stage/dice_throw/dice.tscn index 38f13d0..5834cfb 100644 --- a/stage/dice_throw/dice.tscn +++ b/stage/dice_throw/dice.tscn @@ -1,13 +1,61 @@ -[gd_scene load_steps=13 format=3 uid="uid://dnq7fpof6w0mj"] +[gd_scene load_steps=22 format=3 uid="uid://dnq7fpof6w0mj"] [ext_resource type="Script" uid="uid://bajtxq3ucs8f4" path="res://stage/dice_throw/dice.gd" id="1_gwnix"] [ext_resource type="Texture2D" uid="uid://blanietpri1be" path="res://icon.svg" id="2_6tbdd"] +[ext_resource type="Script" uid="uid://dnklife8p0m35" path="res://stage/dice_throw/dice_face_configuration.gd" id="2_6vba1"] [ext_resource type="PackedScene" uid="uid://y1hkmpd41rrq" path="res://stage/dice_throw/dice_face.tscn" id="2_ee854"] +[ext_resource type="Script" uid="uid://6rit5abkk1rw" path="res://stage/dice_throw/dice_configuration.gd" id="3_juxel"] [ext_resource type="Texture2D" uid="uid://dtltt171temec" path="res://stage/assets/tinyBlocks.png" id="3_t0umq"] [sub_resource type="PhysicsMaterial" id="PhysicsMaterial_m7tx2"] bounce = 0.5 +[sub_resource type="Resource" id="Resource_arxo3"] +script = ExtResource("2_6vba1") +type = "move" +value = 1 +metadata/_custom_type_script = "uid://dnklife8p0m35" + +[sub_resource type="Resource" id="Resource_ms37x"] +script = ExtResource("2_6vba1") +type = "attack" +value = 1 +metadata/_custom_type_script = "uid://dnklife8p0m35" + +[sub_resource type="Resource" id="Resource_tk6el"] +script = ExtResource("2_6vba1") +type = "move" +value = 1 +metadata/_custom_type_script = "uid://dnklife8p0m35" + +[sub_resource type="Resource" id="Resource_l28ne"] +script = ExtResource("2_6vba1") +type = "defend" +value = 1 +metadata/_custom_type_script = "uid://dnklife8p0m35" + +[sub_resource type="Resource" id="Resource_eguj2"] +script = ExtResource("2_6vba1") +type = "ability" +value = 1 +metadata/_custom_type_script = "uid://dnklife8p0m35" + +[sub_resource type="Resource" id="Resource_c3r23"] +script = ExtResource("2_6vba1") +type = "attack" +value = 1 +metadata/_custom_type_script = "uid://dnklife8p0m35" + +[sub_resource type="Resource" id="Resource_inr58"] +script = ExtResource("3_juxel") +front_face = SubResource("Resource_tk6el") +back_face = SubResource("Resource_arxo3") +top_face = SubResource("Resource_c3r23") +bottom_face = SubResource("Resource_ms37x") +left_face = SubResource("Resource_l28ne") +right_face = SubResource("Resource_eguj2") +metadata/_custom_type_script = "uid://6rit5abkk1rw" + [sub_resource type="BoxMesh" id="BoxMesh_gof22"] [sub_resource type="BoxShape3D" id="BoxShape3D_tqijt"] @@ -36,6 +84,7 @@ region = Rect2(72, 144, 18, 18) physics_material_override = SubResource("PhysicsMaterial_m7tx2") gravity_scale = 2.0 script = ExtResource("1_gwnix") +configuration = SubResource("Resource_inr58") [node name="MeshInstance3D" type="MeshInstance3D" parent="."] mesh = SubResource("BoxMesh_gof22") @@ -45,43 +94,47 @@ shape = SubResource("BoxShape3D_tqijt") [node name="Faces" type="Node3D" parent="."] -[node name="DiceFace" parent="Faces" instance=ExtResource("2_ee854")] +[node name="DiceFaceFront" parent="Faces" instance=ExtResource("2_ee854")] +unique_name_in_owner = true transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0, 0.51) texture = ExtResource("2_6tbdd") up_rotation = Vector3(-90, 0, 0) -type = "move" -[node name="Sprite3D2" type="Sprite3D" parent="Faces"] +[node name="DiceFaceBack" parent="Faces" instance=ExtResource("2_ee854")] +unique_name_in_owner = true transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.51) pixel_size = 0.05 texture = SubResource("AtlasTexture_0hsac") -metadata/up = Vector3(90, 0, 180) -metadata/type = "move" +up_rotation = Vector3(90, 0, 180) -[node name="Sprite3D3" type="Sprite3D" parent="Faces"] +[node name="DiceFaceLeft" parent="Faces" instance=ExtResource("2_ee854")] +unique_name_in_owner = true transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0.51, 0, 0) pixel_size = 0.05 texture = SubResource("AtlasTexture_2rcxj") -metadata/up = Vector3(0, -90, 90) -metadata/type = "attack" +up_rotation = Vector3(0, -90, 90) -[node name="Sprite3D4" type="Sprite3D" parent="Faces"] +[node name="DiceFaceRight" parent="Faces" instance=ExtResource("2_ee854")] +unique_name_in_owner = true transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -0.51, 0, 0) pixel_size = 0.05 texture = SubResource("AtlasTexture_l100r") -metadata/up = Vector3(0, 90, -90) -metadata/type = "attack" +up_rotation = Vector3(0, 90, -90) -[node name="Sprite3D5" type="Sprite3D" parent="Faces"] +[node name="DiceFaceTop" parent="Faces" instance=ExtResource("2_ee854")] +unique_name_in_owner = true transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.51, 0) pixel_size = 0.05 texture = SubResource("AtlasTexture_l8don") +up_rotation = Vector3(0, 180, 0) metadata/up = Vector3(0, 180, 0) metadata/type = "defend" -[node name="Sprite3D6" type="Sprite3D" parent="Faces"] +[node name="DiceFaceBottom" parent="Faces" instance=ExtResource("2_ee854")] +unique_name_in_owner = true transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, -0.51, 0) pixel_size = 0.05 texture = SubResource("AtlasTexture_ug301") +up_rotation = Vector3(180, 0, 0) metadata/up = Vector3(180, 0, 0) metadata/type = "ability" |