diff options
author | Henrique Alves <henriquelalves@gmail.com> | 2024-01-25 02:04:28 +0200 |
---|---|---|
committer | Henrique Alves <henriquelalves@gmail.com> | 2024-01-25 02:04:28 +0200 |
commit | 22da7c525f561f612054b6774f2706747eaa3c9a (patch) | |
tree | 9efb99f3730abba2888a56eaed920c01806e8d4f /game/microgames | |
parent | a4ed38306d49a4654570d48d6a7fe5c810ec5da8 (diff) | |
download | gamejam-ggj-2024-22da7c525f561f612054b6774f2706747eaa3c9a.tar.gz gamejam-ggj-2024-22da7c525f561f612054b6774f2706747eaa3c9a.tar.bz2 gamejam-ggj-2024-22da7c525f561f612054b6774f2706747eaa3c9a.zip |
testing transition flow
Diffstat (limited to 'game/microgames')
14 files changed, 258 insertions, 0 deletions
diff --git a/game/microgames/flowers_delivery/assets/dodge.png b/game/microgames/flowers_delivery/assets/dodge.png Binary files differnew file mode 100644 index 0000000..d108ac3 --- /dev/null +++ b/game/microgames/flowers_delivery/assets/dodge.png 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 Binary files differnew file mode 100644 index 0000000..2b7a19e --- /dev/null +++ b/game/microgames/flowers_delivery/assets/flowers.png 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 Binary files differnew file mode 100644 index 0000000..da081cb --- /dev/null +++ b/game/microgames/flowers_delivery/assets/girlfriend.png 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 Binary files differnew file mode 100644 index 0000000..962ce60 --- /dev/null +++ b/game/microgames/flowers_delivery/assets/player1.png 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 Binary files differnew file mode 100644 index 0000000..464c461 --- /dev/null +++ b/game/microgames/flowers_delivery/assets/player2.png 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~ Binary files differnew file mode 100644 index 0000000..5a20dde --- /dev/null +++ b/game/microgames/flowers_delivery/assets/player2.png~ 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 |