-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jumper.tscn
59 lines (50 loc) · 1.69 KB
/
Jumper.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
[gd_scene load_steps=5 format=2]
[ext_resource path="res://gfx/pixel_texture-export.png" type="Texture" id=1]
[ext_resource path="res://Jumper.gd" type="Script" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 3, 3 )
[sub_resource type="Gradient" id=2]
offsets = PoolRealArray( 0, 4.62874e-07, 1 )
colors = PoolColorArray( 1, 0.945098, 0.909804, 1, 0.760784, 0.764706, 0.780392, 1, 0.372549, 0.341176, 0.309804, 1 )
[node name="Node2D" type="Node2D"]
script = ExtResource( 2 )
[node name="Area2D" type="Area2D" parent="."]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource( 1 )
[node name="Left" type="CPUParticles2D" parent="Area2D/CollisionShape2D"]
position = Vector2( -2, 0 )
amount = 10
lifetime = 0.5
texture = ExtResource( 1 )
direction = Vector2( 0, -1 )
spread = 0.0
gravity = Vector2( 0, 0 )
initial_velocity = 30.0
initial_velocity_random = 1.0
color_ramp = SubResource( 2 )
anim_speed_random = 1.0
[node name="Mid" type="CPUParticles2D" parent="Area2D/CollisionShape2D"]
amount = 10
lifetime = 0.5
texture = ExtResource( 1 )
direction = Vector2( 0, -1 )
spread = 0.0
gravity = Vector2( 0, 0 )
initial_velocity = 35.0
initial_velocity_random = 1.0
color_ramp = SubResource( 2 )
anim_speed_random = 1.0
[node name="Right" type="CPUParticles2D" parent="Area2D/CollisionShape2D"]
position = Vector2( 2, 0 )
amount = 10
lifetime = 0.5
texture = ExtResource( 1 )
direction = Vector2( 0, -1 )
spread = 0.0
gravity = Vector2( 0, 0 )
initial_velocity = 30.0
initial_velocity_random = 1.0
color_ramp = SubResource( 2 )
anim_speed_random = 1.0
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]