Visual indication when help text changes

This commit is contained in:
Kienan Stewart 2022-04-03 18:32:44 -04:00
parent 3bb8a97f6d
commit 752f2180e9
4 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
build/ build/
.import/ .import/
assets/export/*.import assets/export/*.import
*.import

View File

@ -1,8 +1,7 @@
1. Visual polish 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 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) * visual indication when a unit is stronger (eg. a little skull or star or something)
* multiple square tiles to add variation
2. Sound effects 2. Sound effects
* on hit, especially when the unit isn't killed * on hit, especially when the unit isn't killed
* if possible, a small bit of background music * if possible, a small bit of background music

View File

@ -494,9 +494,13 @@ func _process(delta):
if self.flash_help != null: if self.flash_help != null:
if self.flash_help > 0: if self.flash_help > 0:
self.flash_help -= delta self.flash_help -= delta
get_node("BottomBar/Help").set_modulate(
lerp(Color(1, 1, 1, 1), Color(1, .63, .12, 1), self.flash_help)
)
else: else:
self._reset_help() self._reset_help()
self.flash_help = null self.flash_help = null
get_node("BottomBar/Help").set_modulate(Color(1, 1, 1, 1))
var opponent_pieces = get_tree().get_nodes_in_group("opponent") var opponent_pieces = get_tree().get_nodes_in_group("opponent")
if opponent_pieces.empty() or get_tree().get_nodes_in_group("player").empty() and self.current_state != 99: if opponent_pieces.empty() or get_tree().get_nodes_in_group("player").empty() and self.current_state != 99:
# The game is over # The game is over

View File

@ -21,6 +21,7 @@
[sub_resource type="DynamicFont" id=1] [sub_resource type="DynamicFont" id=1]
size = 24 size = 24
outline_color = Color( 1, 0.635294, 0.121569, 1 )
font_data = ExtResource( 4 ) font_data = ExtResource( 4 )
[sub_resource type="DynamicFont" id=2] [sub_resource type="DynamicFont" id=2]