mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
added cool animation to springs
This commit is contained in:
parent
7b67b3aef6
commit
a88727b2d8
13 changed files with 267 additions and 47 deletions
98
Pegs/Yellow/Powerups/Spawn/FromBottomSprite.tscn
Normal file
98
Pegs/Yellow/Powerups/Spawn/FromBottomSprite.tscn
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
[gd_scene load_steps=18 format=2]
|
||||
|
||||
[ext_resource path="res://Pegs/Yellow/Powerups/Spawn/fromBottom.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Pegs/Yellow/Powerups/Spawn/FromBottomSprite.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="AtlasTexture" id=1]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 0, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=2]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 32, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=3]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 64, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=4]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 96, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=5]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 128, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=6]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 160, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=7]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 192, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=9]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 192, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=10]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 160, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=11]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 128, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=12]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 96, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=13]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 64, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=14]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 32, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=15]
|
||||
flags = 2
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 0, 0, 32, 64 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=8]
|
||||
animations = [ {
|
||||
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ) ],
|
||||
"loop": false,
|
||||
"name": "spawn",
|
||||
"speed": 15.0
|
||||
}, {
|
||||
"frames": [ SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ) ],
|
||||
"loop": false,
|
||||
"name": "despawn",
|
||||
"speed": 15.0
|
||||
} ]
|
||||
|
||||
[node name="FromBottomSprite" type="AnimatedSprite"]
|
||||
position = Vector2( 0, -32 )
|
||||
z_index = -200
|
||||
z_as_relative = false
|
||||
frames = SubResource( 8 )
|
||||
animation = "despawn"
|
||||
centered = false
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[connection signal="animation_finished" from="." to="." method="play_backwards"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue