From d558a9add0e183219a7a9ff482807bdcd677e21a Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Mon, 11 Aug 2025 22:42:00 -0700 Subject: Initialize repo from local files --- objects/Plane.tscn | 136 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 objects/Plane.tscn (limited to 'objects/Plane.tscn') diff --git a/objects/Plane.tscn b/objects/Plane.tscn new file mode 100644 index 0000000..21ce972 --- /dev/null +++ b/objects/Plane.tscn @@ -0,0 +1,136 @@ +[gd_scene load_steps=15 format=2] + +[ext_resource path="res://scripts/Plane.gd" type="Script" id=1] +[ext_resource path="res://resources/fonts/Cochineal-Bold.otf" type="DynamicFontData" id=2] +[ext_resource path="res://textures/plane_action_indicator_board.png" type="Texture" id=3] +[ext_resource path="res://textures/gradient_transparent.png" type="Texture" id=4] +[ext_resource path="res://resources/blank_plane_material.material" type="Material" id=5] + +[sub_resource type="CylinderMesh" id=1] +material = ExtResource( 5 ) +top_radius = 0.1 +bottom_radius = 0.1 +height = 0.4 + +[sub_resource type="PrismMesh" id=2] +left_to_right = 0.2 +size = Vector3( 0.18, 0.18, 0.18 ) + +[sub_resource type="CubeMesh" id=3] +size = Vector3( 0.1, 0.05, 0.6 ) + +[sub_resource type="CubeMesh" id=4] +size = Vector3( 0.1, 0.05, 0.3 ) + +[sub_resource type="CylinderShape" id=5] +height = 0.2 +radius = 0.35 + +[sub_resource type="DynamicFont" id=6] +size = 100 +outline_size = 2 +outline_color = Color( 0, 0, 0, 1 ) +font_data = ExtResource( 2 ) + +[sub_resource type="ViewportTexture" id=7] +viewport_path = NodePath("ActionIndicatorViewport") + +[sub_resource type="SpatialMaterial" id=8] +flags_transparent = true +flags_unshaded = true +params_cull_mode = 2 +albedo_color = Color( 0.945098, 1, 0, 0.439216 ) +albedo_texture = ExtResource( 4 ) +uv1_offset = Vector3( 0, 0.498, 0 ) + +[sub_resource type="CylinderMesh" id=9] +material = SubResource( 8 ) +top_radius = 0.4 +bottom_radius = 0.4 +height = 0.3 +radial_segments = 20 + +[node name="Plane" type="Area"] +script = ExtResource( 1 ) + +[node name="Fuselage" type="MeshInstance" parent="."] +transform = Transform( -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 ) +mesh = SubResource( 1 ) + +[node name="Cone" type="MeshInstance" parent="."] +transform = Transform( -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, -0.287144, 0.0157076, 0 ) +mesh = SubResource( 2 ) + +[node name="Wings" type="MeshInstance" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0623346, 0.0405034, 0 ) +mesh = SubResource( 3 ) + +[node name="Tail" type="MeshInstance" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.19327, 0.0606151, 0 ) +mesh = SubResource( 4 ) + +[node name="CollisionShape" type="CollisionShape" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0276226, 0.0342902, 0 ) +shape = SubResource( 5 ) + +[node name="UnsetIndicator" type="Label3D" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.280024, 0 ) +visible = false +pixel_size = 0.001 +billboard = 1 +fixed_size = true +text = "!" +font = SubResource( 6 ) + +[node name="ActionIndicator" type="Sprite3D" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.00816703, 0 ) +visible = false +centered = false +pixel_size = 0.0015 +billboard = 1 +double_sided = false +no_depth_test = true +fixed_size = true +texture = SubResource( 7 ) + +[node name="SelectionIndicator" type="MeshInstance" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.071805, 0 ) +visible = false +mesh = SubResource( 9 ) + +[node name="ActionIndicatorViewport" type="Viewport" parent="."] +size = Vector2( 320, 64 ) +transparent_bg = true +disable_3d = true +usage = 1 + +[node name="FlightInfo" type="Node2D" parent="ActionIndicatorViewport"] + +[node name="Background" type="Sprite" parent="ActionIndicatorViewport/FlightInfo"] +position = Vector2( 192, 32 ) +z_index = -1 +texture = ExtResource( 3 ) + +[node name="Action1" type="Sprite" parent="ActionIndicatorViewport/FlightInfo"] +position = Vector2( 95, 32 ) +scale = Vector2( 0.625, 0.625 ) + +[node name="Action2" type="Sprite" parent="ActionIndicatorViewport/FlightInfo"] +position = Vector2( 144, 32 ) +scale = Vector2( 0.625, 0.625 ) + +[node name="Action3" type="Sprite" parent="ActionIndicatorViewport/FlightInfo"] +position = Vector2( 193, 32 ) +scale = Vector2( 0.625, 0.625 ) + +[node name="Action4" type="Sprite" parent="ActionIndicatorViewport/FlightInfo"] +position = Vector2( 242, 32 ) +scale = Vector2( 0.625, 0.625 ) + +[node name="Action5" type="Sprite" parent="ActionIndicatorViewport/FlightInfo"] +position = Vector2( 291, 32 ) +scale = Vector2( 0.625, 0.625 ) + +[connection signal="input_event" from="." to="." method="_on_Plane_input_event"] +[connection signal="mouse_entered" from="." to="." method="_on_Plane_mouse_entered"] +[connection signal="mouse_exited" from="." to="." method="_on_Plane_mouse_exited"] -- cgit v1.2.3