Visual indication when help text changes
This commit is contained in:
parent
3bb8a97f6d
commit
752f2180e9
|
@ -1,3 +1,4 @@
|
|||
build/
|
||||
.import/
|
||||
assets/export/*.import
|
||||
*.import
|
||||
|
|
3
TODO.md
3
TODO.md
|
@ -1,8 +1,7 @@
|
|||
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)
|
||||
* multiple square tiles to add variation
|
||||
2. Sound effects
|
||||
* on hit, especially when the unit isn't killed
|
||||
* if possible, a small bit of background music
|
||||
|
|
|
@ -494,9 +494,13 @@ func _process(delta):
|
|||
if self.flash_help != null:
|
||||
if self.flash_help > 0:
|
||||
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:
|
||||
self._reset_help()
|
||||
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")
|
||||
if opponent_pieces.empty() or get_tree().get_nodes_in_group("player").empty() and self.current_state != 99:
|
||||
# The game is over
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 24
|
||||
outline_color = Color( 1, 0.635294, 0.121569, 1 )
|
||||
font_data = ExtResource( 4 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=2]
|
||||
|
|
Loading…
Reference in New Issue