Disabled switching on the first level. Added switch particles. Fixed enemy sprite
This commit is contained in:
@@ -3,6 +3,7 @@ extends Node2D
|
||||
|
||||
|
||||
@export var player_falling_at_start: bool = true
|
||||
@export var player_can_switch_color: bool = true
|
||||
|
||||
|
||||
@onready var player : Player = $Player
|
||||
@@ -20,6 +21,8 @@ func _ready() -> void:
|
||||
|
||||
SoundManager.play_music_stream(SoundManager.music_stream_gameplay)
|
||||
|
||||
player.can_switch_color = player_can_switch_color
|
||||
|
||||
if player_falling_at_start:
|
||||
player.velocity.y = player.max_fall_speed
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ size = Vector2(80, 12)
|
||||
|
||||
[node name="Level1" unique_id=586585189 instance=ExtResource("1_15okj")]
|
||||
player_falling_at_start = false
|
||||
player_can_switch_color = false
|
||||
|
||||
[node name="Parallax2D" type="Parallax2D" parent="." index="0" unique_id=713207635]
|
||||
scroll_scale = Vector2(0, 0)
|
||||
@@ -236,5 +237,5 @@ position = Vector2(1976, 410)
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="KillingAreas/KillingArea2" index="0" unique_id=335586472]
|
||||
shape = SubResource("RectangleShape2D_2gpk1")
|
||||
|
||||
[node name="LevelEnd" parent="." index="11" unique_id=1018767708]
|
||||
[node name="LevelEnd" parent="." index="12" unique_id=1018767708]
|
||||
position = Vector2(2416, 471)
|
||||
|
||||
Reference in New Issue
Block a user