more work on final boss
This commit is contained in:
parent
3e3b327f5e
commit
0bae67fd3b
7 changed files with 196 additions and 24 deletions
|
@ -2,6 +2,8 @@ extends Node2D
|
|||
|
||||
signal cutscene_finished
|
||||
|
||||
const DeathParticles = preload("res://objects/enemy/death_particles.tscn")
|
||||
|
||||
export var cutscene_skip: float = 92.0
|
||||
|
||||
onready var animation_player: AnimationPlayer = $AnimationPlayer
|
||||
|
@ -26,6 +28,13 @@ func skip_cutscene() -> void:
|
|||
animation_player.seek(cutscene_skip)
|
||||
Fade.fade_in(Options.transition_speed_secs)
|
||||
|
||||
func kill_cop() -> void:
|
||||
var splatter := DeathParticles.instance()
|
||||
splatter.global_position = $Cop.global_position
|
||||
splatter.emitting = true
|
||||
add_child(splatter)
|
||||
$Cop.queue_free()
|
||||
|
||||
func _notification(what: int) -> void:
|
||||
match what:
|
||||
NOTIFICATION_WM_FOCUS_OUT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue