camera smoothing only on y

This commit is contained in:
Jonas Braus
2024-08-05 00:19:18 +02:00
parent 6ef02c5628
commit a2f9549d15
17 changed files with 159 additions and 52 deletions
+38 -26
View File
@@ -1,7 +1,9 @@
[gd_scene load_steps=3 format=3 uid="uid://drbqiko4xx71d"]
[gd_scene load_steps=5 format=3 uid="uid://drbqiko4xx71d"]
[ext_resource type="Script" path="res://scripts/LevelSelect.gd" id="1_ck5bd"]
[ext_resource type="FontFile" uid="uid://cpwx7datjer6s" path="res://assets/PixelOperator8.ttf" id="2_3ebbo"]
[ext_resource type="Texture2D" uid="uid://dgyuh7qglc7vd" path="res://assets/Flag.png" id="3_v04a0"]
[ext_resource type="Texture2D" uid="uid://bkrv87t2ryjd0" path="res://assets/Dead.png" id="4_3d18b"]
[node name="LevelSelect" type="CanvasLayer"]
script = ExtResource("1_ck5bd")
@@ -21,16 +23,18 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -240.0
offset_top = -148.0
offset_right = -32.0
offset_bottom = -84.0
offset_left = -336.0
offset_top = -100.0
offset_right = -192.0
offset_bottom = -36.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/font = ExtResource("2_3ebbo")
theme_override_font_sizes/font_size = 24
disabled = true
text = "Level 1"
text = "1-1"
icon = ExtResource("3_v04a0")
expand_icon = true
[node name="Button_2" type="Button" parent="Control"]
layout_mode = 1
@@ -39,16 +43,18 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 32.0
offset_top = -148.0
offset_right = 240.0
offset_bottom = -84.0
offset_left = -160.0
offset_top = -100.0
offset_right = -16.0
offset_bottom = -36.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/font = ExtResource("2_3ebbo")
theme_override_font_sizes/font_size = 24
disabled = true
text = "Level 2"
text = "1-2"
icon = ExtResource("3_v04a0")
expand_icon = true
[node name="Button_3" type="Button" parent="Control"]
layout_mode = 1
@@ -57,16 +63,18 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -240.0
offset_top = -36.0
offset_right = -32.0
offset_bottom = 28.0
offset_left = 16.0
offset_top = -100.0
offset_right = 160.0
offset_bottom = -36.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/font = ExtResource("2_3ebbo")
theme_override_font_sizes/font_size = 24
disabled = true
text = "Level 3"
text = "1-3"
icon = ExtResource("3_v04a0")
expand_icon = true
[node name="Button_4" type="Button" parent="Control"]
layout_mode = 1
@@ -75,16 +83,18 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 32.0
offset_top = -36.0
offset_right = 240.0
offset_bottom = 28.0
offset_left = 192.0
offset_top = -100.0
offset_right = 336.0
offset_bottom = -36.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/font = ExtResource("2_3ebbo")
theme_override_font_sizes/font_size = 24
disabled = true
text = "Level 4"
text = "1-4"
icon = ExtResource("4_3d18b")
expand_icon = true
[node name="Button_5" type="Button" parent="Control"]
layout_mode = 1
@@ -93,16 +103,18 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -240.0
offset_top = 76.0
offset_right = -32.0
offset_bottom = 140.0
offset_left = -336.0
offset_top = -4.0
offset_right = -192.0
offset_bottom = 60.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/font = ExtResource("2_3ebbo")
theme_override_font_sizes/font_size = 24
disabled = true
text = "Level 5"
text = "2-1"
icon = ExtResource("3_v04a0")
expand_icon = true
[connection signal="pressed" from="Control/Button_1" to="." method="_on_button_pressed" binds= ["1"]]
[connection signal="pressed" from="Control/Button_2" to="." method="_on_button_pressed" binds= ["2"]]