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
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bkvcg7ivmjl0d"
path="res://.godot/imported/capa.png-8a1b289eccd6e7f3202cf5a91f689be2.ctex"
path="res://.godot/imported/capa.png-81980ba1a831e566c4892bb7087af34c.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://microjogos/2024S1/seu_projeto/capa.png"
dest_files=["res://.godot/imported/capa.png-8a1b289eccd6e7f3202cf5a91f689be2.ctex"]
source_file="res://microjogos/2024S1/quimica-quiz/capa.png"
dest_files=["res://.godot/imported/capa.png-81980ba1a831e566c4892bb7087af34c.ctex"]

[params]

Expand Down
12 changes: 12 additions & 0 deletions microjogos/2024S1/quimica-quiz/cenas/cena_inicial.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[gd_scene load_steps=2 format=3 uid="uid://bgyubsa68ugx4"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_4na5x"]
size = Vector2(1920, 1078)

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

[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
light_mask = 31
position = Vector2(957, 538)
shape = SubResource("RectangleShape2D_4na5x")
debug_color = Color(1, 0.47451, 1, 0.419608)
2,481 changes: 2,481 additions & 0 deletions microjogos/2024S1/quimica-quiz/cenas/main.tscn

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions microjogos/2024S1/quimica-quiz/cenas/node_2d.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[gd_scene load_steps=3 format=3 uid="uid://dy2flai8ivtbl"]

[ext_resource type="Texture2D" uid="uid://b3hmmafqbhi0y" path="res://microjogos/2024S1/quimica-quiz/recursos/Documento_sem_título_1_-removebg-preview.png" id="1_rvemi"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_cruqs"]
size = Vector2(1928, 1095)

[node name="Node2D" type="Node2D"]
position = Vector2(-5, 0)

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(959, 534)
shape = SubResource("RectangleShape2D_cruqs")
debug_color = Color(0.384314, 0.482353, 0.976471, 0.419608)

[node name="_Acerte a função orgânica_" type="Sprite2D" parent="CollisionShape2D"]
position = Vector2(14, -187)
scale = Vector2(1.92634, 1.62933)
texture = ExtResource("1_rvemi")
41 changes: 41 additions & 0 deletions microjogos/2024S1/quimica-quiz/cenas/player.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
extends CharacterBody2D


const SPEED = 200.0
const JUMP_VELOCITY = -400.0

# Get the gravity from the project settings to be synced with RigidBody nodes.
var gravity = ProjectSettings.get_setting("physics/2d/default_gravity")

var is_jumping = false
@onready var animation := $anim as AnimatedSprite2D

func _physics_process(delta):
# Add the gravity.
if not is_on_floor():
velocity.y += gravity * delta

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

# 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 != 0:
velocity.x = direction * SPEED
animation.scale.x = direction
if !is_jumping:
animation.play("run")
elif is_jumping:
animation.play("jump")

else:
velocity.x = move_toward(velocity.x, 0, SPEED)
animation.play("idle")

move_and_slide()
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ signal lose
# 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
const WIDTH = 640
const HEIGHT = 360


# --------------------------------------------------------------------------------------------------
Expand Down
28 changes: 28 additions & 0 deletions microjogos/2024S1/quimica-quiz/cenas/scripts/player.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
extends CharacterBody2D


const SPEED = 300.0
const JUMP_VELOCITY = -400.0

# Get the gravity from the project settings to be synced with RigidBody nodes.
var gravity = ProjectSettings.get_setting("physics/2d/default_gravity")


func _physics_process(delta):
# Add the gravity.
if not is_on_floor():
velocity.y += 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
@@ -1 +1,2 @@
Coloque seus scripts aqui!
extends Node2D
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://db8hkumlo2xpb"
path="res://.godot/imported/Brown_Tile_Terrain (16 x 16).png-ce0472b7641a47e28dd0f8cd701075f7.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://microjogos/2024S1/quimica-quiz/recursos/assents/Cave Tileset/Brown_Tile_Terrain (16 x 16).png"
dest_files=["res://.godot/imported/Brown_Tile_Terrain (16 x 16).png-ce0472b7641a47e28dd0f8cd701075f7.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://btl6ddceeboob"
path="res://.godot/imported/Gray_Tile_Terrain (16 x 16).png-b87974bc099e7a89e7fafb64c0c9cc85.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://microjogos/2024S1/quimica-quiz/recursos/assents/Cave Tileset/Gray_Tile_Terrain (16 x 16).png"
dest_files=["res://.godot/imported/Gray_Tile_Terrain (16 x 16).png-b87974bc099e7a89e7fafb64c0c9cc85.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://dn8ilv77ju3nc"
path="res://.godot/imported/Scaffolding_and_BG_Parts (16 x 16).png-4b6ec9a620be7e0d103ec94c4bce778f.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://microjogos/2024S1/quimica-quiz/recursos/assents/Cave Tileset/Scaffolding_and_BG_Parts (16 x 16).png"
dest_files=["res://.godot/imported/Scaffolding_and_BG_Parts (16 x 16).png-4b6ec9a620be7e0d103ec94c4bce778f.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://ba5rov8xf0a40"
path="res://.godot/imported/_Complete_static_BG_(288 x 208).png-55960544506ad43a8edcddbffde96057.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://microjogos/2024S1/quimica-quiz/recursos/assents/Cave Tileset/_Complete_static_BG_(288 x 208).png"
dest_files=["res://.godot/imported/_Complete_static_BG_(288 x 208).png-55960544506ad43a8edcddbffde96057.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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GrafxKid's publicly released pixel art assets fall under the CC0 1.0 Universal Public Domain License.

CC0 1.0 terms - https://creativecommons.org/publicdomain/zero/1.0/
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://biqd6iijdvfe8"
path="res://.godot/imported/Coin (16 x 16).png-9356274c80225d4f8921a5895d836d43.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://microjogos/2024S1/quimica-quiz/recursos/assents/Mini FX, Items & UI/Common Pick-ups/Coin (16 x 16).png"
dest_files=["res://.godot/imported/Coin (16 x 16).png-9356274c80225d4f8921a5895d836d43.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://mq17c4jx0qu0"
path="res://.godot/imported/Health_Kit (16 x 16).png-3aa538e12aeeb1325eafba22baf64109.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://microjogos/2024S1/quimica-quiz/recursos/assents/Mini FX, Items & UI/Common Pick-ups/Health_Kit (16 x 16).png"
dest_files=["res://.godot/imported/Health_Kit (16 x 16).png-3aa538e12aeeb1325eafba22baf64109.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://b4yskwsjdl88l"
path="res://.godot/imported/Heart_Spin (16 x 16).png-829c21f7573a6f6a95929afb3fffd797.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://microjogos/2024S1/quimica-quiz/recursos/assents/Mini FX, Items & UI/Common Pick-ups/Heart_Spin (16 x 16).png"
dest_files=["res://.godot/imported/Heart_Spin (16 x 16).png-829c21f7573a6f6a95929afb3fffd797.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