Merge branch 'main' of github.com:MarcEricMartel/Game-Jam-A23

This commit is contained in:
MarcEricMartel 2023-10-11 10:44:14 -04:00
commit c8fdf629a3
6 changed files with 126 additions and 12 deletions

View File

@ -3,7 +3,7 @@
[ext_resource type="Script" path="res://Scripts/level.gd" id="1_0nmok"] [ext_resource type="Script" path="res://Scripts/level.gd" id="1_0nmok"]
[ext_resource type="PackedScene" uid="uid://b8s2seg2lf7wo" path="res://Scenes/Tilemaps/tileset_1.tscn" id="1_4n82n"] [ext_resource type="PackedScene" uid="uid://b8s2seg2lf7wo" path="res://Scenes/Tilemaps/tileset_1.tscn" id="1_4n82n"]
[ext_resource type="PackedScene" uid="uid://cl7w6ndvons1a" path="res://Scenes/Props/candle_1.tscn" id="2_5hdq4"] [ext_resource type="PackedScene" uid="uid://cl7w6ndvons1a" path="res://Scenes/Props/candle_1.tscn" id="2_5hdq4"]
[ext_resource type="PackedScene" uid="uid://cf7al5uln33rn" path="res://Scenes/Props/candle_2.tscn" id="2_o33c4"] [ext_resource type="PackedScene" uid="uid://by2xmwcng01uy" path="res://Scenes/Props/candle_2.tscn" id="2_o33c4"]
[ext_resource type="PackedScene" uid="uid://b5lnjonlf4i1b" path="res://Scenes/enemy.tscn" id="4_g0oey"] [ext_resource type="PackedScene" uid="uid://b5lnjonlf4i1b" path="res://Scenes/enemy.tscn" id="4_g0oey"]
[ext_resource type="PackedScene" uid="uid://0onqgygm832d" path="res://Scenes/Player/player.tscn" id="5_ik47y"] [ext_resource type="PackedScene" uid="uid://0onqgygm832d" path="res://Scenes/Player/player.tscn" id="5_ik47y"]
[ext_resource type="AudioStream" uid="uid://c3dy35dv368ft" path="res://Assets/Music/SisNeufPiDoozHuit.mp3" id="7_but47"] [ext_resource type="AudioStream" uid="uid://c3dy35dv368ft" path="res://Assets/Music/SisNeufPiDoozHuit.mp3" id="7_but47"]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=87 format=3 uid="uid://drfn4qb06jfla"] [gd_scene load_steps=88 format=3 uid="uid://v0vtf1d1iusm"]
[ext_resource type="Script" path="res://Scripts/ending.gd" id="1_1hyxj"] [ext_resource type="Script" path="res://Scripts/ending.gd" id="1_1hyxj"]
[ext_resource type="PackedScene" uid="uid://b8s2seg2lf7wo" path="res://Scenes/Tilemaps/tileset_1.tscn" id="2_yeqls"] [ext_resource type="PackedScene" uid="uid://b8s2seg2lf7wo" path="res://Scenes/Tilemaps/tileset_1.tscn" id="2_yeqls"]
@ -11,6 +11,7 @@
[ext_resource type="Texture2D" uid="uid://ckeayob6k71b1" path="res://Assets/Witch/noBKG_WitchIdle_strip.png" id="7_wm35e"] [ext_resource type="Texture2D" uid="uid://ckeayob6k71b1" path="res://Assets/Witch/noBKG_WitchIdle_strip.png" id="7_wm35e"]
[ext_resource type="Texture2D" uid="uid://dyoeqid128gvx" path="res://Assets/Golem/noBKG_GolemIdle_strip.png" id="8_gwm2y"] [ext_resource type="Texture2D" uid="uid://dyoeqid128gvx" path="res://Assets/Golem/noBKG_GolemIdle_strip.png" id="8_gwm2y"]
[ext_resource type="Texture2D" uid="uid://b3a5g03ukunfa" path="res://Assets/Knight/noBKG_KnightIdle_strip.png" id="10_hwaw0"] [ext_resource type="Texture2D" uid="uid://b3a5g03ukunfa" path="res://Assets/Knight/noBKG_KnightIdle_strip.png" id="10_hwaw0"]
[ext_resource type="Texture2D" uid="uid://iy5flm8rgj60" path="res://Assets/Inverted hourglass1.png" id="12_iov5c"]
[sub_resource type="AtlasTexture" id="AtlasTexture_6btik"] [sub_resource type="AtlasTexture" id="AtlasTexture_6btik"]
atlas = ExtResource("5_pr1ps") atlas = ExtResource("5_pr1ps")
@ -659,7 +660,7 @@ size_flags_horizontal = 3
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="TotalArmyComp/Separation/ArmyTotals/Bats/Control"] [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="TotalArmyComp/Separation/ArmyTotals/Bats/Control"]
position = Vector2(24, 18) position = Vector2(24, 18)
sprite_frames = SubResource("SpriteFrames_kjfbi") sprite_frames = SubResource("SpriteFrames_kjfbi")
frame_progress = 0.806293 frame_progress = 0.761512
[node name="2Points" type="Label" parent="TotalArmyComp/Separation/ArmyTotals/Bats"] [node name="2Points" type="Label" parent="TotalArmyComp/Separation/ArmyTotals/Bats"]
layout_mode = 2 layout_mode = 2
@ -687,7 +688,7 @@ size_flags_horizontal = 3
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="TotalArmyComp/Separation/ArmyTotals/Wolves/Control"] [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="TotalArmyComp/Separation/ArmyTotals/Wolves/Control"]
position = Vector2(24, 16) position = Vector2(24, 16)
sprite_frames = SubResource("SpriteFrames_h2asb") sprite_frames = SubResource("SpriteFrames_h2asb")
frame_progress = 0.808144 frame_progress = 0.763364
[node name="2Points" type="Label" parent="TotalArmyComp/Separation/ArmyTotals/Wolves"] [node name="2Points" type="Label" parent="TotalArmyComp/Separation/ArmyTotals/Wolves"]
layout_mode = 2 layout_mode = 2
@ -715,7 +716,7 @@ size_flags_horizontal = 3
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="TotalArmyComp/Separation/ArmyTotals/Necromancers/Control"] [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="TotalArmyComp/Separation/ArmyTotals/Necromancers/Control"]
position = Vector2(24, 22) position = Vector2(24, 22)
sprite_frames = SubResource("SpriteFrames_0hwvy") sprite_frames = SubResource("SpriteFrames_0hwvy")
frame_progress = 0.223527 frame_progress = 0.178747
[node name="2Points" type="Label" parent="TotalArmyComp/Separation/ArmyTotals/Necromancers"] [node name="2Points" type="Label" parent="TotalArmyComp/Separation/ArmyTotals/Necromancers"]
layout_mode = 2 layout_mode = 2
@ -743,7 +744,7 @@ size_flags_horizontal = 3
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="TotalArmyComp/Separation/ArmyTotals/Pit Fiends/Control"] [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="TotalArmyComp/Separation/ArmyTotals/Pit Fiends/Control"]
position = Vector2(24, 22) position = Vector2(24, 22)
sprite_frames = SubResource("SpriteFrames_3y7oi") sprite_frames = SubResource("SpriteFrames_3y7oi")
frame_progress = 0.437328 frame_progress = 0.392548
[node name="2Points" type="Label" parent="TotalArmyComp/Separation/ArmyTotals/Pit Fiends"] [node name="2Points" type="Label" parent="TotalArmyComp/Separation/ArmyTotals/Pit Fiends"]
layout_mode = 2 layout_mode = 2
@ -823,7 +824,7 @@ flip_h = true
position = Vector2(784, 288) position = Vector2(784, 288)
scale = Vector2(7.765, 7.765) scale = Vector2(7.765, 7.765)
sprite_frames = SubResource("SpriteFrames_5yana") sprite_frames = SubResource("SpriteFrames_5yana")
frame_progress = 0.910776 frame_progress = 0.865996
flip_h = true flip_h = true
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
@ -831,4 +832,34 @@ stream = ExtResource("3_q0fqf")
pitch_scale = 0.4 pitch_scale = 0.4
autoplay = true autoplay = true
[node name="Time" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_left = 320.0
offset_top = 96.0
offset_right = 320.0
offset_bottom = 96.0
size_flags_vertical = 3
[node name="HBoxContainer" type="HBoxContainer" parent="Time"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Hourglass" type="TextureRect" parent="Time/HBoxContainer"]
layout_mode = 2
texture = ExtResource("12_iov5c")
expand_mode = 2
stretch_mode = 5
[node name="TimeLabel" type="Label" parent="Time/HBoxContainer"]
layout_mode = 2
theme = ExtResource("4_br77t")
text = "240 Seconds Remained"
vertical_alignment = 2
[connection signal="pressed" from="Quit" to="." method="_on_quit_pressed"] [connection signal="pressed" from="Quit" to="." method="_on_quit_pressed"]

View File

@ -1,10 +1,22 @@
[gd_scene load_steps=6 format=3 uid="uid://bkt0gdgv7bsx2"] [gd_scene load_steps=7 format=3 uid="uid://bkt0gdgv7bsx2"]
[ext_resource type="Script" path="res://Scripts/start_menu.gd" id="1_dgae7"] [ext_resource type="Script" path="res://Scripts/start_menu.gd" id="1_dgae7"]
[ext_resource type="PackedScene" uid="uid://b8s2seg2lf7wo" path="res://Scenes/Tilemaps/tileset_1.tscn" id="2_0sfou"] [ext_resource type="PackedScene" uid="uid://b8s2seg2lf7wo" path="res://Scenes/Tilemaps/tileset_1.tscn" id="2_0sfou"]
[ext_resource type="Theme" uid="uid://dr1h7to56a2pv" path="res://Themes/base_theme.tres" id="3_puxi3"] [ext_resource type="Theme" uid="uid://dr1h7to56a2pv" path="res://Themes/base_theme.tres" id="3_puxi3"]
[ext_resource type="Texture2D" uid="uid://cxk21atb8fblp" path="res://Assets/Witch/noBKG_WitchThrow_strip.png" id="4_qq6xh"] [ext_resource type="Texture2D" uid="uid://cxk21atb8fblp" path="res://Assets/Witch/noBKG_WitchThrow_strip.png" id="4_qq6xh"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1owyk"]
bg_color = Color(0.6, 0.6, 0.6, 0)
border_width_left = 50
border_width_top = 50
border_width_right = 50
border_width_bottom = 50
border_color = Color(0.254902, 0, 0, 1)
border_blend = true
shadow_color = Color(0.223529, 0.0117647, 0.0745098, 0.6)
shadow_size = 20
anti_aliasing_size = 2.606
[sub_resource type="AtlasTexture" id="AtlasTexture_je3v2"] [sub_resource type="AtlasTexture" id="AtlasTexture_je3v2"]
atlas = ExtResource("4_qq6xh") atlas = ExtResource("4_qq6xh")
region = Rect2(1024, 0, 64, 64) region = Rect2(1024, 0, 64, 64)
@ -20,6 +32,19 @@ script = ExtResource("1_dgae7")
[node name="TileSet1" parent="." instance=ExtResource("2_0sfou")] [node name="TileSet1" parent="." instance=ExtResource("2_0sfou")]
[node name="border" type="PanelContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -24.0
offset_top = -16.0
offset_right = 16.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_1owyk")
[node name="ColorRect" type="ColorRect" parent="."] [node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1 layout_mode = 1
anchors_preset = 15 anchors_preset = 15
@ -39,6 +64,7 @@ offset_top = -92.0
offset_right = 442.0 offset_right = 442.0
offset_bottom = -45.0 offset_bottom = -45.0
grow_vertical = 0 grow_vertical = 0
theme = ExtResource("3_puxi3")
text = "Start" text = "Start"
[node name="QuitButton" type="Button" parent="."] [node name="QuitButton" type="Button" parent="."]
@ -54,6 +80,7 @@ offset_right = -305.0
offset_bottom = -45.0 offset_bottom = -45.0
grow_horizontal = 0 grow_horizontal = 0
grow_vertical = 0 grow_vertical = 0
theme = ExtResource("3_puxi3")
text = "Quit text = "Quit
" "

View File

@ -7,13 +7,17 @@ var message: String = ""
var is_win: bool = true var is_win: bool = true
var army: Dictionary = {} var army: Dictionary = {}
var totalBlud: float = 0 var totalBlud: float = 0
var remainingTime: String = "0"
func _ready(): func _ready():
if is_win: if is_win:
$WinningEnemy.hide() $WinningEnemy.hide()
$DeadEnemy.show() $DeadEnemy.show()
$DeadEnemy.play("default") $DeadEnemy.play("default")
$Time.show()
$Time/HBoxContainer/TimeLabel.text = remainingTime + " Seconds Remained"
if !is_win: if !is_win:
$Time.hide()
$WinningEnemy.show() $WinningEnemy.show()
$DeadEnemy.hide() $DeadEnemy.hide()
$WinningEnemy.play("default") $WinningEnemy.play("default")
@ -29,7 +33,7 @@ func _ready():
$TotalArmyComp/Separation/ArmyTotals/Wolves/AmtWolves.text = "0" if !army.has("Wolf") else str(army["Wolf"]) $TotalArmyComp/Separation/ArmyTotals/Wolves/AmtWolves.text = "0" if !army.has("Wolf") else str(army["Wolf"])
$TotalArmyComp/Separation/ArmyTotals/Necromancers/AmtNecromancer.text = "0" if !army.has("Necromancer") else str(army["Necromancer"]) $TotalArmyComp/Separation/ArmyTotals/Necromancers/AmtNecromancer.text = "0" if !army.has("Necromancer") else str(army["Necromancer"])
$"TotalArmyComp/Separation/ArmyTotals/Pit Fiends/AmtPitFiend".text = "0" if !army.has("Pit Fiend") else str(army["Pit Fiend"]) $"TotalArmyComp/Separation/ArmyTotals/Pit Fiends/AmtPitFiend".text = "0" if !army.has("Pit Fiend") else str(army["Pit Fiend"])
$TotalArmyComp/Separation/TotalBludGen/AmtBlud.text = str(totalBlud) $TotalArmyComp/Separation/TotalBludGen/AmtBlud.text = str(floor(totalBlud))
func _on_quit_pressed(): func _on_quit_pressed():
get_tree().quit() get_tree().quit()

View File

@ -21,12 +21,13 @@ func _process(delta):
func win_screen(): func win_screen():
var enemy = $Enemy var enemy = $Enemy
var end = load("res://Scenes/ending.tscn").instantiate() var end = load("res://Scenes/ending.tscn").instantiate()
end.remainingTime = str(length - time - 1)
end.totalBlud = player.totalBludGenerated end.totalBlud = player.totalBludGenerated
end.army = player.allSpawnedMonsters end.army = player.allSpawnedMonsters
end.killcount = enemy.killcount end.killcount = enemy.killcount
end.level = enemy.level end.level = enemy.level
end.exp = enemy.experience end.exp = enemy.experience
end.message = "Fabio le chevalier est mort, bravo." end.message = "The holy knight Fabio is defeated, Evil has won and your magic staff is safe."
self.queue_free() self.queue_free()
get_tree().root.add_child(end) get_tree().root.add_child(end)
@ -39,7 +40,7 @@ func lose_screen():
end.level = enemy.level end.level = enemy.level
end.exp = enemy.experience end.exp = enemy.experience
end.is_win = false end.is_win = false
end.message = "Fabio le chevalier et futur roi t'a torché... royalement. (HA!)" end.message = "The holy knight Fabio destroyed you army of evil and left with your magic staff..."
self.queue_free() self.queue_free()
get_tree().root.add_child(end) get_tree().root.add_child(end)

View File

@ -1,7 +1,53 @@
[gd_resource type="Theme" load_steps=4 format=3 uid="uid://dr1h7to56a2pv"] [gd_resource type="Theme" load_steps=9 format=3 uid="uid://dr1h7to56a2pv"]
[ext_resource type="FontFile" uid="uid://01mccw37teq2" path="res://Assets/Fonts/alagard.ttf" id="1_i16b1"] [ext_resource type="FontFile" uid="uid://01mccw37teq2" path="res://Assets/Fonts/alagard.ttf" id="1_i16b1"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_atud8"]
bg_color = Color(0.192157, 0.0941176, 0.0784314, 1)
border_width_left = 1
border_width_top = 1
border_color = Color(0, 0, 0, 1)
border_blend = true
corner_radius_top_left = 10
corner_detail = 1
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5vpqh"]
bg_color = Color(0.54902, 0.321569, 0.286275, 1)
border_width_left = 1
border_width_top = 1
border_color = Color(0.286275, 0.0784314, 0.172549, 1)
corner_radius_top_left = 10
corner_detail = 1
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_sphu5"]
bg_color = Color(0.584314, 0.345098, 0.309804, 1)
border_width_left = 1
border_width_top = 1
border_color = Color(0.137255, 0.137255, 0.137255, 1)
corner_radius_top_left = 10
corner_detail = 1
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ynkwh"]
bg_color = Color(0.466667, 0.266667, 0.235294, 1)
border_width_left = 1
border_width_top = 1
border_color = Color(0.137255, 0.137255, 0.137255, 1)
corner_radius_top_left = 10
corner_detail = 1
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_vl5pg"]
bg_color = Color(0.294118, 0.156863, 0.137255, 1)
border_width_left = 1
border_width_top = 1
border_color = Color(0.494118, 0.0235294, 0.145098, 1)
corner_radius_top_left = 5
corner_detail = 1
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hf10d"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hf10d"]
bg_color = Color(0.403922, 0.0117647, 0.0627451, 0.188235) bg_color = Color(0.403922, 0.0117647, 0.0627451, 0.188235)
@ -10,6 +56,11 @@ bg_color = Color(0.803922, 0.152941, 0.188235, 1)
[resource] [resource]
Button/fonts/font = ExtResource("1_i16b1") Button/fonts/font = ExtResource("1_i16b1")
Button/styles/disabled = SubResource("StyleBoxFlat_atud8")
Button/styles/focus = SubResource("StyleBoxFlat_5vpqh")
Button/styles/hover = SubResource("StyleBoxFlat_sphu5")
Button/styles/normal = SubResource("StyleBoxFlat_ynkwh")
Button/styles/pressed = SubResource("StyleBoxFlat_vl5pg")
Label/fonts/font = ExtResource("1_i16b1") Label/fonts/font = ExtResource("1_i16b1")
PanelContainer/styles/panel = null PanelContainer/styles/panel = null
ProgressBar/styles/background = SubResource("StyleBoxFlat_hf10d") ProgressBar/styles/background = SubResource("StyleBoxFlat_hf10d")