Skip to content
Draft
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/2024S1/projeto-faroeste/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/2024S1/projeto-faroeste/capa.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

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

[deps]

source_file="res://microjogos/2024S1/projeto-faroeste/capa.png"
dest_files=["res://.godot/imported/capa.png-fe3ab1710c7bc4ea25c5b4a664331970.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/2024S1/projeto-faroeste/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
145 changes: 145 additions & 0 deletions microjogos/2024S1/projeto-faroeste/cenas/inimigo.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
[gd_scene load_steps=16 format=3 uid="uid://s1spkramy4cs"]

[ext_resource type="Texture2D" uid="uid://cii6psgd00xei" path="res://microjogos/2024S1/projeto-faroeste/recursos/images/vilao.png" id="1_5coh8"]
[ext_resource type="Script" uid="uid://b1vgb2wdy2ugc" path="res://microjogos/2024S1/projeto-faroeste/cenas/scripts/inimigo.gd" id="1_kgqrp"]
[ext_resource type="AudioStream" uid="uid://bpkyqer33xn0w" path="res://microjogos/2024S1/projeto-faroeste/recursos/sounds/gunshot-desert-eagle-pistol-fascinatedsound-3-3-00-01.wav" id="3_ndigo"]

[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_m76k1"]
radius = 30.0
height = 238.0

[sub_resource type="AtlasTexture" id="AtlasTexture_tcv8l"]
atlas = ExtResource("1_5coh8")
region = Rect2(0, 0, 50, 50)

[sub_resource type="AtlasTexture" id="AtlasTexture_iraj1"]
atlas = ExtResource("1_5coh8")
region = Rect2(50, 0, 50, 50)

[sub_resource type="AtlasTexture" id="AtlasTexture_ndigo"]
atlas = ExtResource("1_5coh8")
region = Rect2(0, 0, 50, 50)

[sub_resource type="AtlasTexture" id="AtlasTexture_vhkr4"]
atlas = ExtResource("1_5coh8")
region = Rect2(50, 0, 50, 50)

[sub_resource type="AtlasTexture" id="AtlasTexture_64q5e"]
atlas = ExtResource("1_5coh8")
region = Rect2(0, 100, 50, 50)

[sub_resource type="AtlasTexture" id="AtlasTexture_g1y5e"]
atlas = ExtResource("1_5coh8")
region = Rect2(50, 50, 50, 50)

[sub_resource type="AtlasTexture" id="AtlasTexture_lgpbe"]
atlas = ExtResource("1_5coh8")
region = Rect2(0, 50, 50, 50)

[sub_resource type="SpriteFrames" id="SpriteFrames_jkfk6"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_tcv8l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_iraj1")
}],
"loop": true,
"name": &"default",
"speed": 2.0
}, {
"frames": [{
"duration": 0.2,
"texture": SubResource("AtlasTexture_ndigo")
}, {
"duration": 0.2,
"texture": SubResource("AtlasTexture_vhkr4")
}, {
"duration": 0.2,
"texture": SubResource("AtlasTexture_64q5e")
}, {
"duration": 0.2,
"texture": SubResource("AtlasTexture_g1y5e")
}, {
"duration": 3.0,
"texture": SubResource("AtlasTexture_lgpbe")
}, {
"duration": 2.0,
"texture": SubResource("AtlasTexture_g1y5e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_64q5e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vhkr4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ndigo")
}],
"loop": false,
"name": &"shot",
"speed": 5.0
}]

[sub_resource type="Animation" id="Animation_vhkr4"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}

[sub_resource type="Animation" id="Animation_ndigo"]
resource_name = "death"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:rotation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.3),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.5708]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_64q5e"]
_data = {
&"RESET": SubResource("Animation_vhkr4"),
&"death": SubResource("Animation_ndigo")
}

[node name="Inimigo" type="CharacterBody2D"]
script = ExtResource("1_kgqrp")

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -120)
shape = SubResource("CapsuleShape2D_m76k1")

