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
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/2023S1/projeto-evandro-loyolla/capa.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://d2aaj5xhf5mp2"
path="res://.godot/imported/capa.png-3e841d0f22c887e47e13db1edfe6fd13.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://microjogos/2023S1/projeto-evandro-loyolla/capa.png"
dest_files=["res://.godot/imported/capa.png-3e841d0f22c887e47e13db1edfe6fd13.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
1 change: 1 addition & 0 deletions microjogos/2023S1/projeto-evandro-loyolla/cenas/cenas.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Coloque suas cenas aqui! A cena que vai rodar no jogo deve necessariamente ser a Main.tscn
77 changes: 77 additions & 0 deletions microjogos/2023S1/projeto-evandro-loyolla/cenas/door.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[gd_scene load_steps=9 format=3 uid="uid://bxyixgvcknjsr"]

[ext_resource type="Script" uid="uid://dh664wwnbvrwm" path="res://microjogos/2023S1/projeto-evandro-loyolla/cenas/scripts/door.gd" id="1_whjkp"]
[ext_resource type="Texture2D" uid="uid://caeyvonnh4g54" path="res://microjogos/2023S1/projeto-evandro-loyolla/recursos/kenney_desert-shooter-pack_1.0/Tiles/door_close.png" id="2_qx2oo"]
[ext_resource type="Texture2D" uid="uid://o4lpceqhlvq5" path="res://microjogos/2023S1/projeto-evandro-loyolla/recursos/kenney_desert-shooter-pack_1.0/Tiles/door_open.png" id="3_d1hqw"]
[ext_resource type="AudioStream" uid="uid://dswcyg6irgda5" path="res://microjogos/2023S1/projeto-evandro-loyolla/recursos/sounds/open_door.wav" id="4_upstj"]
[ext_resource type="FontFile" uid="uid://bh37fuggg4bip" path="res://principal/recursos/fonts/coolvetica/coolvetica rg.otf" id="5_d1hqw"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_upstj"]
size = Vector2(70, 90)

[sub_resource type="SpriteFrames" id="SpriteFrames_xbboa"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_qx2oo")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_d1hqw")
}],
"loop": true,
"name": &"open",
"speed": 5.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_fjflr"]
size = Vector2(32, 24)

[node name="Door" type="StaticBody2D"]
script = ExtResource("1_whjkp")

[node name="Area2D" type="Area2D" parent="."]
position = Vector2(8, 8)

[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("RectangleShape2D_upstj")
debug_color = Color(0.328005, 0.489113, 1, 0.42)

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 3
position = Vector2(8, 8)
sprite_frames = SubResource("SpriteFrames_xbboa")
autoplay = "default"

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(8, 12)
shape = SubResource("RectangleShape2D_fjflr")

[node name="Open" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_upstj")

[node name="Label" type="RichTextLabel" parent="."]
visible = false
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -55.0
offset_top = -27.485
offset_right = 71.0
offset_bottom = -1.485
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/normal_font = ExtResource("5_d1hqw")
theme_override_font_sizes/normal_font_size = 7
text = "Press [Space]"
horizontal_alignment = 1
vertical_alignment = 1

[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
[connection signal="body_exited" from="Area2D" to="." method="_on_area_2d_body_exited"]
25 changes: 25 additions & 0 deletions microjogos/2023S1/projeto-evandro-loyolla/cenas/house.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[gd_scene load_steps=5 format=3 uid="uid://8q04okkwiaa2"]

[ext_resource type="Script" uid="uid://d008x43tahqfs" path="res://microjogos/2023S1/projeto-evandro-loyolla/cenas/scripts/house.gd" id="1_68un4"]
[ext_resource type="Texture2D" uid="uid://bly1sryrhcrqu" path="res://microjogos/2023S1/projeto-evandro-loyolla/recursos/kenney_desert-shooter-pack_1.0/Tiles/BrickHouse.png" id="1_lw05y"]
[ext_resource type="AudioStream" uid="uid://dswcyg6irgda5" path="res://microjogos/2023S1/projeto-evandro-loyolla/recursos/sounds/open_door.wav" id="3_2ycrn"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_lw05y"]
size = Vector2(88, 96)

[node name="House" type="Area2D"]
script = ExtResource("1_68un4")

[node name="BrickHouse" type="Sprite2D" parent="."]
texture_filter = 3
position = Vector2(24, -24)
texture = ExtResource("1_lw05y")

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(24, -24)
shape = SubResource("RectangleShape2D_lw05y")

[node name="Open" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_2ycrn")

[connection signal="body_entered" from="." to="." method="_on_body_entered"]
Loading