JSON System Implemented

This commit is contained in:
Patrick_Pluto 2024-06-14 09:42:54 +02:00
parent bf80420f22
commit 01cd337c66
20 changed files with 21 additions and 519 deletions

View file

@ -2,13 +2,14 @@
[ext_resource type="Script" path="res://scripts/menu.gd" id="1_xc6y7"]
[node name="Control" type="Control"]
[node name="main_menu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_xc6y7")
[node name="Button" type="Button" parent="."]
layout_mode = 0
@ -18,6 +19,14 @@ offset_right = 90.0
offset_bottom = 32.0
scale = Vector2(5, 5)
text = "Test"
script = ExtResource("1_xc6y7")
[connection signal="pressed" from="Button" to="Button" method="_on_pressed"]
[node name="Button2" type="Button" parent="."]
layout_mode = 0
offset_top = 192.0
offset_right = 90.0
offset_bottom = 224.0
scale = Vector2(5, 5)
text = "Test2"
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
[connection signal="pressed" from="Button2" to="." method="_on_button_2_pressed"]

File diff suppressed because one or more lines are too long

View file

@ -1,19 +0,0 @@
[gd_scene load_steps=4 format=3 uid="uid://dv67vdgb4h44q"]
[ext_resource type="Texture2D" uid="uid://dheqglouhkis6" path="res://assets/test/player.png" id="1_cujcj"]
[ext_resource type="Script" path="res://scripts/player.gd" id="1_oik63"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_kf6qt"]
size = Vector2(20, 18)
[node name="player" type="CharacterBody2D"]
script = ExtResource("1_oik63")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_cujcj")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_kf6qt")
[node name="camera" type="Camera2D" parent="."]
enabled = false