Add a savegame system using slots and a main menu, allow player to move RigidBody2Ds using apply_impulse(), increased physics tick, enabled FXAA, and more.

This commit is contained in:
ChaoticByte 2024-10-01 23:19:37 +02:00
parent 35ebe26340
commit 5a67d46d6f
No known key found for this signature in database
13 changed files with 291 additions and 25 deletions

35
menu/slot/slot.tscn Normal file
View file

@ -0,0 +1,35 @@
[gd_scene load_steps=3 format=3 uid="uid://c40fli7qcma78"]
[ext_resource type="PackedScene" uid="uid://cbynoofsjcl45" path="res://core/polygon.tscn" id="1_2cb7u"]
[ext_resource type="Script" path="res://menu/slot/slot.gd" id="1_3dgi0"]
[node name="Slot" type="Node2D"]
script = ExtResource("1_3dgi0")
[node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="platform" parent="StaticBody2D" instance=ExtResource("1_2cb7u")]
polygon = PackedVector2Array(44, 16, -44, 16, -44, 48, -64, 48, -64, 16, -80, 16, -80, 56, 80, 56, 80, 16, 64, 16, 64, 48, 44, 48)
[node name="Area2D_Load" type="Area2D" parent="."]
[node name="Polygon" parent="Area2D_Load" instance=ExtResource("1_2cb7u")]
polygon = PackedVector2Array(44, 48, 64, 48, 64, 24, 44, 24)
color = Color(0, 1, 0, 1)
[node name="Area2D_Delete" type="Area2D" parent="."]
[node name="Polygon" parent="Area2D_Delete" instance=ExtResource("1_2cb7u")]
polygon = PackedVector2Array(-64, 48, -44, 48, -44, 24, -64, 24)
color = Color(1, 0, 0, 1)
[node name="Label" type="Label" parent="."]
offset_left = -16.0
offset_top = -32.0
offset_right = 16.0
text = "_"
horizontal_alignment = 1
vertical_alignment = 1
[connection signal="body_entered" from="Area2D_Load" to="." method="_on_area_2d_load_body_entered"]
[connection signal="body_entered" from="Area2D_Delete" to="." method="_on_area_2d_delete_body_entered"]