Skip to content

Commit

Permalink
🐛 Fix finish pause and cursor shots after elimination
Browse files Browse the repository at this point in the history
  • Loading branch information
enzoritto committed Sep 29, 2024
1 parent bee4d65 commit 9ed7809
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
Un jeu de zombies multijoueur local basé sur le mode de jeu de course « Hidden in Plain Sight » 🕹️

_Créé lors du GeekCamp de septembre 2024 🏕️_

## Remerciements
* Charles - playtesting 👾
* Paul Doazan - Idée/Game Director 💡
* All of Okiwi GeekCamp septembre 2024 participants ⛺
1 change: 1 addition & 0 deletions restart_button.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ func _ready() -> void:


func _on_button_pressed():
get_tree().paused = false
get_tree().reload_current_scene()
1 change: 1 addition & 0 deletions scenes/levels/level.gd
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func spawn_characters() -> void:
func _on_character_finished(body) -> void:
($/root/Main/GUI as Control).visible = true
($/root/Main/GUI/Label as Label).text = body.display_name + " wins!"
get_tree().paused = true
$/root/Main/Music.playing = false
$/root/Main/Victory.play()

2 changes: 2 additions & 0 deletions scenes/main.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
[node name="Level" parent="." instance=ExtResource("1_js5b6")]

[node name="GUI" type="Control" parent="."]
process_mode = 3
z_index = 300
layout_mode = 3
anchors_preset = 15
Expand Down Expand Up @@ -57,4 +58,5 @@ stream = ExtResource("3_3vxcx")
autoplay = true

[node name="Victory" type="AudioStreamPlayer2D" parent="."]
process_mode = 3
stream = ExtResource("4_g1m4h")
1 change: 1 addition & 0 deletions scenes/players/crosshair.gd
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func _unhandled_input(event: InputEvent) -> void:

var target_crosshair = get_node("../Crosshair" + str(target.number))
target_crosshair.visible = false
target_crosshair.has_shot = true



Expand Down

0 comments on commit 9ed7809

Please sign in to comment.