diff --git a/.gitignore b/.gitignore index 3706029..e015dfa 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ export.cfg export_presets.cfg *.gd.uid +addons/ # Imported translations (automatically generated from CSV files) *.translation diff --git a/Makefile b/Makefile index d895a5a..46fbd69 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: lint format lint: - uv run gdlint . + uv run gdlint scripts format: - uv run gdformat . --check + uv run gdformat scripts --check diff --git a/Makefile.ps1 b/Makefile.ps1 index a0065a5..6a643f2 100644 --- a/Makefile.ps1 +++ b/Makefile.ps1 @@ -6,10 +6,10 @@ param( switch ($Task) { "lint" { - uv run gdlint . + uv run gdlint scripts } "format" { - uv run gdformat . --check + uv run gdformat scripts --check } } diff --git a/scenes/levels/level.tscn b/scenes/levels/level.tscn new file mode 100644 index 0000000..2c4f378 --- /dev/null +++ b/scenes/levels/level.tscn @@ -0,0 +1,18 @@ +[gd_scene format=3 uid="uid://j3g6vfsomawe"] + +[ext_resource type="PackedScene" uid="uid://c0pv2irnuvbvs" path="res://scenes/platform/platform.tscn" id="1_377w7"] +[ext_resource type="PackedScene" uid="uid://cc2rcjjhxub7p" path="res://scenes/player/player.tscn" id="2_bovvr"] + +[node name="Level" type="Node2D" unique_id=610755267] + +[node name="Platform" parent="." unique_id=1002571400 instance=ExtResource("1_377w7")] +position = Vector2(39, 240) + +[node name="Platform2" parent="." unique_id=1153496842 instance=ExtResource("1_377w7")] +position = Vector2(554, 240) + +[node name="Player" parent="." unique_id=1801952962 instance=ExtResource("2_bovvr")] +position = Vector2(403, 146) + +[node name="Platform3" parent="." unique_id=508821034 instance=ExtResource("1_377w7")] +position = Vector2(319, 323) diff --git a/scenes/platform/platform.tscn b/scenes/platform/platform.tscn new file mode 100644 index 0000000..ca552f9 --- /dev/null +++ b/scenes/platform/platform.tscn @@ -0,0 +1,10 @@ +[gd_scene format=3 uid="uid://c0pv2irnuvbvs"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_vjtli"] +size = Vector2(421, 20) + +[node name="Platform" type="StaticBody2D" unique_id=1002571400] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1207872999] +position = Vector2(200, 0) +shape = SubResource("RectangleShape2D_vjtli")