Animated and hidden whirlpool.

This commit is contained in:
Haze Weathers 2024-11-24 18:54:21 -05:00
parent e9700219db
commit b919ebb658
4 changed files with 38 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Before After
Before After

Binary file not shown.

View file

@ -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

View file

@ -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 )