menu + player

This commit is contained in:
2024-10-18 23:01:16 +02:00
parent d1b5c881eb
commit cd190ad354
24 changed files with 735 additions and 18 deletions

File diff suppressed because one or more lines are too long

51
scene/control/menu.tscn Normal file
View File

@@ -0,0 +1,51 @@
[gd_scene load_steps=3 format=3 uid="uid://co0u7xd45nxv1"]
[ext_resource type="FontFile" uid="uid://c0i81edd5mitx" path="res://font/October Crow.ttf" id="1_ndt1a"]
[ext_resource type="Theme" uid="uid://depo4fa5p8k8m" path="res://themes/button.tres" id="2_166c6"]
[node name="menu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Paused" type="Label" parent="."]
layout_mode = 2
offset_left = 28.0
offset_top = 17.0
offset_right = 200.0
offset_bottom = 85.0
theme_override_fonts/font = ExtResource("1_ndt1a")
theme_override_font_sizes/font_size = 64
text = "Paused"
[node name="VBoxContainer" type="VBoxContainer" parent="."]
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
offset_left = 250.0
offset_top = 16.0
offset_right = 350.0
offset_bottom = 316.0
size_flags_horizontal = 4
theme_override_constants/separation = 16
alignment = 1
[node name="Resume3" type="Button" parent="VBoxContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
text = "Resume
"
[node name="option" type="Button" parent="VBoxContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
text = "Options
"
[node name="exit" type="Button" parent="VBoxContainer"]
layout_mode = 2
theme = ExtResource("2_166c6")
text = "Exit
"

View File

@@ -1,16 +1,21 @@
[gd_scene load_steps=4 format=3 uid="uid://4ubk6w44h4s2"]
[ext_resource type="Script" path="res://script/Player.cs" id="1_gmlsd"]
[ext_resource type="Texture2D" uid="uid://c0vb33qqa2u1u" path="res://icon.svg" id="2_7ko2y"]
[ext_resource type="Texture2D" uid="uid://bo4q2rvn056p3" path="res://model/PatrickIdle1.png" id="2_w2lj6"]
[sub_resource type="CircleShape2D" id="CircleShape2D_5g3cc"]
[node name="CharacterBody2D" type="CharacterBody2D"]
position = Vector2(1, 1)
motion_mode = 1
script = ExtResource("1_gmlsd")
Speed = 5000.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_5g3cc")
[node name="Icon" type="Sprite2D" parent="."]
position = Vector2(1, 0)
texture = ExtResource("2_7ko2y")
[node name="Icon1" type="Sprite2D" parent="."]
position = Vector2(2, 1)
texture = ExtResource("2_w2lj6")
[node name="Camera2D" type="Camera2D" parent="."]