-
Notifications
You must be signed in to change notification settings - Fork 4
/
PowerUp.tscn
64 lines (52 loc) · 1.86 KB
/
PowerUp.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[gd_scene load_steps=12 format=2]
[ext_resource path="res://Scripts/PowerUp.gd" type="Script" id=1]
[ext_resource path="res://Sprites/powerup.png" type="Texture" id=2]
[ext_resource path="res://Sprites/powerup2.png" type="Texture" id=3]
[ext_resource path="res://Sprites/powerup3.png" type="Texture" id=4]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ) ],
"loop": true,
"name": "Idle",
"speed": 5.0
} ]
[sub_resource type="Gradient" id=2]
offsets = PoolRealArray( 0, 0.500956, 1 )
colors = PoolColorArray( 1, 1, 1, 1, 0.031002, 0.732275, 0.881836, 0.821227, 0.113281, 1, 0, 0.643137 )
[sub_resource type="GradientTexture" id=3]
gradient = SubResource( 2 )
[sub_resource type="Curve" id=4]
_data = [ Vector2( 0, 0.7728 ), 0.0, 0.0, 0, 0, Vector2( 1, 0.2536 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="CurveTexture" id=5]
curve = SubResource( 4 )
[sub_resource type="ParticlesMaterial" id=6]
flag_disable_z = true
spread = 180.0
gravity = Vector3( 0, 0, 0 )
initial_velocity = 10.0
angular_velocity = 200.0
angular_velocity_random = 1.0
orbit_velocity = 0.0
orbit_velocity_random = 0.0
linear_accel = 10.0
scale = 10.0
scale_curve = SubResource( 5 )
color_ramp = SubResource( 3 )
[sub_resource type="RectangleShape2D" id=7]
extents = Vector2( 160, 144 )
[node name="PowerUp" type="Area2D"]
scale = Vector2( 0.1, 0.1 )
script = ExtResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
animation = "Idle"
[node name="Particles2D" type="Particles2D" parent="AnimatedSprite"]
rotation = -1.57079
scale = Vector2( 5, 5 )
amount = 100
lifetime = 2.0
speed_scale = 2.0
process_material = SubResource( 6 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 7 )
[connection signal="body_entered" from="." to="." method="_on_PowerUp_body_entered"]