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
35
Pegs/Yellow/Powerups/Spawn/FromBottom.tscn
Normal file
35
Pegs/Yellow/Powerups/Spawn/FromBottom.tscn
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Pegs/Yellow/Powerups/Spawn/FromBottom.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="ParticlesMaterial" id=1]
|
||||
emission_shape = 2
|
||||
emission_box_extents = Vector3( 192, 1, 1 )
|
||||
flag_disable_z = true
|
||||
direction = Vector3( 0, -100, 0 )
|
||||
flatness = 1.0
|
||||
gravity = Vector3( 0, 98, 0 )
|
||||
initial_velocity = 224.0
|
||||
orbit_velocity = 0.0
|
||||
orbit_velocity_random = 0.0
|
||||
color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
|
||||
[node name="FromBottom" type="Node2D"]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 10.0
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[node name="Particles2D" type="Particles2D" parent="."]
|
||||
position = Vector2( 192, 0 )
|
||||
z_index = -20
|
||||
emitting = false
|
||||
amount = 128
|
||||
lifetime = 2.0
|
||||
one_shot = true
|
||||
explosiveness = 0.5
|
||||
process_material = SubResource( 1 )
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="queue_free"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue