Add title

This commit is contained in:
Kienan Stewart 2022-04-03 18:00:36 -04:00
parent f279ac3f54
commit 29529b56f8
6 changed files with 65 additions and 26 deletions

11
TODO.md
View File

@ -1,19 +1,18 @@
2. Visual polish
* a visual / title in the left sidebar
1. Visual polish
* multiple square tiles to add variation
* make the help text indicate (flash, etc.)
* visual indications when damage is done but a unit isn't killed
* visual indication when a unit is stronger (eg. a little skull or star or something)
3. Sound effects
2. Sound effects
* on hit, especially when the unit isn't killed
* if possible, a small bit of background music
4. Gameplay additions:
3. Gameplay additions:
* powerups: change movement type, remove pawn's attack and movement restrictions
* new units
* choose difference board sizes
5. Further visual polish
4. Further visual polish
* animate the piece making the attack, and returning to it's spot
Bugs of note:
* n/a
* [low] the possible move squares don't change if you increase speed via the debug menu. work around: deselect and reselect the piece

View File

@ -32,7 +32,8 @@ _global_script_class_icons={
[application]
config/name="Ld 50"
config/name="Échec x Chess"
config/description="Chess where you always lose. How far can you make it before the inevitable happens?"
run/main_scene="res://src/Game.tscn"
config/icon="res://icon.png"

View File

@ -53,11 +53,13 @@ custom_fonts/font = SubResource( 2 )
text = "Quit"
[node name="Fail Game" type="Button" parent="VBoxContainer"]
visible = false
margin_right = 12.0
margin_bottom = 20.0
text = "Fail Game"
[node name="Win Game" type="Button" parent="VBoxContainer"]
visible = false
margin_right = 12.0
margin_bottom = 20.0
text = "Win Game"

View File

@ -770,7 +770,7 @@ func apply_powerup_to_piece(square):
square = self.board_squares[c]
if self.reinforcement_buff != null:
square['piece'].damage += self.reinforcement_buff
square['piece'].movement += self.reinforcement_buff
square['piece'].speed += self.reinforcement_buff
square['piece'].health += self.reinforcement_buff
if self.reinforcement_buff > 5:
square['piece'].jump = true

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=21 format=2]
[gd_scene load_steps=22 format=2]
[ext_resource path="res://src/Game.gd" type="Script" id=1]
[ext_resource path="res://src/Playfield.tscn" type="PackedScene" id=2]
@ -26,6 +26,10 @@ font_data = ExtResource( 4 )
[sub_resource type="DynamicFont" id=2]
font_data = ExtResource( 4 )
[sub_resource type="DynamicFont" id=3]
size = 64
font_data = ExtResource( 4 )
[node name="Game" type="Container"]
anchor_right = 1.0
anchor_bottom = 1.0
@ -116,7 +120,6 @@ valign = 1
[node name="EndSong" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
autoplay = true
[node name="Yammering" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 9 )
@ -202,6 +205,35 @@ margin_bottom = 91.0
[node name="PanelLeft" type="Panel" parent="."]
margin_right = 240.0
margin_bottom = 1024.0
[node name="Title" type="Label" parent="PanelLeft"]
margin_left = 50.0
margin_right = 40.0
margin_bottom = 14.0
custom_fonts/font = SubResource( 3 )
text = "É
C
H
E
C
C
H
E
S
S"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Subtitle" type="Label" parent="PanelLeft"]
margin_right = 40.0
margin_bottom = 14.0
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="finished" from="EndSong" to="." method="_on_EndSong_finished"]
[connection signal="finished" from="Yammering" to="." method="_on_Yammering_finished"]
[connection signal="finished" from="Dust" to="." method="_on_Dust_finished"]

View File

@ -59,15 +59,16 @@ __meta__ = {
}
[node name="UpMovement" type="Button" parent="Vbox"]
visible = false
margin_top = 151.0
margin_right = 190.0
margin_bottom = 171.0
text = "Increase Movement"
[node name="Health" type="HBoxContainer" parent="Vbox"]
margin_top = 175.0
margin_top = 151.0
margin_right = 190.0
margin_bottom = 239.0
margin_bottom = 215.0
[node name="TextureRect" type="TextureRect" parent="Vbox/Health"]
material = ExtResource( 3 )
@ -84,15 +85,16 @@ custom_fonts/font = ExtResource( 1 )
text = "1 "
[node name="UpHealth" type="Button" parent="Vbox"]
margin_top = 243.0
visible = false
margin_top = 219.0
margin_right = 190.0
margin_bottom = 263.0
margin_bottom = 239.0
text = "Increase health"
[node name="Damage" type="HBoxContainer" parent="Vbox"]
margin_top = 267.0
margin_top = 219.0
margin_right = 190.0
margin_bottom = 331.0
margin_bottom = 283.0
[node name="TextureRect" type="TextureRect" parent="Vbox/Damage"]
material = ExtResource( 3 )
@ -109,15 +111,16 @@ custom_fonts/font = ExtResource( 1 )
text = "1"
[node name="UpDamage" type="Button" parent="Vbox"]
margin_top = 335.0
visible = false
margin_top = 287.0
margin_right = 190.0
margin_bottom = 355.0
margin_bottom = 307.0
text = "Increase damage"
[node name="Kills" type="HBoxContainer" parent="Vbox"]
margin_top = 359.0
margin_top = 287.0
margin_right = 190.0
margin_bottom = 423.0
margin_bottom = 351.0
[node name="TextureRect" type="TextureRect" parent="Vbox/Kills"]
material = ExtResource( 3 )
@ -134,22 +137,24 @@ custom_fonts/font = ExtResource( 1 )
text = "1"
[node name="Jump" type="Label" parent="Vbox"]
margin_top = 427.0
margin_top = 355.0
margin_right = 190.0
margin_bottom = 451.0
margin_bottom = 379.0
custom_fonts/font = SubResource( 1 )
text = "Cannot jump"
[node name="CheckButton" type="CheckButton" parent="Vbox"]
margin_top = 455.0
visible = false
margin_top = 383.0
margin_right = 190.0
margin_bottom = 495.0
margin_bottom = 423.0
text = "Jump"
[node name="Powerup" type="Button" parent="Vbox"]
margin_top = 499.0
visible = false
margin_top = 383.0
margin_right = 190.0
margin_bottom = 519.0
margin_bottom = 403.0
text = "Spawn powerup"
[connection signal="pressed" from="Vbox/UpMovement" to="." method="_on_UpMovement_pressed"]
[connection signal="pressed" from="Vbox/UpHealth" to="." method="_on_UpHealth_pressed"]