Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e943785
Adiciona meu projeto
4wardAerial Apr 5, 2025
158285b
Adiciona movimentação básica de câmera
4wardAerial Apr 5, 2025
125e508
Começa função de tirar foto
4wardAerial Apr 6, 2025
ce3f465
Adiciona tempo de cooldown entre "ações"
4wardAerial Apr 6, 2025
9a0b444
Adiciona múltiplos spawn points para o jogador
4wardAerial Apr 6, 2025
a8c9a7f
Remove múltiplos spawns e adiciona limites para câmera
4wardAerial Apr 6, 2025
8e92cbe
Adiciona shader de outline no Gamuto
4wardAerial Apr 6, 2025
ca5c6b7
Inicia desenvolvimento de funções para checagem de foco
4wardAerial Apr 6, 2025
2c84798
Adiciona mais instâncias de gamutinhos na cena main
4wardAerial Apr 6, 2025
c6e0423
Conserta múltiplas instâncias estarem recebendo mesmo shader
4wardAerial Apr 6, 2025
05ef65b
Adiciona meio para checagem de qual Gamuto específico o jogador está …
4wardAerial Apr 6, 2025
cd158d6
Implementa sinais para os Gamutinhos que identificam qual foi atingido
4wardAerial Apr 6, 2025
f892d09
Adiciona função para escolher aleatoriamente 2 pontos de spawn para o…
4wardAerial Apr 6, 2025
3857719
Adiciona função para remover da cena os Gamutinhos que não foram sele…
4wardAerial Apr 6, 2025
5d6821e
Adiciona mais Gamutinhos e função para deletá-los quando foto for tirada
4wardAerial Apr 6, 2025
58ad804
Conserta erro em que apenas o Gamutinho 1 emitia sinal para ser removido
4wardAerial Apr 6, 2025
9c1aae7
Começa implementação do Gamuto com física que cai da cena
4wardAerial Apr 6, 2025
fea3c92
Faz com que Gamutos caiam fora da cena após atingidos
4wardAerial Apr 6, 2025
19040b1
Adiciona efeitos quando gamuto é atingido
4wardAerial Apr 6, 2025
072a5e1
Adiciona imagens
4wardAerial Apr 6, 2025
7fc7fc0
Toques finais
4wardAerial Apr 6, 2025
51f51f9
Finaliza jogo
4wardAerial Apr 6, 2025
9999904
fix microgames.tres
4wardAerial Apr 6, 2025
282dd65
Toques finais
4wardAerial Apr 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added microjogos/2025S1/gamuto_snap/capa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions microjogos/2025S1/gamuto_snap/capa.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://bwy0sdap2p4mf"
path="res://.godot/imported/capa.png-8f39a44da6a93ade4f5bddd126bb9bf7.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://microjogos/2025S1/gamuto_snap/capa.png"
dest_files=["res://.godot/imported/capa.png-8f39a44da6a93ade4f5bddd126bb9bf7.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
39 changes: 39 additions & 0 deletions microjogos/2025S1/gamuto_snap/cenas/barriers.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[gd_scene load_steps=5 format=3 uid="uid://bhbi5lr5iqq0g"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_4fk66"]
size = Vector2(90, 1080)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_k4yvt"]
size = Vector2(90, 1080)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_eooh1"]
size = Vector2(1920, 90)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vfkc"]
size = Vector2(1920, 100)

[node name="barriers" type="Node2D"]

[node name="barrierRight" type="StaticBody2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="barrierRight"]
position = Vector2(45, 540)
shape = SubResource("RectangleShape2D_4fk66")

[node name="barrierLeft" type="StaticBody2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="barrierLeft"]
position = Vector2(1875, 540)
shape = SubResource("RectangleShape2D_k4yvt")

[node name="barrierTop" type="StaticBody2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="barrierTop"]
position = Vector2(960, 45)
shape = SubResource("RectangleShape2D_eooh1")

[node name="barrierBot" type="StaticBody2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="barrierBot"]
position = Vector2(960, 1030)
shape = SubResource("RectangleShape2D_4vfkc")
89 changes: 89 additions & 0 deletions microjogos/2025S1/gamuto_snap/cenas/cameraPlayer.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
[gd_scene load_steps=13 format=3 uid="uid://bukwvlpdiph3y"]

[ext_resource type="Script" uid="uid://t5asnuie65sg" path="res://microjogos/2025S1/gamuto_snap/cenas/scripts/camera_player.gd" id="1_0sfhs"]
[ext_resource type="Shader" uid="uid://c2v64lofhiawv" path="res://microjogos/2025S1/gamuto_snap/cenas/shaders/cameraPlayer.gdshader" id="2_hogq1"]
[ext_resource type="Texture2D" uid="uid://54t0uw7tu616" path="res://microjogos/2025S1/gamuto_snap/recursos/imagens/cam_overlay_sheet.png" id="3_oirir"]
[ext_resource type="AudioStream" uid="uid://bqwfuk7ncsmn4" path="res://microjogos/2025S1/gamuto_snap/recursos/sons/photo_sound.ogg" id="4_0qtja"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_vk3ex"]
shader = ExtResource("2_hogq1")
shader_parameter/flash = 0.0

[sub_resource type="AtlasTexture" id="AtlasTexture_84n45"]
atlas = ExtResource("3_oirir")
region = Rect2(0, 0, 1920, 1080)

[sub_resource type="AtlasTexture" id="AtlasTexture_0qtja"]
atlas = ExtResource("3_oirir")
region = Rect2(1920, 0, 1920, 1080)

[sub_resource type="AtlasTexture" id="AtlasTexture_oirir"]
atlas = ExtResource("3_oirir")
region = Rect2(3840, 0, 1920, 1080)

[sub_resource type="AtlasTexture" id="AtlasTexture_vk3ex"]
atlas = ExtResource("3_oirir")
region = Rect2(5760, 0, 1920, 1080)

[sub_resource type="SpriteFrames" id="SpriteFrames_seflk"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_84n45")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0qtja")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_oirir")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vk3ex")
}],
"loop": true,
"name": &"default",
"speed": 2.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_0sfhs"]
size = Vector2(700, 250)

[sub_resource type="CircleShape2D" id="CircleShape2D_0sfhs"]
radius = 68.0661

[node name="CameraPlayer" type="CharacterBody2D"]
script = ExtResource("1_0sfhs")
speed = 400

[node name="playerAnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_vk3ex")
scale = Vector2(0.667, 0.667)
sprite_frames = SubResource("SpriteFrames_seflk")
autoplay = "default"
frame = 2
frame_progress = 0.409853

[node name="playerCollision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_0sfhs")
debug_color = Color(0, 0.6, 0.701961, 0.176471)

[node name="playerArea2D" type="Area2D" parent="."]

[node name="areaCollision" type="CollisionShape2D" parent="playerArea2D"]
shape = SubResource("CircleShape2D_0sfhs")

[node name="playerCamera2D" type="Camera2D" parent="."]
zoom = Vector2(1.5, 1.5)
process_callback = 0
position_smoothing_enabled = true

[node name="flashSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_0qtja")

[node name="timers" type="Node" parent="."]

[node name="snap_timer" type="Timer" parent="timers"]

[connection signal="area_entered" from="playerArea2D" to="." method="_on_player_area_2d_area_entered"]
[connection signal="area_exited" from="playerArea2D" to="." method="_on_player_area_2d_area_exited"]
[connection signal="timeout" from="timers/snap_timer" to="." method="_on_snap_timer_timeout"]
20 changes: 20 additions & 0 deletions microjogos/2025S1/gamuto_snap/cenas/gamutoPhysics.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[gd_scene load_steps=4 format=3 uid="uid://dft82gvmyae53"]

[ext_resource type="Script" uid="uid://ch4dxpep2pj37" path="res://microjogos/2025S1/gamuto_snap/cenas/scripts/gamuto_physics.gd" id="1_dvsof"]
[ext_resource type="Texture2D" uid="uid://bl202sfp6rxmg" path="res://microjogos/2025S1/gamuto_snap/recursos/imagens/gamuto_flashed.png" id="2_dvsof"]

[sub_resource type="CircleShape2D" id="CircleShape2D_8vw7n"]
radius = 95.0

[node name="GamutoPhysics" type="RigidBody2D"]
linear_velocity = Vector2(0, -500)
angular_velocity = 0.174533
script = ExtResource("1_dvsof")

[node name="gamutoPhysicsSprite" type="Sprite2D" parent="."]
texture = ExtResource("2_dvsof")
offset = Vector2(0, 2)

[node name="gamutoPhysicsCollision" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_8vw7n")
disabled = true
32 changes: 32 additions & 0 deletions microjogos/2025S1/gamuto_snap/cenas/gamutos.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[gd_scene load_steps=6 format=3 uid="uid://x6twngw4lu8i"]

[ext_resource type="Shader" uid="uid://cu83nvshfiplr" path="res://microjogos/2025S1/gamuto_snap/cenas/shaders/gamutos.gdshader" id="1_3pnec"]
[ext_resource type="Script" uid="uid://c0cvhjqkyktdt" path="res://microjogos/2025S1/gamuto_snap/cenas/scripts/gamuto_area.gd" id="2_j2cbt"]
[ext_resource type="Texture2D" uid="uid://bpnelp20isimn" path="res://microjogos/2025S1/gamuto_snap/recursos/imagens/gamuto_sleep.png" id="3_kkape"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_kkape"]
resource_local_to_scene = true
shader = ExtResource("1_3pnec")
shader_parameter/color = Color(1, 1, 1, 1)
shader_parameter/width = 0.0
shader_parameter/pattern = 0
shader_parameter/inside = false
shader_parameter/add_margins = true

[sub_resource type="CircleShape2D" id="CircleShape2D_hu13g"]
radius = 95.1893

[node name="gamutoArea" type="Area2D"]
script = ExtResource("2_j2cbt")

[node name="gamutoAreaSprite" type="Sprite2D" parent="."]
material = SubResource("ShaderMaterial_kkape")
scale = Vector2(0.5, 0.5)
texture = ExtResource("3_kkape")
offset = Vector2(0, 2)

[node name="gamutoAreaCollision" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_hu13g")

[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="area_exited" from="." to="." method="_on_area_exited"]
96 changes: 96 additions & 0 deletions microjogos/2025S1/gamuto_snap/cenas/main.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
[gd_scene load_steps=10 format=3 uid="uid://s34c8u1re5fr"]

[ext_resource type="PackedScene" uid="uid://bukwvlpdiph3y" path="res://microjogos/2025S1/gamuto_snap/cenas/cameraPlayer.tscn" id="1_6m65u"]
[ext_resource type="Script" uid="uid://dddvjk0hd57ea" path="res://microjogos/2025S1/gamuto_snap/cenas/scripts/main.gd" id="1_v50tu"]
[ext_resource type="Texture2D" uid="uid://c8h3itjel18r2" path="res://microjogos/2025S1/gamuto_snap/recursos/imagens/cave_background.png" id="2_0rp5u"]
[ext_resource type="PackedScene" uid="uid://bhbi5lr5iqq0g" path="res://microjogos/2025S1/gamuto_snap/cenas/barriers.tscn" id="2_dwaeq"]
[ext_resource type="Texture2D" uid="uid://bl4nschoxudgs" path="res://microjogos/2025S1/gamuto_snap/recursos/imagens/cave_foreground.png" id="3_g14aq"]
[ext_resource type="Script" uid="uid://c5rc7lt2iu062" path="res://microjogos/2025S1/gamuto_snap/cenas/scripts/gamutinhos.gd" id="5_4w37p"]
[ext_resource type="PackedScene" uid="uid://x6twngw4lu8i" path="res://microjogos/2025S1/gamuto_snap/cenas/gamutos.tscn" id="5_82nyc"]
[ext_resource type="Script" uid="uid://dge63xquae2yx" path="res://microjogos/2025S1/gamuto_snap/cenas/scripts/gamutinhos_physics.gd" id="6_0rp5u"]
[ext_resource type="AudioStream" uid="uid://dcovd3k0b0xp6" path="res://microjogos/2025S1/gamuto_snap/recursos/sons/music.mp3" id="9_d5ds7"]

[node name="Main" type="Node2D"]
texture_filter = 1
script = ExtResource("1_v50tu")

[node name="background" type="Sprite2D" parent="."]
position = Vector2(960, 540)
scale = Vector2(0.8, 0.8)
texture = ExtResource("2_0rp5u")
metadata/_edit_lock_ = true

[node name="foreground" type="Sprite2D" parent="."]
z_index = 1
position = Vector2(960, 540)
scale = Vector2(0.8, 0.8)
texture = ExtResource("3_g14aq")

[node name="barriers" parent="." instance=ExtResource("2_dwaeq")]
metadata/_edit_lock_ = true

[node name="gamutinhos" type="Node" parent="."]
script = ExtResource("5_4w37p")

[node name="gamuto1" parent="gamutinhos" instance=ExtResource("5_82nyc")]
position = Vector2(485, 923)
rotation = 0.261799
scale = Vector2(0.8, 0.8)

[node name="gamuto2" parent="gamutinhos" instance=ExtResource("5_82nyc")]
position = Vector2(1539, 157)
rotation = -2.61799
scale = Vector2(1.45709, 1.45709)

[node name="gamuto3" parent="gamutinhos" instance=ExtResource("5_82nyc")]
position = Vector2(929, 81)
rotation = 3.14159
scale = Vector2(0.791827, 0.791827)

[node name="gamuto4" parent="gamutinhos" instance=ExtResource("5_82nyc")]
position = Vector2(323, 314)
rotation = 2.09439
scale = Vector2(1.16947, 1.17252)

[node name="gamuto5" parent="gamutinhos" instance=ExtResource("5_82nyc")]
position = Vector2(1689, 899)
rotation = -0.521797
scale = Vector2(3.1714, 3.1714)

[node name="gamutinhosFisicos" type="Node" parent="."]
script = ExtResource("6_0rp5u")

[node name="spawnPoints" type="Node" parent="."]

[node name="spawn1" type="Marker2D" parent="spawnPoints"]
position = Vector2(485, 923)

[node name="spawn2" type="Marker2D" parent="spawnPoints"]
position = Vector2(1539, 157)

[node name="spawn3" type="Marker2D" parent="spawnPoints"]
position = Vector2(929, 81)

[node name="spawn4" type="Marker2D" parent="spawnPoints"]
position = Vector2(323, 314)

[node name="spawn5" type="Marker2D" parent="spawnPoints"]
position = Vector2(1689, 899)

[node name="player" parent="." instance=ExtResource("1_6m65u")]
z_index = 1
position = Vector2(961, 540)
metadata/_edit_lock_ = true

[node name="mainMusic" type="AudioStreamPlayer" parent="."]
stream = ExtResource("9_d5ds7")

[connection signal="win" from="." to="player" method="_on_main_win"]
[connection signal="any_was_snapped" from="gamutinhos" to="." method="_on_gamutinhos_any_was_snapped"]
[connection signal="this_was_snapped" from="gamutinhos" to="gamutinhosFisicos" method="_on_gamutinhos_this_was_snapped"]
[connection signal="area_entered" from="gamutinhos/gamuto1" to="player" method="_on_gamuto_1_area_entered"]
[connection signal="area_entered" from="gamutinhos/gamuto2" to="player" method="_on_gamuto_2_area_entered"]
[connection signal="area_entered" from="gamutinhos/gamuto3" to="player" method="_on_gamuto_3_area_entered"]
[connection signal="area_entered" from="gamutinhos/gamuto4" to="player" method="_on_gamuto_4_area_entered"]
[connection signal="area_entered" from="gamutinhos/gamuto5" to="player" method="_on_gamuto_5_area_entered"]
[connection signal="snapped_gamuto" from="player" to="gamutinhos" method="_on_player_snapped_gamuto"]
Loading