From 6f18e82a5d83b987cad5ce56b0b4d07ba31a7a95 Mon Sep 17 00:00:00 2001 From: Spencer Killen Date: Sun, 12 Nov 2023 14:11:15 -0700 Subject: [PATCH] Add domino --- godot/Domino.glb.import | 13 +++++++++-- godot/Objects/domino/domino2.tscn | 5 ++++ godot/menu.tscn | 39 +++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 godot/Objects/domino/domino2.tscn create mode 100644 godot/menu.tscn diff --git a/godot/Domino.glb.import b/godot/Domino.glb.import index ba5c0cc..3e228f3 100644 --- a/godot/Domino.glb.import +++ b/godot/Domino.glb.import @@ -27,6 +27,15 @@ animation/import=true animation/fps=30 animation/trimming=false animation/remove_immutable_tracks=true -import_script/path="" -_subresources={} +import_script/path="res://physics/import_billiard.gd" +_subresources={ +"nodes": { +"PATH:Domino2": { +"generate/physics": true, +"physics/body_type": 1, +"physics/shape_type": 3, +"primitive/size": Vector3(0.01, 0.01, 0.01) +} +} +} gltf/embedded_image_handling=1 diff --git a/godot/Objects/domino/domino2.tscn b/godot/Objects/domino/domino2.tscn new file mode 100644 index 0000000..cfa76c7 --- /dev/null +++ b/godot/Objects/domino/domino2.tscn @@ -0,0 +1,5 @@ +[gd_scene load_steps=2 format=3 uid="uid://dk6en0h46sxd"] + +[ext_resource type="PackedScene" uid="uid://dmttoc025f26x" path="res://Domino.glb" id="1_n2u88"] + +[node name="Domino" instance=ExtResource("1_n2u88")] diff --git a/godot/menu.tscn b/godot/menu.tscn new file mode 100644 index 0000000..4f290b4 --- /dev/null +++ b/godot/menu.tscn @@ -0,0 +1,39 @@ +[gd_scene format=3 uid="uid://bh44tdo8xfqde"] + +[node name="Menu" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="ColorRect" type="ColorRect" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +color = Color(0, 0, 0, 1) + +[node name="TextEdit" type="TextEdit" parent="ColorRect"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 106.0 +offset_top = 84.0 +offset_right = -152.0 +offset_bottom = -122.0 +grow_horizontal = 2 +grow_vertical = 2 +text = "As you gaze upon an old photograph, you recall an old birthday ruined by a series of rube goldbergian events." + +[node name="Button" type="Button" parent="ColorRect/TextEdit"] +layout_mode = 0 +offset_left = 417.0 +offset_top = 361.0 +offset_right = 562.0 +offset_bottom = 392.0 +text = "Click here to start"