diff --git a/TODO.md b/TODO.md index 23dbc87..23b127e 100644 --- a/TODO.md +++ b/TODO.md @@ -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 diff --git a/project.godot b/project.godot index fbea672..4b3ce26 100644 --- a/project.godot +++ b/project.godot @@ -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" diff --git a/src/EndMenu.tscn b/src/EndMenu.tscn index 2ac10c3..a3846b9 100644 --- a/src/EndMenu.tscn +++ b/src/EndMenu.tscn @@ -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" diff --git a/src/Game.gd b/src/Game.gd index 4f037d5..02158d4 100644 --- a/src/Game.gd +++ b/src/Game.gd @@ -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 diff --git a/src/Game.tscn b/src/Game.tscn index bf8a13f..96dbf2c 100644 --- a/src/Game.tscn +++ b/src/Game.tscn @@ -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"] diff --git a/src/PieceDetails.tscn b/src/PieceDetails.tscn index e28259e..1026aac 100644 --- a/src/PieceDetails.tscn +++ b/src/PieceDetails.tscn @@ -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"]