Skip to content

Commit

Permalink
feat: difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
iiAzui committed Apr 7, 2024
1 parent 35d67d6 commit db12de9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions game/zones/outside/World.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ const DuckWall = preload("res://duck_wall.tscn")
var num: int = 0
var repeat: int = 0
var wall_list: Array[StaticBody2D] = []
@onready var timer: Timer = $Spawn1


func _ready():
match GameState.game_difficulty:
GameState.GameDifficulty.GAME_MAX:
timer.wait_time = 1
GameState.GameDifficulty.GAME_HARD:
timer.wait_time = 2
GameState.GameDifficulty.GAME_NORMAL:
timer.wait_time = 4
GameState.GameDifficulty.GAME_EASY:
timer.wait_time = 8


#have first timer go a certain number of times then start a new timer

Expand Down

0 comments on commit db12de9

Please sign in to comment.