diff --git a/graphics/level_select/whirlpool.png b/graphics/level_select/whirlpool.png index 272806f..8f5db4b 100644 Binary files a/graphics/level_select/whirlpool.png and b/graphics/level_select/whirlpool.png differ diff --git a/graphics/level_select/whirlpool.xcf b/graphics/level_select/whirlpool.xcf new file mode 100644 index 0000000..1c875ba Binary files /dev/null and b/graphics/level_select/whirlpool.xcf differ diff --git a/menus/level_select_scholar.gd b/menus/level_select_scholar.gd index 40885a3..6c1c13f 100644 --- a/menus/level_select_scholar.gd +++ b/menus/level_select_scholar.gd @@ -44,6 +44,15 @@ func _ready() -> void: if Game.current_palette == "super_player": $"%Sparkles".visible = true $ShardCount.text = "%02d" % Save.current_file.get_total_shards() + + var save := Save.current_file + + if save.levels["boss3"].completed: + $"%Whirlpool".visible = true + $"%Whirlpool".play("default") + else: + $"%Whirlpool".visible = false + Fade.fade_in(Options.transition_speed_secs) # set initial offset selected_level = Game.current_level diff --git a/menus/level_select_scholar.tscn b/menus/level_select_scholar.tscn index f5907f2..8af7178 100644 --- a/menus/level_select_scholar.tscn +++ b/menus/level_select_scholar.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=48 format=2] +[gd_scene load_steps=53 format=2] [ext_resource path="res://menus/level_select_scholar.gd" type="Script" id=1] [ext_resource path="res://graphics/level_select/world_map.png" type="Texture" id=2] @@ -22,6 +22,30 @@ [ext_resource path="res://scripts/randomize_particle_start.gd" type="Script" id=20] [ext_resource path="res://graphics/particles/shine.png" type="Texture" id=21] +[sub_resource type="AtlasTexture" id=33] +atlas = ExtResource( 15 ) +region = Rect2( 0, 0, 48, 48 ) + +[sub_resource type="AtlasTexture" id=34] +atlas = ExtResource( 15 ) +region = Rect2( 48, 0, 48, 48 ) + +[sub_resource type="AtlasTexture" id=35] +atlas = ExtResource( 15 ) +region = Rect2( 96, 0, 48, 48 ) + +[sub_resource type="AtlasTexture" id=36] +atlas = ExtResource( 15 ) +region = Rect2( 144, 0, 48, 48 ) + +[sub_resource type="SpriteFrames" id=32] +animations = [ { +"frames": [ SubResource( 33 ), SubResource( 34 ), SubResource( 35 ), SubResource( 36 ) ], +"loop": true, +"name": "default", +"speed": 8.0 +} ] + [sub_resource type="CanvasItemMaterial" id=9] particles_animation = true particles_anim_h_frames = 9 @@ -939,10 +963,10 @@ margin_right = 256.0 margin_bottom = 192.0 texture = ExtResource( 2 ) -[node name="WhirlPool" type="TextureRect" parent="."] -margin_right = 256.0 -margin_bottom = 192.0 -texture = ExtResource( 15 ) +[node name="Whirlpool" type="AnimatedSprite" parent="."] +unique_name_in_owner = true +position = Vector2( 83, 65 ) +frames = SubResource( 32 ) [node name="WaveParticles" type="CPUParticles2D" parent="."] material = SubResource( 9 )