diff --git a/assets/button.png b/assets/button.png new file mode 100644 index 0000000..dfc6733 Binary files /dev/null and b/assets/button.png differ diff --git a/assets/button.png.import b/assets/button.png.import new file mode 100644 index 0000000..699201b --- /dev/null +++ b/assets/button.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c6r4ssc8fbi46" +path="res://.godot/imported/button.png-c79155b6e84601a7c5a042250ad77b07.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/button.png" +dest_files=["res://.godot/imported/button.png-c79155b6e84601a7c5a042250ad77b07.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +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/assets/button.png~ b/assets/button.png~ new file mode 100644 index 0000000..506b389 Binary files /dev/null and b/assets/button.png~ differ diff --git a/assets/button2.png b/assets/button2.png new file mode 100644 index 0000000..6ff4c30 Binary files /dev/null and b/assets/button2.png differ diff --git a/assets/button2.png.import b/assets/button2.png.import new file mode 100644 index 0000000..69d2edd --- /dev/null +++ b/assets/button2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dcvui4id7ryau" +path="res://.godot/imported/button2.png-047cd9d3a58f0683d4782fb059769847.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/button2.png" +dest_files=["res://.godot/imported/button2.png-047cd9d3a58f0683d4782fb059769847.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +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/assets/button2.png~ b/assets/button2.png~ new file mode 100644 index 0000000..0e22dde Binary files /dev/null and b/assets/button2.png~ differ diff --git a/assets/frame1.png b/assets/frame1.png new file mode 100644 index 0000000..b3879bf Binary files /dev/null and b/assets/frame1.png differ diff --git a/assets/frame1.png.import b/assets/frame1.png.import new file mode 100644 index 0000000..04fdeed --- /dev/null +++ b/assets/frame1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://due5f7l8a66rm" +path="res://.godot/imported/frame1.png-605199c786b51c55c6672eea0dbdfe48.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/frame1.png" +dest_files=["res://.godot/imported/frame1.png-605199c786b51c55c6672eea0dbdfe48.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +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/assets/frame1.png~ b/assets/frame1.png~ new file mode 100644 index 0000000..b3879bf Binary files /dev/null and b/assets/frame1.png~ differ diff --git a/assets/frame2.png b/assets/frame2.png new file mode 100644 index 0000000..a7ba1ba Binary files /dev/null and b/assets/frame2.png differ diff --git a/assets/frame2.png.import b/assets/frame2.png.import new file mode 100644 index 0000000..d53d5b9 --- /dev/null +++ b/assets/frame2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://tsmc2r12pacb" +path="res://.godot/imported/frame2.png-6531baf0fb2a8f76127918db3dc812a0.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/frame2.png" +dest_files=["res://.godot/imported/frame2.png-6531baf0fb2a8f76127918db3dc812a0.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +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/assets/frame3.png b/assets/frame3.png new file mode 100644 index 0000000..33faf5b Binary files /dev/null and b/assets/frame3.png differ diff --git a/assets/frame3.png.import b/assets/frame3.png.import new file mode 100644 index 0000000..44bd8cf --- /dev/null +++ b/assets/frame3.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://byqbvced7aa4n" +path="res://.godot/imported/frame3.png-89894da9e002ff0bb56ae6156721290d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/frame3.png" +dest_files=["res://.godot/imported/frame3.png-89894da9e002ff0bb56ae6156721290d.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +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/assets/frame3.png~ b/assets/frame3.png~ new file mode 100644 index 0000000..4c78f6b Binary files /dev/null and b/assets/frame3.png~ differ diff --git a/assets/frame4.png b/assets/frame4.png new file mode 100644 index 0000000..586268b Binary files /dev/null and b/assets/frame4.png differ diff --git a/assets/frame4.png.import b/assets/frame4.png.import new file mode 100644 index 0000000..d357c10 --- /dev/null +++ b/assets/frame4.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bxmwn8mfal6gy" +path="res://.godot/imported/frame4.png-1ff93858ce0ea2d77ef0023e0ba89640.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/frame4.png" +dest_files=["res://.godot/imported/frame4.png-1ff93858ce0ea2d77ef0023e0ba89640.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +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/assets/instructions.png b/assets/instructions.png new file mode 100644 index 0000000..2d3863a Binary files /dev/null and b/assets/instructions.png differ diff --git a/assets/instructions.png.import b/assets/instructions.png.import new file mode 100644 index 0000000..86a3ef2 --- /dev/null +++ b/assets/instructions.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://3w080vs4k15v" +path="res://.godot/imported/instructions.png-bb85f5eaf378ae0ab691bb4efd9fb1bb.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/instructions.png" +dest_files=["res://.godot/imported/instructions.png-bb85f5eaf378ae0ab691bb4efd9fb1bb.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +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/assets/instructions.png~ b/assets/instructions.png~ new file mode 100644 index 0000000..13ba981 Binary files /dev/null and b/assets/instructions.png~ differ diff --git a/assets/startNote.png b/assets/startNote.png new file mode 100644 index 0000000..981f668 Binary files /dev/null and b/assets/startNote.png differ diff --git a/assets/startNote.png.import b/assets/startNote.png.import new file mode 100644 index 0000000..aba39d9 --- /dev/null +++ b/assets/startNote.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://en11sbhcxflt" +path="res://.godot/imported/startNote.png-40932d51b02ddf40fa24471faafe24d9.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/startNote.png" +dest_files=["res://.godot/imported/startNote.png-40932d51b02ddf40fa24471faafe24d9.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +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/assets/storyImage1.png b/assets/storyImage1.png new file mode 100644 index 0000000..5ee4df3 Binary files /dev/null and b/assets/storyImage1.png differ diff --git a/assets/storyImage1.png.import b/assets/storyImage1.png.import new file mode 100644 index 0000000..0109ac8 --- /dev/null +++ b/assets/storyImage1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b0olfb3q10r26" +path="res://.godot/imported/storyImage1.png-f2b2295a77ee474cbb42619428b7f12d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/storyImage1.png" +dest_files=["res://.godot/imported/storyImage1.png-f2b2295a77ee474cbb42619428b7f12d.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +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/assets/storyImage2.png b/assets/storyImage2.png new file mode 100644 index 0000000..7119a77 Binary files /dev/null and b/assets/storyImage2.png differ diff --git a/assets/storyImage2.png.import b/assets/storyImage2.png.import new file mode 100644 index 0000000..275e5db --- /dev/null +++ b/assets/storyImage2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dalqyclbgygri" +path="res://.godot/imported/storyImage2.png-8dffbc8640d073f5bac15a9543141638.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/storyImage2.png" +dest_files=["res://.godot/imported/storyImage2.png-8dffbc8640d073f5bac15a9543141638.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +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/assets/storyImage3.png b/assets/storyImage3.png new file mode 100644 index 0000000..b1e443e Binary files /dev/null and b/assets/storyImage3.png differ diff --git a/assets/storyImage3.png.import b/assets/storyImage3.png.import new file mode 100644 index 0000000..81feed2 --- /dev/null +++ b/assets/storyImage3.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c4m6tm5hq0jhv" +path="res://.godot/imported/storyImage3.png-31b3009a99cee46b532fefa1e72f509b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/storyImage3.png" +dest_files=["res://.godot/imported/storyImage3.png-31b3009a99cee46b532fefa1e72f509b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +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/assets/storyImage4.png b/assets/storyImage4.png new file mode 100644 index 0000000..175cc1f Binary files /dev/null and b/assets/storyImage4.png differ diff --git a/assets/storyImage4.png.import b/assets/storyImage4.png.import new file mode 100644 index 0000000..2c1f1b0 --- /dev/null +++ b/assets/storyImage4.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ccj0weq7nidbg" +path="res://.godot/imported/storyImage4.png-e6f9666b6cb92d11be544c3eaf1abdd4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/storyImage4.png" +dest_files=["res://.godot/imported/storyImage4.png-e6f9666b6cb92d11be544c3eaf1abdd4.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +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 e2479a2..83f8015 100644 --- a/project.godot +++ b/project.godot @@ -15,6 +15,10 @@ run/main_scene="res://scenes/main_scene.tscn" config/features=PackedStringArray("4.3", "Forward Plus") config/icon="res://icon.svg" +[display] + +window/size/resizable=false + [dotnet] project/assembly_name="GMTK Game Jam 2024" diff --git a/raw_assets/frame1.kra b/raw_assets/frame1.kra new file mode 100644 index 0000000..dfccfb9 Binary files /dev/null and b/raw_assets/frame1.kra differ diff --git a/raw_assets/frame1.kra~ b/raw_assets/frame1.kra~ new file mode 100644 index 0000000..6c48908 Binary files /dev/null and b/raw_assets/frame1.kra~ differ diff --git a/raw_assets/frame1.png.import b/raw_assets/frame1.png.import new file mode 100644 index 0000000..0f1d940 --- /dev/null +++ b/raw_assets/frame1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://btcltdcok8sga" +path="res://.godot/imported/frame1.png-6abe000331b8f5e189ed4b7c52d69688.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://raw_assets/frame1.png" +dest_files=["res://.godot/imported/frame1.png-6abe000331b8f5e189ed4b7c52d69688.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +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/raw_assets/frame2.kra b/raw_assets/frame2.kra new file mode 100644 index 0000000..4608159 Binary files /dev/null and b/raw_assets/frame2.kra differ diff --git a/raw_assets/frame2.kra~ b/raw_assets/frame2.kra~ new file mode 100644 index 0000000..f084bbb Binary files /dev/null and b/raw_assets/frame2.kra~ differ diff --git a/raw_assets/frame3.kra b/raw_assets/frame3.kra new file mode 100644 index 0000000..0169ac1 Binary files /dev/null and b/raw_assets/frame3.kra differ diff --git a/raw_assets/frame4.kra b/raw_assets/frame4.kra new file mode 100644 index 0000000..98e153f Binary files /dev/null and b/raw_assets/frame4.kra differ diff --git a/raw_assets/storyImage1.kra b/raw_assets/storyImage1.kra new file mode 100644 index 0000000..c504b93 Binary files /dev/null and b/raw_assets/storyImage1.kra differ diff --git a/raw_assets/storyImage2.kra b/raw_assets/storyImage2.kra new file mode 100644 index 0000000..447eabd Binary files /dev/null and b/raw_assets/storyImage2.kra differ diff --git a/raw_assets/storyImage3.kra b/raw_assets/storyImage3.kra new file mode 100644 index 0000000..80eb8c2 Binary files /dev/null and b/raw_assets/storyImage3.kra differ diff --git a/raw_assets/storyImage4.kra b/raw_assets/storyImage4.kra new file mode 100644 index 0000000..cc9733c Binary files /dev/null and b/raw_assets/storyImage4.kra differ diff --git a/scenes/main_scene.tscn b/scenes/main_scene.tscn index 963e1d5..91614d6 100644 --- a/scenes/main_scene.tscn +++ b/scenes/main_scene.tscn @@ -1,5 +1,6 @@ -[gd_scene load_steps=9 format=3 uid="uid://n05pnykd3tff"] +[gd_scene load_steps=10 format=3 uid="uid://n05pnykd3tff"] +[ext_resource type="PackedScene" uid="uid://cjjw0n58nmtfw" path="res://scenes/menu.tscn" id="1_47rnc"] [ext_resource type="PackedScene" uid="uid://dgm3241ceqpim" path="res://scenes/body.tscn" id="1_eeca8"] [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_fouvd"] @@ -31,13 +32,7 @@ size = Vector3(25, 1, 100) [node name="CanvasLayer" type="CanvasLayer" parent="."] -[node name="Menu" type="Control" parent="CanvasLayer"] -layout_mode = 3 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 +[node name="Menu" parent="CanvasLayer" instance=ExtResource("1_47rnc")] [node name="UI" type="Control" parent="CanvasLayer"] layout_mode = 3 diff --git a/scenes/menu.tscn b/scenes/menu.tscn new file mode 100644 index 0000000..670ca43 --- /dev/null +++ b/scenes/menu.tscn @@ -0,0 +1,163 @@ +[gd_scene load_steps=15 format=3 uid="uid://cjjw0n58nmtfw"] + +[ext_resource type="PackedScene" uid="uid://cm1qravdpxhn4" path="res://scenes/story_frame_scene.tscn" id="1_b6xg8"] +[ext_resource type="Texture2D" uid="uid://dalqyclbgygri" path="res://assets/storyImage2.png" id="2_ovoho"] +[ext_resource type="Texture2D" uid="uid://tsmc2r12pacb" path="res://assets/frame2.png" id="3_hrini"] +[ext_resource type="Texture2D" uid="uid://c4m6tm5hq0jhv" path="res://assets/storyImage3.png" id="4_0x4tc"] +[ext_resource type="Texture2D" uid="uid://byqbvced7aa4n" path="res://assets/frame3.png" id="5_6a2eb"] +[ext_resource type="Texture2D" uid="uid://ccj0weq7nidbg" path="res://assets/storyImage4.png" id="6_e06r6"] +[ext_resource type="Texture2D" uid="uid://bxmwn8mfal6gy" path="res://assets/frame4.png" id="7_iak52"] +[ext_resource type="Texture2D" uid="uid://c6r4ssc8fbi46" path="res://assets/button.png" id="8_eh7sb"] +[ext_resource type="Texture2D" uid="uid://dcvui4id7ryau" path="res://assets/button2.png" id="9_ksbta"] +[ext_resource type="Texture2D" uid="uid://en11sbhcxflt" path="res://assets/startNote.png" id="9_pbwjt"] +[ext_resource type="Texture2D" uid="uid://3w080vs4k15v" path="res://assets/instructions.png" id="10_hirgk"] + +[sub_resource type="Animation" id="Animation_bqavq"] +resource_name = "idle" +length = 1.5 +loop_mode = 2 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("TextureButton:rotation") +tracks/0/interp = 2 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 1.46667), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [-0.0698132, 0.0698132] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("TextureRect:rotation") +tracks/1/interp = 2 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0.433333, 1.03333), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [0.0872665, -0.0872665] +} + +[sub_resource type="Animation" id="Animation_5l3d8"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("TextureButton:rotation") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [-0.133149] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("TextureRect:rotation") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [0.240703] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_rcg3x"] +_data = { +"RESET": SubResource("Animation_5l3d8"), +"idle": SubResource("Animation_bqavq") +} + +[node name="Menu" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="ColorRect" type="ColorRect" parent="."] +layout_mode = 0 +offset_right = 40.0 +offset_bottom = 40.0 +scale = Vector2(29.6944, 16.8077) + +[node name="StoryFrameScene" parent="." instance=ExtResource("1_b6xg8")] +layout_mode = 1 +offset_left = -1.0 +offset_top = -2.0 +offset_right = -1.42407 +offset_bottom = -2.0 +scale = Vector2(0.457138, 0.457138) + +[node name="StoryFrameScene2" parent="." instance=ExtResource("1_b6xg8")] +layout_mode = 1 +offset_left = 311.0 +offset_right = 310.576 +scale = Vector2(0.454821, 0.454821) +background = ExtResource("2_ovoho") +foreground = ExtResource("3_hrini") + +[node name="StoryFrameScene3" parent="." instance=ExtResource("1_b6xg8")] +layout_mode = 1 +offset_left = 6.0 +offset_top = 315.0 +offset_right = 5.57593 +offset_bottom = 315.0 +scale = Vector2(0.472222, 0.472222) +background = ExtResource("4_0x4tc") +foreground = ExtResource("5_6a2eb") + +[node name="StoryFrameScene4" parent="." instance=ExtResource("1_b6xg8")] +layout_mode = 1 +offset_left = 305.0 +offset_top = 303.0 +offset_right = 304.576 +offset_bottom = 303.0 +scale = Vector2(0.504541, 0.504541) +background = ExtResource("6_e06r6") +foreground = ExtResource("7_iak52") + +[node name="TextureButton" type="TextureButton" parent="."] +layout_mode = 0 +offset_left = 528.0 +offset_top = 406.0 +offset_right = 929.445 +offset_bottom = 606.722 +rotation = -0.133149 +scale = Vector2(0.683034, 0.685895) +pivot_offset = Vector2(200.539, 101.085) +texture_normal = ExtResource("8_eh7sb") +texture_hover = ExtResource("9_ksbta") + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_rcg3x") +} +autoplay = "idle" + +[node name="TextureRect" type="TextureRect" parent="."] +layout_mode = 0 +offset_left = 764.0 +offset_top = 345.0 +offset_right = 964.0 +offset_bottom = 445.0 +rotation = 0.240703 +scale = Vector2(0.715674, 0.715674) +pivot_offset = Vector2(105.01, 42.7946) +texture = ExtResource("9_pbwjt") + +[node name="TextureRect2" type="TextureRect" parent="."] +layout_mode = 0 +offset_left = 607.0 +offset_top = 13.0 +offset_right = 1507.0 +offset_bottom = 613.0 +scale = Vector2(0.53066, 0.508364) +texture = ExtResource("10_hirgk") diff --git a/scenes/story_frame_scene.tscn b/scenes/story_frame_scene.tscn new file mode 100644 index 0000000..67c738e --- /dev/null +++ b/scenes/story_frame_scene.tscn @@ -0,0 +1,73 @@ +[gd_scene load_steps=7 format=3 uid="uid://cm1qravdpxhn4"] + +[ext_resource type="Script" path="res://scripts/story_frame_script.gd" id="1_i6q4u"] +[ext_resource type="Texture2D" uid="uid://b0olfb3q10r26" path="res://assets/storyImage1.png" id="2_8se21"] +[ext_resource type="Texture2D" uid="uid://due5f7l8a66rm" path="res://assets/frame1.png" id="3_lqbjx"] + +[sub_resource type="Animation" id="Animation_wrkak"] +resource_name = "idle" +length = 20.0 +loop_mode = 2 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("background:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 19.9667), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Vector2(-47, 46), Vector2(53, -44)] +} + +[sub_resource type="Animation" id="Animation_do1id"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("background:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector2(-47, 46)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_jgudp"] +_data = { +"RESET": SubResource("Animation_do1id"), +"idle": SubResource("Animation_wrkak") +} + +[node name="StoryFrameScene" type="Control"] +clip_contents = true +layout_mode = 3 +anchor_right = 0.562 +anchor_bottom = 1.0 +offset_right = -0.424072 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_i6q4u") +background = ExtResource("2_8se21") +foreground = ExtResource("3_lqbjx") + +[node name="background" type="TextureRect" parent="."] +layout_mode = 0 +offset_left = -47.0 +offset_top = 46.0 +offset_right = 603.0 +offset_bottom = 696.0 + +[node name="foreground" type="TextureRect" parent="."] +layout_mode = 0 +offset_top = -1.0 +offset_right = 651.0 +offset_bottom = 650.0 + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_jgudp") +} diff --git a/scripts/story_frame_script.gd b/scripts/story_frame_script.gd new file mode 100644 index 0000000..35045a1 --- /dev/null +++ b/scripts/story_frame_script.gd @@ -0,0 +1,19 @@ +@tool +extends Control + + +@export var background: Texture2D +@export var foreground: Texture2D + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + $background.texture = background + $foreground.texture = foreground + + $AnimationPlayer.play("idle") + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass