added gun and pain
This commit is contained in:
13
scenes/objects/cube.tscn
Normal file
13
scenes/objects/cube.tscn
Normal file
@@ -0,0 +1,13 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ced2w03t8er5k"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_x5eli"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_evnha"]
|
||||
|
||||
[node name="Cube" type="RigidBody3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("BoxShape3D_x5eli")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("BoxMesh_evnha")
|
86
scenes/objects/interactables/button_stand.tscn
Normal file
86
scenes/objects/interactables/button_stand.tscn
Normal file
@@ -0,0 +1,86 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://dqy8bqf1chm8c"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dm8l36ephydnl" path="res://scenes/interaction_area.tscn" id="1_0okd0"]
|
||||
[ext_resource type="Script" path="res://scripts/interactables/button_stand.gd" id="1_uieqm"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_jpuiw"]
|
||||
height = 1.4
|
||||
radius = 0.3
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_q60ht"]
|
||||
albedo_color = Color(0.54902, 0.54902, 0.54902, 1)
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_hgcvq"]
|
||||
material = SubResource("StandardMaterial3D_q60ht")
|
||||
top_radius = 0.3
|
||||
bottom_radius = 0.3
|
||||
height = 1.4
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_crdtx"]
|
||||
albedo_color = Color(0.686275, 0, 0.168627, 1)
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_g1gjr"]
|
||||
material = SubResource("StandardMaterial3D_crdtx")
|
||||
top_radius = 0.2
|
||||
bottom_radius = 0.2
|
||||
height = 0.1
|
||||
|
||||
[sub_resource type="Animation" id="Animation_stg1c"]
|
||||
resource_name = "press"
|
||||
length = 0.2
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Button:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0.750413, 0), Vector3(0, 0.67, 0), Vector3(0, 0.75, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_y5bt0"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Button:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0.750413, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_um1vs"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_y5bt0"),
|
||||
"press": SubResource("Animation_stg1c")
|
||||
}
|
||||
|
||||
[node name="ButtonStand" type="StaticBody3D"]
|
||||
script = ExtResource("1_uieqm")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("CylinderShape3D_jpuiw")
|
||||
|
||||
[node name="Stand" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("CylinderMesh_hgcvq")
|
||||
|
||||
[node name="Button" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.750413, 0)
|
||||
mesh = SubResource("CylinderMesh_g1gjr")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_um1vs")
|
||||
}
|
||||
|
||||
[node name="InteractionArea" parent="." instance=ExtResource("1_0okd0")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.9, 0)
|
||||
|
||||
[connection signal="interacted" from="InteractionArea" to="." method="_on_interaction_area_interacted"]
|
33
scenes/objects/interactables/screens/debug_screen.tscn
Normal file
33
scenes/objects/interactables/screens/debug_screen.tscn
Normal file
@@ -0,0 +1,33 @@
|
||||
[gd_scene format=3 uid="uid://cfk83h5xyhmor"]
|
||||
|
||||
[node name="DebugScreen" 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, 1, 0.517647, 1)
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -22.0
|
||||
offset_top = -15.5
|
||||
offset_right = 22.0
|
||||
offset_bottom = 15.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "TEST"
|
54
scenes/objects/interactables/task_terminal.tscn
Normal file
54
scenes/objects/interactables/task_terminal.tscn
Normal file
@@ -0,0 +1,54 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://b8bvidqu7tmfs"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cfk83h5xyhmor" path="res://scenes/objects/interactables/screens/debug_screen.tscn" id="1_q1qkj"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_sh78v"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_t4f0s"]
|
||||
|
||||
[sub_resource type="PrismMesh" id="PrismMesh_law6y"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_l2fsg"]
|
||||
viewport_path = NodePath("ScreenMesh/SubViewport")
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_ckudb"]
|
||||
viewport_path = NodePath("ScreenMesh/SubViewport")
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_01tli"]
|
||||
viewport_path = NodePath("ScreenMesh/SubViewport")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7alnb"]
|
||||
resource_local_to_scene = true
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_texture = SubResource("ViewportTexture_l2fsg")
|
||||
rim_tint = 1.0
|
||||
rim_texture = SubResource("ViewportTexture_01tli")
|
||||
backlight_enabled = true
|
||||
backlight_texture = SubResource("ViewportTexture_ckudb")
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_hekp8"]
|
||||
resource_local_to_scene = true
|
||||
material = SubResource("StandardMaterial3D_7alnb")
|
||||
size = Vector2(1, 1)
|
||||
|
||||
[node name="TaskTerminal" type="StaticBody3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("BoxShape3D_sh78v")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("BoxMesh_t4f0s")
|
||||
|
||||
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
mesh = SubResource("PrismMesh_law6y")
|
||||
|
||||
[node name="ScreenMesh" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(-4.37114e-08, 0.891007, 0.453991, 0, 0.453991, -0.891007, -1, -3.89471e-08, -1.98446e-08, 0.255, 1, 0)
|
||||
mesh = SubResource("PlaneMesh_hekp8")
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="ScreenMesh"]
|
||||
size_2d_override = Vector2i(512, 512)
|
||||
render_target_update_mode = 4
|
||||
|
||||
[node name="DebugScreen" parent="ScreenMesh/SubViewport" instance=ExtResource("1_q1qkj")]
|
Reference in New Issue
Block a user