Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions levels/level_01.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ curve = SubResource("Curve2D_q82x3")
[node name="PathFollow2D" type="PathFollow2D" parent="Player/Path2D"]
unique_name_in_owner = true
position = Vector2(-475.155, -570.064)
rotation = -0.404754
rotation = -0.4047543

[node name="Camera2D" type="Camera2D" parent="Player"]
position = Vector2(-6, -6)
Expand Down Expand Up @@ -81,7 +81,6 @@ position = Vector2(563, 339)
shape = SubResource("CircleShape2D_dgy74")

[node name="Time" type="Timer" parent="."]
wait_time = 0.7
autostart = true

[node name="SoundIcon" parent="." instance=ExtResource("5_llcge")]
Expand Down
15 changes: 3 additions & 12 deletions scripts/game/level.gd
Original file line number Diff line number Diff line change
Expand Up @@ -372,18 +372,9 @@ func _on_time_timeout():
reset_quantum()

spawn_asteroid() #10
if score > 5:
spawn_asteroid() #50
if score > 10:
spawn_asteroid() #100
if score > 100:
spawn_asteroid() #200
if score > 200:
spawn_asteroid() #400
if score > 400:
spawn_asteroid() #600
if score > 600:
spawn_asteroid() #800
for level_data in Singleton.player.PLAYER_LEVELS:
if score >= int(level_data["min_score"]):
spawn_asteroid()


#===============================================
Expand Down
22 changes: 15 additions & 7 deletions scripts/player/player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,21 @@ const MOVED_SO_FAR : float = 0.5
# Obs: o nível 0 liga a turret "E" por padrão (também forçada no _ready).
const PLAYER_LEVELS := [
{"min_score": 0, "unlock": ["E"]},
{"min_score": 10, "unlock": ["W"]},
{"min_score": 50, "unlock": ["S"]},
{"min_score": 100, "unlock": ["N"]},
{"min_score": 200, "unlock": ["NW"]},
{"min_score": 400, "unlock": ["SE"]},
{"min_score": 600, "unlock": ["NE"]},
{"min_score": 800, "unlock": ["SW"]},
{"min_score": 5, "unlock": ["W"]},
{"min_score": 15, "unlock": ["S"]},
{"min_score": 35, "unlock": ["N"]},
{"min_score": 65, "unlock": ["NW"]},
{"min_score": 100, "unlock": ["SE"]},
{"min_score": 150, "unlock": ["NE"]},
{"min_score": 200, "unlock": ["SW"]},
{"min_score": 250, "unlock": ["09"]},
{"min_score": 300, "unlock": ["10"]},
{"min_score": 450, "unlock": ["11"]},
{"min_score": 600, "unlock": ["12"]},
{"min_score": 750, "unlock": ["13"]},
{"min_score": 900, "unlock": ["14"]},
{"min_score": 1050, "unlock": ["15"]},
{"min_score": 1200, "unlock": ["16"]},
]

# Estado de progressão
Expand Down