[node name="Sprite" type="AnimatedSprite2D" parent="."]
texture_filter = 1
position = Vector2(0, -120)
scale = Vector2(6, 6)
sprite_frames = SubResource("SpriteFrames_jkfk6")
autoplay = "default"
frame_progress = 0.487872

[node name="Gunshot" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_ndigo")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_64q5e")
}

[connection signal="animation_finished" from="Sprite" to="." method="_on_sprite_animation_finished"]
51 changes: 51 additions & 0 deletions microjogos/2024S1/projeto-faroeste/cenas/main.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[gd_scene load_steps=8 format=3 uid="uid://bi0ahd7cv37i6"]

[ext_resource type="Script" uid="uid://tyed50mv47se" path="res://microjogos/2024S1/projeto-faroeste/cenas/scripts/main.gd" id="1_tlomy"]
[ext_resource type="Texture2D" uid="uid://dwo337mjnkubj" path="res://microjogos/2024S1/projeto-faroeste/recursos/images/JEMA BRY 1697-15.jpg" id="2_lx4ll"]
[ext_resource type="PackedScene" uid="uid://btwd0115b2rb8" path="res://microjogos/2024S1/projeto-faroeste/cenas/player.tscn" id="3_om35m"]
[ext_resource type="PackedScene" uid="uid://s1spkramy4cs" path="res://microjogos/2024S1/projeto-faroeste/cenas/inimigo.tscn" id="4_om35m"]
[ext_resource type="Texture2D" uid="uid://b0x2kihexrjul" path="res://microjogos/2024S1/projeto-faroeste/recursos/images/atire.png" id="6_jh6h0"]
[ext_resource type="AudioStream" uid="uid://cj7wlvh5dgfxx" path="res://microjogos/2024S1/projeto-faroeste/recursos/sounds/u_jfkxueyart-eagle-281163.wav" id="6_om35m"]
[ext_resource type="AudioStream" uid="uid://c7ogbo0qnooqj" path="res://microjogos/2024S1/projeto-faroeste/recursos/sounds/samuel_copier_country-wild-west-harmonica-267552.wav" id="7_prn36"]

[node name="Main" type="Node2D" node_paths=PackedStringArray("intro", "sprite", "player", "enemy")]
texture_filter = 3
script = ExtResource("1_tlomy")
intro = NodePath("TempoIntro")
sprite = NodePath("Sprite")
player = NodePath("Player")
enemy = NodePath("Inimigo")

[node name="JemaBry1697-15" type="Sprite2D" parent="."]
position = Vector2(960, 305)
scale = Vector2(0.25, 0.25)
texture = ExtResource("2_lx4ll")

[node name="Player" parent="." instance=ExtResource("3_om35m")]
position = Vector2(222, 961)

[node name="Inimigo" parent="." instance=ExtResource("4_om35m")]
position = Vector2(1785, 959)

[node name="atire" type="Sprite2D" parent="."]
visible = false
position = Vector2(960, 540)
scale = Vector2(3, 3)
texture = ExtResource("6_jh6h0")

[node name="Sprite" type="Timer" parent="."]
one_shot = true

[node name="TempoIntro" type="Timer" parent="."]
wait_time = 4.601
one_shot = true

