-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCrate.tscn
93 lines (73 loc) · 2.64 KB
/
Crate.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Sprites/CustomTiles/Box.png" type="Texture" id=1]
[ext_resource path="res://Sprites/particle.png" type="Texture" id=2]
[ext_resource path="res://Crate.cs" type="Script" id=3]
[ext_resource path="res://CrateVertical.cs" type="Script" id=4]
[ext_resource path="res://Sprites/CustomTiles/Box2.png" type="Texture" id=5]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 15, 16 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 30, 24 )
[sub_resource type="ParticlesMaterial" id=3]
emission_shape = 2
emission_box_extents = Vector3( 15, 0, 0 )
flag_align_y = true
flag_disable_z = true
gravity = Vector3( 0, -98, 0 )
orbit_velocity = 0.0
orbit_velocity_random = 0.0
scale = 1.5
scale_random = 1.0
hue_variation = 0.07
hue_variation_random = 1.0
[sub_resource type="OccluderPolygon2D" id=4]
polygon = PoolVector2Array( 15, 16, -15, 16, -15, -16, 15, -16 )
[node name="Crate" type="Node2D"]
script = ExtResource( 3 )
[node name="Physical" type="KinematicBody2D" parent="."]
script = ExtResource( 4 )
TerminalVelocity = -160.0
[node name="Sprite" type="Sprite" parent="Physical"]
texture = ExtResource( 5 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Physical"]
shape = SubResource( 1 )
[node name="Swap" type="Area2D" parent="Physical"]
scale = Vector2( 1, -1 )
collision_layer = 2
collision_mask = 2147483650
[node name="CollisionShape2D" type="CollisionShape2D" parent="Physical/Swap"]
position = Vector2( 0, 8 )
shape = SubResource( 2 )
[node name="Particles2D" type="Particles2D" parent="Physical"]
position = Vector2( 0, 16 )
amount = 16
explosiveness = 0.2
randomness = 0.37
process_material = SubResource( 3 )
texture = ExtResource( 2 )
[node name="LightOccluder2D" type="LightOccluder2D" parent="Physical"]
occluder = SubResource( 4 )
[node name="Ghost" type="KinematicBody2D" parent="."]
scale = Vector2( 1, -1 )
script = ExtResource( 4 )
TerminalVelocity = -160.0
[node name="Sprite" type="Sprite" parent="Ghost"]
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ghost"]
shape = SubResource( 1 )
[node name="Swap" type="Area2D" parent="Ghost"]
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ghost/Swap"]
position = Vector2( 0, -8 )
shape = SubResource( 2 )
[node name="Particles2D" type="Particles2D" parent="Ghost"]
position = Vector2( 0, 16 )
amount = 16
explosiveness = 0.2
randomness = 0.37
process_material = SubResource( 3 )
texture = ExtResource( 2 )
[node name="LightOccluder2D" type="LightOccluder2D" parent="Ghost"]
scale = Vector2( 1, -1 )
occluder = SubResource( 4 )