Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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_petpet/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_petpet/capa.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://oyfvronhbhvy"
path="res://.godot/imported/capa.png-1ffa16ac497093d2e8c8157390a0ec42.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://microjogos/2025S1/gamuto_petpet/capa.png"
dest_files=["res://.godot/imported/capa.png-1ffa16ac497093d2e8c8157390a0ec42.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
2 changes: 2 additions & 0 deletions microjogos/2025S1/gamuto_petpet/cenas/cenas.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Coloque suas cenas aqui! A cena que vai rodar no jogo deve necessariamente ser a Main.tscn

25 changes: 25 additions & 0 deletions microjogos/2025S1/gamuto_petpet/cenas/character_body_2d.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
extends CharacterBody2D


const SPEED = 300.0
const JUMP_VELOCITY = -400.0


func _physics_process(delta: float) -> void:
# Add the gravity.
if not is_on_floor():
velocity += get_gravity() * delta

# Handle jump.
if Input.is_action_just_pressed("ui_accept") and is_on_floor():
velocity.y = JUMP_VELOCITY

# Get the input direction and handle the movement/deceleration.
# As good practice, you should replace UI actions with custom gameplay actions.
var direction := Input.get_axis("ui_left", "ui_right")
if direction:
velocity.x = direction * SPEED
else:
velocity.x = move_toward(velocity.x, 0, SPEED)

move_and_slide()
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://hmo5eue8wn3y
35 changes: 35 additions & 0 deletions microjogos/2025S1/gamuto_petpet/cenas/gamuto.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[gd_scene load_steps=6 format=3 uid="uid://bfwsayxbk75mm"]

[ext_resource type="Script" uid="uid://cbbkl2dxm3og3" path="res://microjogos/2025S1/gamuto_petpet/cenas/scripts/gamuto.gd" id="1_2a8sa"]
[ext_resource type="Texture2D" uid="uid://dicvgma08keh3" path="res://microjogos/2025S1/gamuto_petpet/recursos/imagens/gamutotriste1.png" id="2_rlplr"]
[ext_resource type="Texture2D" uid="uid://lcwrh5miarjp" path="res://microjogos/2025S1/gamuto_petpet/recursos/imagens/gamutotriste2.png" id="3_amd7b"]

[sub_resource type="SpriteFrames" id="SpriteFrames_rlplr"]
animations = [{
"frames": [{
"duration": 3.0,
"texture": ExtResource("2_rlplr")
}, {
"duration": 1.0,
"texture": ExtResource("3_amd7b")
}],
"loop": true,
"name": &"crying",
"speed": 5.0
}]

[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_3x7b6"]
radius = 3.92477
height = 8.31933

[node name="gamuto" type="Area2D"]
script = ExtResource("1_2a8sa")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_rlplr")
animation = &"crying"

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(16, 16)
scale = Vector2(46.8817, 40.3878)
shape = SubResource("CapsuleShape2D_3x7b6")
56 changes: 56 additions & 0 deletions microjogos/2025S1/gamuto_petpet/cenas/main.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[gd_scene load_steps=7 format=3 uid="uid://bljjgqolr1tm3"]

[ext_resource type="Script" uid="uid://d1dd7ckou11yk" path="res://microjogos/2025S1/gamuto_petpet/cenas/scripts/main.gd" id="1_0sc6v"]
[ext_resource type="Texture2D" uid="uid://dog3lkdvesojw" path="res://microjogos/2025S1/gamuto_petpet/recursos/imagens/bg.png" id="1_7qddy"]
[ext_resource type="Script" uid="uid://bwkj2x65owpoo" path="res://microjogos/2025S1/gamuto_petpet/cenas/scripts/mouse.gd" id="1_w0e6d"]
[ext_resource type="Texture2D" uid="uid://db2mrbqo6tl8q" path="res://microjogos/2025S1/gamuto_petpet/recursos/imagens/maozinha.png" id="3_0sc6v"]
[ext_resource type="PackedScene" uid="uid://bfwsayxbk75mm" path="res://microjogos/2025S1/gamuto_petpet/cenas/gamuto.tscn" id="3_crsyb"]

[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_7qddy"]
radius = 2.76713
height = 7.40807

[node name="main" type="Node2D"]
script = ExtResource("1_0sc6v")

[node name="Bg" type="Sprite2D" parent="."]
position = Vector2(960, 540)
texture = ExtResource("1_7qddy")

[node name="gamuto" parent="." instance=ExtResource("3_crsyb")]
position = Vector2(1261, 395)
scale = Vector2(0.845, 0.845)

[node name="mouse" type="CharacterBody2D" parent="."]
position = Vector2(972, 535)
scale = Vector2(0.63, 0.63)
script = ExtResource("1_w0e6d")
speed = 500.0

[node name="Sprite2D" type="Sprite2D" parent="mouse"]
texture = ExtResource("3_0sc6v")

[node name="CollisionShape2D" type="CollisionShape2D" parent="mouse"]
rotation = -3.14159
scale = Vector2(59.7255, -45.8959)
shape = SubResource("CapsuleShape2D_7qddy")

[node name="Control" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0

[node name="Label" type="Label" parent="Control"]
layout_mode = 0
offset_left = 49.0
offset_top = 34.0
offset_right = 523.0
offset_bottom = 106.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
theme_override_font_sizes/font_size = 46
text = "cafuné [espaço]"

[connection signal="body_entered" from="gamuto" to="mouse" method="_on_gamuto_body_entered"]
[connection signal="body_exited" from="gamuto" to="mouse" method="_on_gamuto_body_exited"]
21 changes: 21 additions & 0 deletions microjogos/2025S1/gamuto_petpet/cenas/scripts/gamuto.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
extends Area2D
@onready var anim: AnimatedSprite2D = $AnimatedSprite2D


# Called when the node enters the scene tree for the first time.
func _ready() -> void:
randomize_position()
anim.play("crying")
func randomize_position():
var min_x = 80
var max_x = 1800
var min_y = 80
var max_y = 970

var random_x = randf_range(min_x, max_x)
var random_y = randf_range(min_y, max_y)

position = Vector2(random_x, random_y)

func _process(delta: float) -> void:
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://cbbkl2dxm3og3
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends Node2D


# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://c8lndcpa8alk4
72 changes: 72 additions & 0 deletions microjogos/2025S1/gamuto_petpet/cenas/scripts/main.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
extends Node2D

# Declaração dos sinais win e lose

signal win
signal lose

# Estas constantes são usadas para determinar o tamanho da tela do seu jogo. Por padrão, definem uma
# tela 1920x1080, que é padrão para monitores full HD. Caso você queira uma resolução menor para
# atingir uma estética mais pixelada, você pode mudar estes números para qualquer outra resolução
# 16:9
const WIDTH = 1920
const HEIGHT = 1080


# --------------------------------------------------------------------------------------------------
# FUNÇÕES PADRÃO
# --------------------------------------------------------------------------------------------------

# Esta função é chamada assim que esta cena é instanciada, ou seja, assim que seu minigame inicia
func _ready():
# Verifica a linguagem do jogo e mostra texto nesta linguagem. Deve dar uma ideia do que deve
# ser feito para vencer o jogo. A fonte usada não suporta caracteres latinos como ~ ou ´
match Global.language:
Global.LANGUAGE.EN:
NotificationCenter.notify("Pet Gamuto!")
Global.LANGUAGE.PT:
NotificationCenter.notify("Fça cafuné no Gamuto")


# Esta função é chamada uma vez por frame e é otimizada para cálculos relacionados a física, como
# a movimentação de um personagem. O parâmetro delta indica a quantidade de tempo que passou desde
# a última chamada desta função. O comando pass não faz nada
func _physics_process(delta):
pass


# Esta função é chamada uma vez por frame e é otimizada para cálculos relacionados a renderização,
# como a movimentação de um personagem. O parâmetro delta indica a quantidade de tempo que passou
# desde a última chamada desta função. O comando pass não faz nada
func _process(delta):
pass


# --------------------------------------------------------------------------------------------------
# SUAS FUNÇÕES
# --------------------------------------------------------------------------------------------------


# Um método genérico. Crie quantos métodos você precisar!
func my_method():
pass


# --------------------------------------------------------------------------------------------------
# CONDIÇÕES DE VITÓRIA
# --------------------------------------------------------------------------------------------------
# Quando o jogo começa, ela assume que o jogador não conseguiu vencer o jogo ainda, ou seja, se não
# acontecer nada, o jogador vai perder o jogo. A verificação se o jogador venceu o minigame é feita
# com base na emissão dos sinais "win" e "lose". Se "win" foi o último sinal emitido, o jogador
# vencerá o jogo, e se "lose" foi o último sinal emitido ou nenhum sinal foi emitido, o jogador
# perderá o jogo


# Chame esta função para registrar que o jogador venceu o jogo
func register_win():
emit_signal("win")


# Chame esta função para registrar que o jogador perdeu o jogo
func register_lose():
emit_signal("lose")
1 change: 1 addition & 0 deletions microjogos/2025S1/gamuto_petpet/cenas/scripts/main.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://d1dd7ckou11yk
34 changes: 34 additions & 0 deletions microjogos/2025S1/gamuto_petpet/cenas/scripts/mouse.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
extends CharacterBody2D

@export var speed : float
#var velocity = Vector2() # Vetor de velocidade
var poder_petar : bool = false
# Função _ready, que é chamada quando o node é inicializado
func _ready():
pass

func _process(delta):
velocity = Vector2.ZERO # Inicializa a velocidade
if Input.get_axis("esquerda", "direita") < 0: # Movimento para a esquerda
velocity.x = -speed
elif Input.get_axis("esquerda", "direita") > 0: # Movimento para a direita
velocity.x = speed
if Input.get_axis("cima", "baixo") < 0: # Movimento para cima
velocity.y = -speed
elif Input.get_axis("cima", "baixo") > 0: # Movimento para baixo
velocity.y = speed

if poder_petar and Input.is_action_just_pressed("acao"):
emit_signal("win")
get_parent().register_win()
print("foi uma metida satisfatória")

move_and_slide()

func _on_gamuto_body_entered(body: Node2D) -> void:
poder_petar = true
print("meteu dentro")

func _on_gamuto_body_exited(body: Node2D) -> void:
poder_petar = false
print("desmeteu")
1 change: 1 addition & 0 deletions microjogos/2025S1/gamuto_petpet/cenas/scripts/mouse.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://bwkj2x65owpoo
1 change: 1 addition & 0 deletions microjogos/2025S1/gamuto_petpet/cenas/scripts/scripts.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Coloque seus scripts aqui!
17 changes: 17 additions & 0 deletions microjogos/2025S1/gamuto_petpet/microgame.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[gd_resource type="Resource" script_class="MicrogameAsset" load_steps=4 format=3 uid="uid://dc60w8q85u5ju"]

[ext_resource type="Texture2D" uid="uid://oyfvronhbhvy" path="res://microjogos/2025S1/gamuto_petpet/capa.png" id="1_4hhok"]
[ext_resource type="PackedScene" uid="uid://bljjgqolr1tm3" path="res://microjogos/2025S1/gamuto_petpet/cenas/main.tscn" id="1_7qu53"]
[ext_resource type="Script" uid="uid://bus1nknp6xsc0" path="res://principal/microgame_asset.gd" id="1_g2ufo"]

[resource]
script = ExtResource("1_g2ufo")
cover = ExtResource("1_4hhok")
title_pt = &"Pet Gamuto"
title_en = &"Pet Gamuto"
credits_pt = "desenvolvido por Tamires (@taris.rabiscoisco) - membro do Gamelab (@facamp_gamelab)"
credits_en = "developed by Tamires (@taris.rabiscoisco) - member of Gamelab (@gamelab_facamp)"
start_message_pt = &"GAMUTO ESTÁ TRISTE :( DÊ CARINHO A ELE!"
start_message_en = &"GAMUTO IS SAD :( PET HIM!"
main_scene = ExtResource("1_7qu53")
difficulty = 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://bvj77rae8x3ws"
path="res://.godot/imported/GMTTitleFace.png-1c4c3438e3bdf8b49974d15828b80f27.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://microjogos/2025S1/gamuto_petpet/recursos/imagens/GMTTitleFace.png"
dest_files=["res://.godot/imported/GMTTitleFace.png-1c4c3438e3bdf8b49974d15828b80f27.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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://c31hnaen2xrh3"
path="res://.godot/imported/Mutoman.png-30ca121e04aba4bae88424f4ea3ea03b.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://microjogos/2025S1/gamuto_petpet/recursos/imagens/Mutoman.png"
dest_files=["res://.godot/imported/Mutoman.png-30ca121e04aba4bae88424f4ea3ea03b.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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading