diff --git a/Images/Game_Over.png b/Images/Game_Over.png new file mode 100644 index 0000000..2643c6f Binary files /dev/null and b/Images/Game_Over.png differ diff --git a/Images/Game_Over.png.import b/Images/Game_Over.png.import new file mode 100644 index 0000000..2fda06a --- /dev/null +++ b/Images/Game_Over.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cyodm2ixiok7d" +path="res://.godot/imported/Game_Over.png-f6e0f3988ac7774c24bc862835601e22.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Images/Game_Over.png" +dest_files=["res://.godot/imported/Game_Over.png-f6e0f3988ac7774c24bc862835601e22.ctex"] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/bptc_ldr=0 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/Images/Main_menu.png b/Images/Main_menu.png new file mode 100644 index 0000000..43cf62e Binary files /dev/null and b/Images/Main_menu.png differ diff --git a/Images/Main_menu.png.import b/Images/Main_menu.png.import new file mode 100644 index 0000000..c1e938e --- /dev/null +++ b/Images/Main_menu.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cg848qjc4fxi" +path="res://.godot/imported/Main_menu.png-3e8660654628c151fb727654c0e26bd7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Images/Main_menu.png" +dest_files=["res://.godot/imported/Main_menu.png-3e8660654628c151fb727654c0e26bd7.ctex"] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/bptc_ldr=0 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/project.godot b/project.godot index 56889de..ca42274 100644 --- a/project.godot +++ b/project.godot @@ -11,7 +11,7 @@ config_version=5 [application] config/name="GameJam-Vanier" -run/main_scene="res://test_level001.tscn" +run/main_scene="res://start.tscn" config/features=PackedStringArray("4.0", "C#", "Forward Plus") config/icon="res://icon.svg" diff --git a/start.gd b/start.gd new file mode 100644 index 0000000..25d7a3e --- /dev/null +++ b/start.gd @@ -0,0 +1,15 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + + +func _on_button_pressed(): + get_tree().change_scene_to_file("res://Levels/level.tscn"); diff --git a/start.tscn b/start.tscn new file mode 100644 index 0000000..8e93f6f --- /dev/null +++ b/start.tscn @@ -0,0 +1,35 @@ +[gd_scene load_steps=3 format=3 uid="uid://d25c4ey6gvduc"] + +[ext_resource type="Texture2D" uid="uid://cg848qjc4fxi" path="res://Images/Main_menu.png" id="1_65g7h"] +[ext_resource type="Script" path="res://start.gd" id="1_exncb"] + +[node name="Start" type="Node2D"] +script = ExtResource("1_exncb") + +[node name="MainMenu" type="Sprite2D" parent="."] +position = Vector2(946, 826) +scale = Vector2(15, 15) +texture = ExtResource("1_65g7h") + +[node name="Button" type="Button" parent="."] +offset_left = 1200.0 +offset_top = 436.0 +offset_right = 1296.0 +offset_bottom = 467.0 +scale = Vector2(4, 4) +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_colors/font_pressed_color = Color(0, 0.52549, 0, 1) +theme_override_colors/font_hover_color = Color(0, 0, 0.65098, 1) +text = "Start Game" +flat = true + +[node name="Label" type="Label" parent="."] +offset_left = 1473.0 +offset_top = 199.0 +offset_right = 1519.0 +offset_bottom = 225.0 +theme_override_colors/font_color = Color(0, 0, 0, 1) +text = "ENVIE +" + +[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]