summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrique Alves <henriquelalves@gmail.com>2024-01-25 02:04:28 +0200
committerHenrique Alves <henriquelalves@gmail.com>2024-01-25 02:04:28 +0200
commit22da7c525f561f612054b6774f2706747eaa3c9a (patch)
tree9efb99f3730abba2888a56eaed920c01806e8d4f
parenta4ed38306d49a4654570d48d6a7fe5c810ec5da8 (diff)
downloadgamejam-ggj-2024-22da7c525f561f612054b6774f2706747eaa3c9a.tar.gz
gamejam-ggj-2024-22da7c525f561f612054b6774f2706747eaa3c9a.tar.bz2
gamejam-ggj-2024-22da7c525f561f612054b6774f2706747eaa3c9a.zip
testing transition flow
-rw-r--r--game/main.gd38
-rw-r--r--game/main.tscn25
-rw-r--r--game/microgames/flowers_delivery/assets/dodge.pngbin0 -> 15906 bytes
-rw-r--r--game/microgames/flowers_delivery/assets/dodge.png.import35
-rw-r--r--game/microgames/flowers_delivery/assets/flowers.pngbin0 -> 6475 bytes
-rw-r--r--game/microgames/flowers_delivery/assets/flowers.png.import34
-rw-r--r--game/microgames/flowers_delivery/assets/girlfriend.pngbin0 -> 17074 bytes
-rw-r--r--game/microgames/flowers_delivery/assets/girlfriend.png.import35
-rw-r--r--game/microgames/flowers_delivery/assets/player1.pngbin0 -> 18766 bytes
-rw-r--r--game/microgames/flowers_delivery/assets/player1.png.import35
-rw-r--r--game/microgames/flowers_delivery/assets/player2.pngbin0 -> 18969 bytes
-rw-r--r--game/microgames/flowers_delivery/assets/player2.png.import35
-rw-r--r--game/microgames/flowers_delivery/assets/player2.png~bin0 -> 70065 bytes
-rw-r--r--game/microgames/flowers_delivery/flowers_delivery.gd8
-rw-r--r--game/microgames/flowers_delivery/flowers_delivery.tscn61
-rw-r--r--game/microgames/flowers_delivery/player.gd15
-rw-r--r--game/shared/assets/blank.pngbin0 -> 89 bytes
-rw-r--r--game/shared/assets/blank.png.import35
-rw-r--r--game/shared/scripts/microgame.gd7
-rw-r--r--game/transition/transition.gd24
-rw-r--r--game/transition/transition.tscn203
-rw-r--r--main.tscn8
-rw-r--r--project.godot6
23 files changed, 595 insertions, 9 deletions
diff --git a/game/main.gd b/game/main.gd
new file mode 100644
index 0000000..6dc8532
--- /dev/null
+++ b/game/main.gd
@@ -0,0 +1,38 @@
+extends Node2D
+
+const MICROGAMES = [preload("res://game/microgames/flowers_delivery/flowers_delivery.tscn")]
+
+@onready var transition: Transition = %Transition
+@onready var microgame_viewport = %MicrogameViewport
+@onready var microgame_subviewport = %MicrogameSubViewport
+
+var _current_microgame: Microgame
+
+
+func _ready() -> void:
+ remove_child(microgame_viewport)
+ transition.microgame_viewport_container.add_child(microgame_viewport)
+ microgame_viewport.offset_bottom = 0
+ microgame_viewport.offset_left = 0
+ microgame_viewport.offset_right = 0
+ microgame_viewport.offset_top = 0
+
+ while true:
+ if _current_microgame != null:
+ _current_microgame.process_mode = Node.PROCESS_MODE_DISABLED
+
+ transition.show_win_animation()
+
+ await transition.microgame_viewport_hidden
+
+ if _current_microgame != null:
+ _current_microgame.queue_free()
+
+ _current_microgame = MICROGAMES[0].instantiate()
+ microgame_subviewport.add_child(_current_microgame)
+ _current_microgame.process_mode = Node.PROCESS_MODE_DISABLED
+
+ await transition.finished
+ _current_microgame.process_mode = Node.PROCESS_MODE_INHERIT
+
+ await _current_microgame.finished
diff --git a/game/main.tscn b/game/main.tscn
new file mode 100644
index 0000000..447d8c7
--- /dev/null
+++ b/game/main.tscn
@@ -0,0 +1,25 @@
+[gd_scene load_steps=3 format=3 uid="uid://culqaacu08vye"]
+
+[ext_resource type="Script" path="res://game/main.gd" id="1_i86db"]
+[ext_resource type="PackedScene" uid="uid://u3g8s4kck61t" path="res://game/transition/transition.tscn" id="2_xhsf2"]
+
+[node name="Main" type="Node2D"]
+script = ExtResource("1_i86db")
+
+[node name="Transition" parent="." instance=ExtResource("2_xhsf2")]
+unique_name_in_owner = true
+
+[node name="MicrogameViewport" type="SubViewportContainer" parent="."]
+unique_name_in_owner = true
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+stretch = true
+
+[node name="MicrogameSubViewport" type="SubViewport" parent="MicrogameViewport"]
+unique_name_in_owner = true
+handle_input_locally = false
+size = Vector2i(2, 2)
+render_target_update_mode = 4
diff --git a/game/microgames/flowers_delivery/assets/dodge.png b/game/microgames/flowers_delivery/assets/dodge.png
new file mode 100644
index 0000000..d108ac3
--- /dev/null
+++ b/game/microgames/flowers_delivery/assets/dodge.png
Binary files differ
diff --git a/game/microgames/flowers_delivery/assets/dodge.png.import b/game/microgames/flowers_delivery/assets/dodge.png.import
new file mode 100644
index 0000000..0728ec3
--- /dev/null
+++ b/game/microgames/flowers_delivery/assets/dodge.png.import
@@ -0,0 +1,35 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bjs5knhxc6vvi"
+path.s3tc="res://.godot/imported/dodge.png-885aa57bfc3a3708805466208409a6cd.s3tc.ctex"
+metadata={
+"imported_formats": ["s3tc_bptc"],
+"vram_texture": true
+}
+
+[deps]
+
+source_file="res://game/microgames/flowers_delivery/assets/dodge.png"
+dest_files=["res://.godot/imported/dodge.png-885aa57bfc3a3708805466208409a6cd.s3tc.ctex"]
+
+[params]
+
+compress/mode=2
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=true
+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=0
diff --git a/game/microgames/flowers_delivery/assets/flowers.png b/game/microgames/flowers_delivery/assets/flowers.png
new file mode 100644
index 0000000..2b7a19e
--- /dev/null
+++ b/game/microgames/flowers_delivery/assets/flowers.png
Binary files differ
diff --git a/game/microgames/flowers_delivery/assets/flowers.png.import b/game/microgames/flowers_delivery/assets/flowers.png.import
new file mode 100644
index 0000000..4dcf40a
--- /dev/null
+++ b/game/microgames/flowers_delivery/assets/flowers.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bnghowk3bfu77"
+path="res://.godot/imported/flowers.png-db3fb3ee16cec48b0794be099dc99a4a.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://game/microgames/flowers_delivery/assets/flowers.png"
+dest_files=["res://.godot/imported/flowers.png-db3fb3ee16cec48b0794be099dc99a4a.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/game/microgames/flowers_delivery/assets/girlfriend.png b/game/microgames/flowers_delivery/assets/girlfriend.png
new file mode 100644
index 0000000..da081cb
--- /dev/null
+++ b/game/microgames/flowers_delivery/assets/girlfriend.png
Binary files differ
diff --git a/game/microgames/flowers_delivery/assets/girlfriend.png.import b/game/microgames/flowers_delivery/assets/girlfriend.png.import
new file mode 100644
index 0000000..f2d0ef5
--- /dev/null
+++ b/game/microgames/flowers_delivery/assets/girlfriend.png.import
@@ -0,0 +1,35 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dbohkvl4ryqbk"
+path.s3tc="res://.godot/imported/girlfriend.png-7bdc5ee33469c3e6038be5372e93db7d.s3tc.ctex"
+metadata={
+"imported_formats": ["s3tc_bptc"],
+"vram_texture": true
+}
+
+[deps]
+
+source_file="res://game/microgames/flowers_delivery/assets/girlfriend.png"
+dest_files=["res://.godot/imported/girlfriend.png-7bdc5ee33469c3e6038be5372e93db7d.s3tc.ctex"]
+
+[params]
+
+compress/mode=2
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=true
+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=0
diff --git a/game/microgames/flowers_delivery/assets/player1.png b/game/microgames/flowers_delivery/assets/player1.png
new file mode 100644
index 0000000..962ce60
--- /dev/null
+++ b/game/microgames/flowers_delivery/assets/player1.png
Binary files differ
diff --git a/game/microgames/flowers_delivery/assets/player1.png.import b/game/microgames/flowers_delivery/assets/player1.png.import
new file mode 100644
index 0000000..e8b8ad9
--- /dev/null
+++ b/game/microgames/flowers_delivery/assets/player1.png.import
@@ -0,0 +1,35 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cbmk1jr2sqrv1"
+path.s3tc="res://.godot/imported/player1.png-1e65969a6a71fb67b2c4250a47b5fbf6.s3tc.ctex"
+metadata={
+"imported_formats": ["s3tc_bptc"],
+"vram_texture": true
+}
+
+[deps]
+
+source_file="res://game/microgames/flowers_delivery/assets/player1.png"
+dest_files=["res://.godot/imported/player1.png-1e65969a6a71fb67b2c4250a47b5fbf6.s3tc.ctex"]
+
+[params]
+
+compress/mode=2
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=true
+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=0
diff --git a/game/microgames/flowers_delivery/assets/player2.png b/game/microgames/flowers_delivery/assets/player2.png
new file mode 100644
index 0000000..464c461
--- /dev/null
+++ b/game/microgames/flowers_delivery/assets/player2.png
Binary files differ
diff --git a/game/microgames/flowers_delivery/assets/player2.png.import b/game/microgames/flowers_delivery/assets/player2.png.import
new file mode 100644
index 0000000..9d8f881
--- /dev/null
+++ b/game/microgames/flowers_delivery/assets/player2.png.import
@@ -0,0 +1,35 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dfd2176us2w7g"
+path.s3tc="res://.godot/imported/player2.png-2eea75cb2d23a9a3db28576ac2cf3c12.s3tc.ctex"
+metadata={
+"imported_formats": ["s3tc_bptc"],
+"vram_texture": true
+}
+
+[deps]
+
+source_file="res://game/microgames/flowers_delivery/assets/player2.png"
+dest_files=["res://.godot/imported/player2.png-2eea75cb2d23a9a3db28576ac2cf3c12.s3tc.ctex"]
+
+[params]
+
+compress/mode=2
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=true
+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=0
diff --git a/game/microgames/flowers_delivery/assets/player2.png~ b/game/microgames/flowers_delivery/assets/player2.png~
new file mode 100644
index 0000000..5a20dde
--- /dev/null
+++ b/game/microgames/flowers_delivery/assets/player2.png~
Binary files differ
diff --git a/game/microgames/flowers_delivery/flowers_delivery.gd b/game/microgames/flowers_delivery/flowers_delivery.gd
new file mode 100644
index 0000000..2c448de
--- /dev/null
+++ b/game/microgames/flowers_delivery/flowers_delivery.gd
@@ -0,0 +1,8 @@
+extends Microgame
+
+
+# Called when the node enters the scene tree for the first time.
+func _ready() -> void:
+ await $Timer.timeout
+ finished.emit()
+ print("acabou")
diff --git a/game/microgames/flowers_delivery/flowers_delivery.tscn b/game/microgames/flowers_delivery/flowers_delivery.tscn
new file mode 100644
index 0000000..69a374e
--- /dev/null
+++ b/game/microgames/flowers_delivery/flowers_delivery.tscn
@@ -0,0 +1,61 @@
+[gd_scene load_steps=9 format=3 uid="uid://cxxawcp2cuijl"]
+
+[ext_resource type="Texture2D" uid="uid://dbohkvl4ryqbk" path="res://game/microgames/flowers_delivery/assets/girlfriend.png" id="1_isthg"]
+[ext_resource type="Script" path="res://game/microgames/flowers_delivery/flowers_delivery.gd" id="1_jhoh1"]
+[ext_resource type="Texture2D" uid="uid://cbmk1jr2sqrv1" path="res://game/microgames/flowers_delivery/assets/player1.png" id="2_8splb"]
+[ext_resource type="Script" path="res://game/microgames/flowers_delivery/player.gd" id="3_kgimw"]
+[ext_resource type="Texture2D" uid="uid://dfd2176us2w7g" path="res://game/microgames/flowers_delivery/assets/player2.png" id="3_pyt0j"]
+[ext_resource type="Texture2D" uid="uid://bjs5knhxc6vvi" path="res://game/microgames/flowers_delivery/assets/dodge.png" id="4_snyja"]
+[ext_resource type="Texture2D" uid="uid://dv1e2uv1xcoxs" path="res://game/shared/assets/blank.png" id="6_omk1m"]
+
+[sub_resource type="SpriteFrames" id="SpriteFrames_fhfcp"]
+animations = [{
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("2_8splb")
+}, {
+"duration": 1.0,
+"texture": ExtResource("3_pyt0j")
+}],
+"loop": true,
+"name": &"default",
+"speed": 5.0
+}, {
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("4_snyja")
+}],
+"loop": true,
+"name": &"dodge",
+"speed": 5.0
+}]
+
+[node name="FlowersDelivery" type="Node3D"]
+script = ExtResource("1_jhoh1")
+
+[node name="Girlfriend" type="Sprite3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.45863, 1.42701, 0)
+billboard = 1
+texture = ExtResource("1_isthg")
+
+[node name="Player" type="AnimatedSprite3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 13.663)
+billboard = 1
+sprite_frames = SubResource("SpriteFrames_fhfcp")
+animation = &"dodge"
+autoplay = "default"
+script = ExtResource("3_kgimw")
+
+[node name="Camera3D" type="Camera3D" parent="Player"]
+transform = Transform3D(0.568531, 0.293446, -0.768545, 0, 0.934218, 0.356704, 0.822662, -0.202797, 0.531132, -3.65287, 1.74709, 2.17253)
+
+[node name="Sprite3D" type="Sprite3D" parent="."]
+transform = Transform3D(10, 0, 0, 0, 0.4, 0, 0, 0, 1, 1.5768, 2.47888, 7.67072)
+modulate = Color(1, 0.301961, 0.231373, 1)
+pixel_size = 1.0
+texture = ExtResource("6_omk1m")
+
+[node name="Timer" type="Timer" parent="."]
+wait_time = 5.0
+one_shot = true
+autostart = true
diff --git a/game/microgames/flowers_delivery/player.gd b/game/microgames/flowers_delivery/player.gd
new file mode 100644
index 0000000..9f22d08
--- /dev/null
+++ b/game/microgames/flowers_delivery/player.gd
@@ -0,0 +1,15 @@
+extends AnimatedSprite3D
+
+func _ready() -> void:
+ pass
+
+
+func _process(delta: float) -> void:
+ position.z -= delta * 3
+
+ if Input.is_anything_pressed():
+ animation = "dodge"
+ offset.y = -100.0
+ else:
+ animation = "default"
+ offset.y = 0.0
diff --git a/game/shared/assets/blank.png b/game/shared/assets/blank.png
new file mode 100644
index 0000000..f57fe21
--- /dev/null
+++ b/game/shared/assets/blank.png
Binary files differ
diff --git a/game/shared/assets/blank.png.import b/game/shared/assets/blank.png.import
new file mode 100644
index 0000000..77e6d85
--- /dev/null
+++ b/game/shared/assets/blank.png.import
@@ -0,0 +1,35 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dv1e2uv1xcoxs"
+path.s3tc="res://.godot/imported/blank.png-cd7a8e48345c42a0e57f6fac7894d606.s3tc.ctex"
+metadata={
+"imported_formats": ["s3tc_bptc"],
+"vram_texture": true
+}
+
+[deps]
+
+source_file="res://game/shared/assets/blank.png"
+dest_files=["res://.godot/imported/blank.png-cd7a8e48345c42a0e57f6fac7894d606.s3tc.ctex"]
+
+[params]
+
+compress/mode=2
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=true
+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=0
diff --git a/game/shared/scripts/microgame.gd b/game/shared/scripts/microgame.gd
new file mode 100644
index 0000000..7aef5ed
--- /dev/null
+++ b/game/shared/scripts/microgame.gd
@@ -0,0 +1,7 @@
+class_name Microgame
+extends Node
+
+@export var microgame_name = ""
+@export var instruction = ""
+
+signal finished
diff --git a/game/transition/transition.gd b/game/transition/transition.gd
new file mode 100644
index 0000000..45daf65
--- /dev/null
+++ b/game/transition/transition.gd
@@ -0,0 +1,24 @@
+class_name Transition
+extends Node2D
+
+@export var speed_scale = 1.0
+
+@onready var animation_player = %AnimationPlayer
+@onready var microgame_viewport_container = %MicrogameViewportContainer
+
+signal finished
+signal microgame_viewport_hidden
+
+
+func _ready() -> void:
+ animation_player.speed_scale = speed_scale
+
+
+func _emit_microgame_viewport_hidden() -> void:
+ microgame_viewport_hidden.emit()
+
+
+func show_win_animation():
+ animation_player.play("win_transition")
+ await animation_player.animation_finished
+ finished.emit()
diff --git a/game/transition/transition.tscn b/game/transition/transition.tscn
new file mode 100644
index 0000000..0fdeb01
--- /dev/null
+++ b/game/transition/transition.tscn
@@ -0,0 +1,203 @@
+[gd_scene load_steps=6 format=3 uid="uid://u3g8s4kck61t"]
+
+[ext_resource type="Script" path="res://game/transition/transition.gd" id="1_vtfth"]
+
+[sub_resource type="LabelSettings" id="LabelSettings_wobn0"]
+font_size = 44
+font_color = Color(0, 0, 0, 1)
+
+[sub_resource type="Animation" id="Animation_lm0of"]
+resource_name = "win_transition"
+length = 5.0
+tracks/0/type = "value"
+tracks/0/imported = false
+tracks/0/enabled = true
+tracks/0/path = NodePath("Foreground/Label:position")
+tracks/0/interp = 1
+tracks/0/loop_wrap = true
+tracks/0/keys = {
+"times": PackedFloat32Array(0, 1.5, 3.5, 5),
+"transitions": PackedFloat32Array(1, 1, 1, 1),
+"update": 0,
+"values": [Vector2(511, -116), Vector2(521, 289), Vector2(521, 289), Vector2(-282, 283)]
+}
+tracks/1/type = "value"
+tracks/1/imported = false
+tracks/1/enabled = true
+tracks/1/path = NodePath("Foreground/ViewportContainer/ColorRect:color")
+tracks/1/interp = 1
+tracks/1/loop_wrap = true
+tracks/1/keys = {
+"times": PackedFloat32Array(0, 0.5, 4, 5),
+"transitions": PackedFloat32Array(1, 1, 1, 1),
+"update": 0,
+"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
+}
+tracks/2/type = "value"
+tracks/2/imported = false
+tracks/2/enabled = true
+tracks/2/path = NodePath("Foreground/ViewportContainer:size")
+tracks/2/interp = 1
+tracks/2/loop_wrap = true
+tracks/2/keys = {
+"times": PackedFloat32Array(0, 0.5, 4, 5),
+"transitions": PackedFloat32Array(1, 1, 1, 1),
+"update": 0,
+"values": [Vector2(1152, 648), Vector2(432, 220), Vector2(432, 220), Vector2(1152, 648)]
+}
+tracks/3/type = "value"
+tracks/3/imported = false
+tracks/3/enabled = true
+tracks/3/path = NodePath("Foreground/ViewportContainer:position")
+tracks/3/interp = 1
+tracks/3/loop_wrap = true
+tracks/3/keys = {
+"times": PackedFloat32Array(0, 0.5, 4, 5),
+"transitions": PackedFloat32Array(1, 1, 1, 1),
+"update": 0,
+"values": [Vector2(0, 0), Vector2(360, 68), Vector2(360, 68), Vector2(0, 0)]
+}
+tracks/4/type = "method"
+tracks/4/imported = false
+tracks/4/enabled = true
+tracks/4/path = NodePath(".")
+tracks/4/interp = 1
+tracks/4/loop_wrap = true
+tracks/4/keys = {
+"times": PackedFloat32Array(0.6),
+"transitions": PackedFloat32Array(1),
+"values": [{
+"args": [],
+"method": &"_emit_microgame_viewport_hidden"
+}]
+}
+
+[sub_resource type="Animation" id="Animation_hump4"]
+length = 0.001
+tracks/0/type = "value"
+tracks/0/imported = false
+tracks/0/enabled = true
+tracks/0/path = NodePath("Foreground/Label:position")
+tracks/0/interp = 1
+tracks/0/loop_wrap = true
+tracks/0/keys = {
+"times": PackedFloat32Array(0),
+"transitions": PackedFloat32Array(1),
+"update": 0,
+"values": [Vector2(511, -116)]
+}
+tracks/1/type = "value"
+tracks/1/imported = false
+tracks/1/enabled = true
+tracks/1/path = NodePath("Foreground/ViewportContainer/ColorRect:color")
+tracks/1/interp = 1
+tracks/1/loop_wrap = true
+tracks/1/keys = {
+"times": PackedFloat32Array(0),
+"transitions": PackedFloat32Array(1),
+"update": 0,
+"values": [Color(1, 1, 1, 0)]
+}
+tracks/2/type = "value"
+tracks/2/imported = false
+tracks/2/enabled = true
+tracks/2/path = NodePath("Foreground/ViewportContainer:size")
+tracks/2/interp = 1
+tracks/2/loop_wrap = true
+tracks/2/keys = {
+"times": PackedFloat32Array(0),
+"transitions": PackedFloat32Array(1),
+"update": 0,
+"values": [Vector2(1152, 648)]
+}
+tracks/3/type = "value"
+tracks/3/imported = false
+tracks/3/enabled = true
+tracks/3/path = NodePath("Foreground/ViewportContainer:position")
+tracks/3/interp = 1
+tracks/3/loop_wrap = true
+tracks/3/keys = {
+"times": PackedFloat32Array(0),
+"transitions": PackedFloat32Array(1),
+"update": 0,
+"values": [Vector2(0, 0)]
+}
+
+[sub_resource type="AnimationLibrary" id="AnimationLibrary_en0c8"]
+_data = {
+"RESET": SubResource("Animation_hump4"),
+"win_transition": SubResource("Animation_lm0of")
+}
+
+[node name="Transition" type="Node2D"]
+script = ExtResource("1_vtfth")
+
+[node name="Background" type="CanvasLayer" parent="."]
+
+[node name="BackgroundRect" type="Control" parent="Background"]
+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="Background/BackgroundRect"]
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+color = Color(0.976471, 0.780392, 0.717647, 1)
+
+[node name="Foreground" type="CanvasLayer" parent="."]
+
+[node name="ViewportContainer" type="Control" parent="Foreground"]
+layout_mode = 3
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+offset_right = 1152.0
+offset_bottom = 648.0
+grow_horizontal = 2
+grow_vertical = 2
+
+[node name="MicrogameViewportContainer" type="Control" parent="Foreground/ViewportContainer"]
+unique_name_in_owner = true
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+
+[node name="ColorRect" type="ColorRect" parent="Foreground/ViewportContainer"]
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+color = Color(1, 1, 1, 0)
+
+[node name="Label" type="Label" parent="Foreground"]
+anchors_preset = 8
+anchor_left = 0.5
+anchor_top = 0.5
+anchor_right = 0.5
+anchor_bottom = 0.5
+offset_left = 511.0
+offset_top = -116.0
+offset_right = 641.0
+offset_bottom = -55.0
+grow_horizontal = 2
+grow_vertical = 2
+text = "blabla"
+label_settings = SubResource("LabelSettings_wobn0")
+
+[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
+unique_name_in_owner = true
+libraries = {
+"": SubResource("AnimationLibrary_en0c8")
+}
diff --git a/main.tscn b/main.tscn
deleted file mode 100644
index 1c65a03..0000000
--- a/main.tscn
+++ /dev/null
@@ -1,8 +0,0 @@
-[gd_scene format=3 uid="uid://culqaacu08vye"]
-
-[node name="Main" type="Node2D"]
-
-[node name="ColorRect" type="ColorRect" parent="."]
-offset_right = 40.0
-offset_bottom = 40.0
-color = Color(0, 1, 1, 1)
diff --git a/project.godot b/project.godot
index 4f4ecef..0f4f25c 100644
--- a/project.godot
+++ b/project.godot
@@ -10,5 +10,9 @@ config_version=5
[application]
-run/main_scene="res://main.tscn"
+run/main_scene="res://game/main.tscn"
config/features=PackedStringArray("4.2")
+
+[display]
+
+window/stretch/mode="viewport"