initial commit

This commit is contained in:
Sage The DM 2024-06-16 22:28:30 +02:00
parent b9f229845c
commit 858eb3a599
48 changed files with 470 additions and 861 deletions

30
scenes/map/map.tscn Normal file
View file

@ -0,0 +1,30 @@
[gd_scene load_steps=3 format=3 uid="uid://mie5ckydb8k5"]
[ext_resource type="PackedScene" uid="uid://brmtkn1ddxrp1" path="res://testing/test/level.tscn" id="1_sw0jh"]
[ext_resource type="PackedScene" uid="uid://btl7r0wvecyd3" path="res://scenes/menu/view.tscn" id="2_7des0"]
[node name="map" type="Node2D"]
[node name="level" parent="." instance=ExtResource("1_sw0jh")]
[node name="characterViewer" parent="." instance=ExtResource("2_7des0")]
visible = false
anchors_preset = 0
anchor_right = 0.0
anchor_bottom = 0.0
offset_right = 800.0
offset_bottom = 500.0
grow_horizontal = 1
grow_vertical = 1
[node name="back" type="Button" parent="."]
visible = false
offset_left = 512.0
offset_top = 400.0
offset_right = 638.0
offset_bottom = 435.0
scale = Vector2(2, 2)
disabled = true
text = "Back to game"
[connection signal="pressed" from="back" to="level" method="_on_back_pressed"]

39
scenes/menu/create.tscn Normal file
View file

@ -0,0 +1,39 @@
[gd_scene load_steps=2 format=3 uid="uid://b6t6yd7qnid1i"]
[ext_resource type="Script" path="res://scripts/createStats.gd" id="1_xsj3b"]
[node name="characterCreator" 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_xsj3b")
[node name="button" type="Button" parent="."]
layout_mode = 0
offset_left = 512.0
offset_top = 400.0
offset_right = 638.0
offset_bottom = 435.0
scale = Vector2(2, 2)
text = "Send"
[node name="ScrollContainer" type="ScrollContainer" parent="."]
layout_mode = 1
anchors_preset = 13
anchor_left = 0.5
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -400.0
offset_right = 104.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[connection signal="pressed" from="button" to="." method="_on_button_pressed"]

View file

@ -0,0 +1,6 @@
[gd_scene format=3 uid="uid://rkl6u7cdusys"]
[node name="Input-output" type="TextEdit"]
offset_right = 168.0
offset_bottom = 40.0
scale = Vector2(2, 2)

View file

@ -2,22 +2,48 @@
[ext_resource type="Script" path="res://scripts/menu.gd" id="1_xc6y7"]
[node name="Control" type="Control"]
[node name="mainMenu" 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
offset_left = 3.05176e-05
offset_top = 1.52588e-05
offset_right = 90.0
offset_right = 96.0
offset_bottom = 32.0
scale = Vector2(5, 5)
text = "Test"
script = ExtResource("1_xc6y7")
scale = Vector2(4, 4)
text = "Play"
[connection signal="pressed" from="Button" to="Button" method="_on_pressed"]
[node name="Button2" type="Button" parent="."]
layout_mode = 0
offset_top = 184.0
offset_right = 96.0
offset_bottom = 216.0
scale = Vector2(4, 4)
text = "View
"
[node name="Button3" type="Button" parent="."]
layout_mode = 0
offset_top = 368.0
offset_right = 96.0
offset_bottom = 400.0
scale = Vector2(4, 4)
text = "Creator"
[node name="Label" type="Label" parent="."]
layout_mode = 0
offset_left = 488.0
offset_top = 432.0
offset_right = 592.0
offset_bottom = 455.0
scale = Vector2(3, 3)
text = "Version: 0.0.4"
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
[connection signal="pressed" from="Button2" to="." method="_on_button_2_pressed"]
[connection signal="pressed" from="Button3" to="." method="_on_button_3_pressed"]

39
scenes/menu/view.tscn Normal file
View file

@ -0,0 +1,39 @@
[gd_scene load_steps=2 format=3 uid="uid://btl7r0wvecyd3"]
[ext_resource type="Script" path="res://scripts/getStats.gd" id="1_dcehj"]
[node name="characterViewer" 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_dcehj")
[node name="button" type="Button" parent="."]
layout_mode = 2
offset_left = 512.0
offset_top = 400.0
offset_right = 638.0
offset_bottom = 435.0
scale = Vector2(2, 2)
text = "Get"
[node name="ScrollContainer" type="ScrollContainer" parent="."]
layout_mode = 1
anchors_preset = 13
anchor_left = 0.5
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -400.0
offset_right = 104.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[connection signal="pressed" from="button" to="." method="_on_button_pressed"]

File diff suppressed because one or more lines are too long

View file

@ -1,18 +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="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="."]