[node name="sino" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6_om35m")

[node name="BDM" type="AudioStreamPlayer" parent="."]
stream = ExtResource("7_prn36")
autoplay = true

[connection signal="timeout" from="Sprite" to="." method="_on_sprite_timeout"]
[connection signal="timeout" from="TempoIntro" to="." method="_on_tempo_intro_timeout"]
148 changes: 148 additions & 0 deletions microjogos/2024S1/projeto-faroeste/cenas/player.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
[gd_scene load_steps=17 format=3 uid="uid://btwd0115b2rb8"]

[ext_resource type="Texture2D" uid="uid://bwdxsst4cfyqb" path="res://microjogos/2024S1/projeto-faroeste/recursos/images/New Piskel(1).png" id="1_20frq"]
[ext_resource type="Script" uid="uid://epd7fsst6rpc" path="res://microjogos/2024S1/projeto-faroeste/cenas/scripts/player.gd" id="1_a16fb"]
[ext_resource type="Texture2D" uid="uid://c3ta5rn85x016" path="res://microjogos/2024S1/projeto-faroeste/recursos/images/tiro.png" id="2_a16fb"]
[ext_resource type="AudioStream" uid="uid://bpkyqer33xn0w" path="res://microjogos/2024S1/projeto-faroeste/recursos/sounds/gunshot-desert-eagle-pistol-fascinatedsound-3-3-00-01.wav" id="4_sf642"]

[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_x2ogc"]
radius = 29.0
height = 234.0

[sub_resource type="AtlasTexture" id="AtlasTexture_iyjgb"]
atlas = ExtResource("1_20frq")
region = Rect2(0, 0, 50, 50)

[sub_resource type="AtlasTexture" id="AtlasTexture_g0tx7"]
atlas = ExtResource("1_20frq")
region = Rect2(0, 50, 50, 50)

[sub_resource type="AtlasTexture" id="AtlasTexture_sf642"]
atlas = ExtResource("2_a16fb")
region = Rect2(0, 0, 50, 50)

[sub_resource type="AtlasTexture" id="AtlasTexture_8nngl"]
atlas = ExtResource("2_a16fb")
region = Rect2(50, 0, 50, 50)

[sub_resource type="AtlasTexture" id="AtlasTexture_altom"]
atlas = ExtResource("2_a16fb")
region = Rect2(0, 100, 50, 50)

[sub_resource type="AtlasTexture" id="AtlasTexture_mwa07"]
atlas = ExtResource("2_a16fb")
region = Rect2(50, 50, 50, 50)

[sub_resource type="AtlasTexture" id="AtlasTexture_pv5hf"]
atlas = ExtResource("2_a16fb")
region = Rect2(0, 50, 50, 50)

[sub_resource type="SpriteFrames" id="SpriteFrames_w06wt"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_iyjgb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g0tx7")
}],
"loop": true,
"name": &"default",
"speed": 2.0
}, {
"frames": [{
"duration": 0.2,
"texture": SubResource("AtlasTexture_sf642")
}, {
"duration": 0.2,
"texture": SubResource("AtlasTexture_8nngl")
}, {
"duration": 0.2,
"texture": SubResource("AtlasTexture_altom")
}, {
"duration": 0.2,
"texture": SubResource("AtlasTexture_mwa07")
}, {
"duration": 3.0,
"texture": SubResource("AtlasTexture_pv5hf")
}, {
"duration": 2.0,
"texture": SubResource("AtlasTexture_mwa07")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_altom")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8nngl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sf642")
}],
"loop": false,
"name": &"shot",
"speed": 5.0
}]

[sub_resource type="Animation" id="Animation_8nngl"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}

[sub_resource type="Animation" id="Animation_sf642"]
resource_name = "death"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:rotation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.3),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, -1.5708]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_altom"]
_data = {
&"RESET": SubResource("Animation_8nngl"),
&"death": SubResource("Animation_sf642")
}

[node name="Player" type="CharacterBody2D"]
script = ExtResource("1_a16fb")

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -120)
shape = SubResource("CapsuleShape2D_x2ogc")

[node name="Sprite" type="AnimatedSprite2D" parent="."]
texture_filter = 1
position = Vector2(0, -120)
scale = Vector2(6, 6)
sprite_frames = SubResource("SpriteFrames_w06wt")
animation = &"shot"
autoplay = "default"
frame = 8
frame_progress = 1.0

[node name="Gunshot" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_sf642")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_altom")
}

[connection signal="animation_finished" from="Sprite" to="." method="_on_sprite_animation_finished"]
12 changes: 12 additions & 0 deletions microjogos/2024S1/projeto-faroeste/cenas/scripts/inimigo.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
extends CharacterBody2D

func atirar():
$Sprite.play("shot")
$Gunshot.play()

func morrer():
$AnimationPlayer.play("death")
$Sprite.pause()

func _on_sprite_animation_finished() -> void:
$Sprite.play("default")
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://b1vgb2wdy2ugc
Loading