Movement Implemented + Map

This commit is contained in:
Patrick_Pluto 2024-06-13 13:29:05 +02:00
parent bf0b325a81
commit d31d027b80
12 changed files with 227 additions and 0 deletions

23
scenes/menu/main.tscn Normal file
View file

@ -0,0 +1,23 @@
[gd_scene load_steps=2 format=3 uid="uid://0eb22uw5jthn"]
[ext_resource type="Script" path="res://scripts/menu.gd" id="1_xc6y7"]
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Button" type="Button" parent="."]
layout_mode = 0
offset_left = 3.05176e-05
offset_top = 1.52588e-05
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"]

37
scenes/test/map.tscn Normal file

File diff suppressed because one or more lines are too long

18
scenes/test/player.tscn Normal file
View file

@ -0,0 +1,18 @@
[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="CharacterBody2D" 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="Camera2D" type="Camera2D" parent="."]