phase 2 ai shooting
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user