phase 2 ai shooting

This commit is contained in:
Nikolai Fesenko
2025-08-29 20:37:25 +02:00
parent fbd75b3397
commit c0cac7919a
8 changed files with 62 additions and 33 deletions

View File

@@ -5,6 +5,9 @@ signal bullet_selected(object)
signal state_changed
enum GameState { PLAYER1_GUN_LOAD, PLAYER2_GUN_LOAD, GUN_ANIMATION, PLAYER1_UNLOAD,PLAYER2_UNLOAD}
enum PlayerChoice {SHOOT_SELF, SHOOT_OPPONENT}
var player_phase2_choice
var current_state = GameState.PLAYER1_GUN_LOAD
var bullets: Array
@@ -75,7 +78,7 @@ func end_turn():
if check_unloaded_bullets():
if is_player1_loaded and is_player2_loaded:
print("Phase 2")
get_phase2_player_start()
else:
set_state(GameState.PLAYER2_UNLOAD)
func get_enemy_revolver() -> Node3D: