|
|
@@ -0,0 +1,101 @@ |
|
|
|
[gd_scene load_steps=10 format=2] |
|
|
|
|
|
|
|
[ext_resource path="res://jrpg/scripts/entities/switch.gd" type="Script" id=1] |
|
|
|
[ext_resource path="res://jrpg/scripts/entities/utils/trigger_relay.gd" type="Script" id=2] |
|
|
|
|
|
|
|
[sub_resource type="BoxShape" id=1] |
|
|
|
extents = Vector3( 0.25, 0.25, 0.25 ) |
|
|
|
|
|
|
|
[sub_resource type="CubeMesh" id=2] |
|
|
|
size = Vector3( 0.5, 0.2, 0.5 ) |
|
|
|
|
|
|
|
[sub_resource type="CubeMesh" id=3] |
|
|
|
size = Vector3( 0.2, 0.159, 0.287 ) |
|
|
|
|
|
|
|
[sub_resource type="SpatialMaterial" id=4] |
|
|
|
albedo_color = Color( 1, 0, 0, 1 ) |
|
|
|
|
|
|
|
[sub_resource type="Animation" id=5] |
|
|
|
tracks/0/type = "value" |
|
|
|
tracks/0/path = NodePath("Model/MeshInstance2:material/0:albedo_color") |
|
|
|
tracks/0/interp = 1 |
|
|
|
tracks/0/loop_wrap = true |
|
|
|
tracks/0/imported = false |
|
|
|
tracks/0/enabled = true |
|
|
|
tracks/0/keys = { |
|
|
|
"times": PoolRealArray( 1 ), |
|
|
|
"transitions": PoolRealArray( 1 ), |
|
|
|
"update": 0, |
|
|
|
"values": [ Color( 1, 0, 0, 1 ) ] |
|
|
|
} |
|
|
|
tracks/1/type = "value" |
|
|
|
tracks/1/path = NodePath("Model/MeshInstance2:rotation_degrees") |
|
|
|
tracks/1/interp = 1 |
|
|
|
tracks/1/loop_wrap = true |
|
|
|
tracks/1/imported = false |
|
|
|
tracks/1/enabled = true |
|
|
|
tracks/1/keys = { |
|
|
|
"times": PoolRealArray( 1 ), |
|
|
|
"transitions": PoolRealArray( 1 ), |
|
|
|
"update": 0, |
|
|
|
"values": [ Vector3( -22, 0, 0 ) ] |
|
|
|
} |
|
|
|
|
|
|
|
[sub_resource type="Animation" id=6] |
|
|
|
tracks/0/type = "value" |
|
|
|
tracks/0/path = NodePath("Model/MeshInstance2:material/0:albedo_color") |
|
|
|
tracks/0/interp = 1 |
|
|
|
tracks/0/loop_wrap = true |
|
|
|
tracks/0/imported = false |
|
|
|
tracks/0/enabled = true |
|
|
|
tracks/0/keys = { |
|
|
|
"times": PoolRealArray( 1 ), |
|
|
|
"transitions": PoolRealArray( 1 ), |
|
|
|
"update": 0, |
|
|
|
"values": [ Color( 0, 1, 0.505882, 1 ) ] |
|
|
|
} |
|
|
|
tracks/1/type = "value" |
|
|
|
tracks/1/path = NodePath("Model/MeshInstance2:rotation_degrees") |
|
|
|
tracks/1/interp = 1 |
|
|
|
tracks/1/loop_wrap = true |
|
|
|
tracks/1/imported = false |
|
|
|
tracks/1/enabled = true |
|
|
|
tracks/1/keys = { |
|
|
|
"times": PoolRealArray( 1 ), |
|
|
|
"transitions": PoolRealArray( 1 ), |
|
|
|
"update": 0, |
|
|
|
"values": [ Vector3( 22, 0, 0 ) ] |
|
|
|
} |
|
|
|
|
|
|
|
[sub_resource type="SphereShape" id=7] |
|
|
|
radius = 0.5 |
|
|
|
|
|
|
|
[node name="Switch" type="KinematicBody"] |
|
|
|
script = ExtResource( 1 ) |
|
|
|
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="."] |
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.15, 0 ) |
|
|
|
shape = SubResource( 1 ) |
|
|
|
|
|
|
|
[node name="Model" type="Spatial" parent="."] |
|
|
|
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Model"] |
|
|
|
mesh = SubResource( 2 ) |
|
|
|
material/0 = null |
|
|
|
|
|
|
|
[node name="MeshInstance2" type="MeshInstance" parent="Model"] |
|
|
|
transform = Transform( 1, 0, 0, 0, 0.927184, 0.374607, 0, -0.374607, 0.927184, 0, 0.0918144, 0 ) |
|
|
|
mesh = SubResource( 3 ) |
|
|
|
material/0 = SubResource( 4 ) |
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."] |
|
|
|
anims/Off = SubResource( 5 ) |
|
|
|
anims/On = SubResource( 6 ) |
|
|
|
|
|
|
|
[node name="InteractableArea" type="Area" parent="."] |
|
|
|
script = ExtResource( 2 ) |
|
|
|
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="InteractableArea"] |
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.35, 0 ) |
|
|
|
shape = SubResource( 7 ) |
|
|
|
[connection signal="on_interact" from="InteractableArea" to="." method="on_interact"] |