khanat-client/assets/creatures/arche/area_arche.tscn
2021-03-23 23:24:40 +01:00

74 lines
2.5 KiB
Text

[gd_scene load_steps=12 format=2]
[ext_resource path="res://scenes/interfaces/focus_reticle.tscn" type="PackedScene" id=1]
[ext_resource path="res://scenes/characters/head_infos.tscn" type="PackedScene" id=2]
[ext_resource path="res://assets/creatures/arche/arche.tscn" type="PackedScene" id=3]
[ext_resource path="res://assets/interfaces/focus_reticle.png" type="Texture" id=4]
[ext_resource path="res://assets/creatures/arche/area_arche.gd" type="Script" id=5]
[sub_resource type="QuadMesh" id=1]
size = Vector2( 0.5, 0.5 )
[sub_resource type="ViewportTexture" id=2]
viewport_path = NodePath("head_infos_viewport")
[sub_resource type="SpatialMaterial" id=3]
resource_local_to_scene = true
flags_transparent = true
flags_unshaded = true
params_cull_mode = 2
params_billboard_mode = 1
albedo_texture = SubResource( 2 )
[sub_resource type="CylinderShape" id=4]
height = 0.03
[sub_resource type="QuadMesh" id=5]
resource_local_to_scene = true
size = Vector2( 2, 2 )
[sub_resource type="SpatialMaterial" id=6]
resource_local_to_scene = true
render_priority = 10
flags_unshaded = true
flags_no_depth_test = true
params_billboard_mode = 1
params_use_alpha_scissor = true
params_alpha_scissor_threshold = 0.1
albedo_texture = ExtResource( 4 )
[node name="character" type="Spatial"]
script = ExtResource( 5 )
[node name="head_infos_viewport" type="Viewport" parent="."]
size = Vector2( 512, 2565 )
transparent_bg = true
[node name="head_infos" parent="head_infos_viewport" instance=ExtResource( 2 )]
[node name="head_infos_frame" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.7504, 0 )
mesh = SubResource( 1 )
material/0 = SubResource( 3 )
[node name="creature" parent="." instance=ExtResource( 3 )]
[node name="look_at" type="Spatial" parent="."]
transform = Transform( -1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 1.71448, 0 )
[node name="ground_area" type="Area" parent="."]
[node name="collision_shape" type="CollisionShape" parent="ground_area"]
shape = SubResource( 4 )
[node name="focus" parent="." instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
mesh = SubResource( 5 )
material/0 = SubResource( 6 )
size = Vector2( 2, 2 )
[node name="attack_delay" type="Timer" parent="."]
one_shot = true
[connection signal="body_entered" from="ground_area" to="." method="_on_ground_area_body_entered"]
[connection signal="body_exited" from="ground_area" to="." method="_on_ground_area_body_exited"]
[connection signal="timeout" from="attack_delay" to="." method="_on_attack_delay_timeout"]