[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"] [sub_resource type="AtlasTexture" id="AtlasTexture_0hsac"] atlas = ExtResource("3_t0umq") region = Rect2(0, 18, 18, 18) [sub_resource type="AtlasTexture" id="AtlasTexture_2rcxj"] atlas = ExtResource("3_t0umq") region = Rect2(90, 36, 18, 18) [sub_resource type="AtlasTexture" id="AtlasTexture_l100r"] atlas = ExtResource("3_t0umq") region = Rect2(54, 72, 18, 18) [sub_resource type="AtlasTexture" id="AtlasTexture_l8don"] atlas = ExtResource("3_t0umq") region = Rect2(90, 90, 18, 18) [sub_resource type="AtlasTexture" id="AtlasTexture_ug301"] atlas = ExtResource("3_t0umq") region = Rect2(72, 144, 18, 18) [node name="Dice" type="RigidBody3D"] 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") [node name="CollisionShape3D" type="CollisionShape3D" parent="."] shape = SubResource("BoxShape3D_tqijt") [node name="Faces" type="Node3D" parent="."] [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) [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") up_rotation = Vector3(90, 0, 180) [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") up_rotation = Vector3(0, -90, 90) [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") up_rotation = Vector3(0, 90, -90) [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="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"