adds joystick and textures

This commit is contained in:
Luca 2024-09-15 20:41:40 +02:00
parent 554d81b912
commit 8c29b8bffd
779 changed files with 16481 additions and 7 deletions

View file

@ -1,8 +1,12 @@
[gd_scene load_steps=4 format=3 uid="uid://cswuap81n7t3f"]
[gd_scene load_steps=7 format=3 uid="uid://cswuap81n7t3f"]
[ext_resource type="Texture2D" uid="uid://b6ylra30qxf30" path="res://resources/logo/logo.png" id="1_fpt28"]
[ext_resource type="PackedScene" uid="uid://p8agd0dfam0p" path="res://scenes/debug_level.tscn" id="1_j851n"]
[ext_resource type="FontFile" uid="uid://dmc6dygxrekja" path="res://resources/fonts/BreatheFireIii-PKLOB.ttf" id="2_vjast"]
[ext_resource type="Script" path="res://scripts/joystick.gd" id="4_6b5cb"]
[ext_resource type="Texture2D" uid="uid://8anyvhkcy4ng" path="res://resources/textures/Xbox Series/Vector/xbox_button_a.svg" id="5_pwhwh"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_7ngu6"]
[node name="Main" type="Node3D"]
@ -74,3 +78,41 @@ text = "Options"
[node name="ExitButton" type="Button" parent="CanvasLayer/MainMenu/VBoxContainer/MenuButtons"]
layout_mode = 2
text = "Exit"
[node name="ControlsLayer" type="CanvasLayer" parent="."]
[node name="VBoxContainer" type="HBoxContainer" parent="ControlsLayer"]
custom_minimum_size = Vector2(100, 100)
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -300.0
grow_horizontal = 2
grow_vertical = 0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Joystick" type="Panel" parent="ControlsLayer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/panel = SubResource("StyleBoxEmpty_7ngu6")
script = ExtResource("4_6b5cb")
[node name="Thumbstick" type="TextureRect" parent="ControlsLayer/VBoxContainer/Joystick"]
self_modulate = Color(0, 0, 0, 0.501961)
layout_mode = 0
offset_left = 103.0
offset_top = 100.0
offset_right = 203.0
offset_bottom = 200.0
texture = ExtResource("5_pwhwh")
expand_mode = 2
[node name="Spacer" type="Control" parent="ControlsLayer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 1.1
[connection signal="gui_input" from="ControlsLayer/VBoxContainer/Joystick" to="ControlsLayer/VBoxContainer/Joystick" method="_on_gui_input"]
[connection signal="resized" from="ControlsLayer/VBoxContainer/Joystick" to="ControlsLayer/VBoxContainer/Joystick" method="_on_resized"]