-
Notifications
You must be signed in to change notification settings - Fork 0
/
exit.scn.xml
108 lines (105 loc) · 4.59 KB
/
exit.scn.xml
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?xml version="1.0" encoding="UTF-8" ?>
<resource_file type="PackedScene" subresource_count="4" version="2.0" version_name="Godot Engine v2.0.stable.official">
<ext_resource path="res://exit_level.gd" type="Script" index="0"></ext_resource>
<resource type="CircleShape2D" path="local://1">
<real name="custom_solver_bias"> 0 </real>
<real name="radius"> 10 </real>
</resource>
<resource type="GDScript" path="local://3">
<string name="script/source"> "extends Area2D�a;�a;func _on_Area2D_body_enter(body):�a;	var player = get_tree().get_nodes_in_group("Player")[0]�a;	if body == player:�a;		get_parent().exit_level()�a;		var p2d = get_parent().get_node("Particles2D")�a;		p2d.set_param(p2d.PARAM_LINEAR_VELOCITY, 200)�a;	else:�a;		print("Nonplayer entered (" + body.get_name() + ")")�a;" </string>
</resource>
<main_resource>
<dictionary name="_bundled" shared="false">
<string> "conn_count" </string>
<int> 1 </int>
<string> "conns" </string>
<int_array len="6"> 2, 2, 42, 41, 2, 0 </int_array>
<string> "editable_instances" </string>
<array len="0" shared="false">
</array>
<string> "names" </string>
<string_array len="43">
<string> "Exit" </string>
<string> "visibility/blend_mode" </string>
<string> "transform/pos" </string>
<string> "script/script" </string>
<string> "next_level" </string>
<string> "Node2D" </string>
<string> "Particles2D" </string>
<string> "config/amount" </string>
<string> "config/lifetime" </string>
<string> "config/time_scale" </string>
<string> "params/direction" </string>
<string> "params/spread" </string>
<string> "params/linear_velocity" </string>
<string> "params/spin_velocity" </string>
<string> "params/orbit_velocity" </string>
<string> "params/gravity_direction" </string>
<string> "params/gravity_strength" </string>
<string> "params/radial_accel" </string>
<string> "params/tangential_accel" </string>
<string> "params/damping" </string>
<string> "params/initial_angle" </string>
<string> "params/initial_size" </string>
<string> "params/final_size" </string>
<string> "params/hue_variation" </string>
<string> "params/anim_speed_scale" </string>
<string> "params/anim_initial_pos" </string>
<string> "color/color" </string>
<string> "Area2D" </string>
<string> "input/pickable" </string>
<string> "shapes/0/shape" </string>
<string> "shapes/0/transform" </string>
<string> "shapes/0/trigger" </string>
<string> "gravity_vec" </string>
<string> "gravity" </string>
<string> "linear_damp" </string>
<string> "angular_damp" </string>
<string> "CollisionShape2D" </string>
<string> "transform/scale" </string>
<string> "shape" </string>
<string> "trigger" </string>
<string> "_update_shape_index" </string>
<string> "_on_Area2D_body_enter" </string>
<string> "body_enter" </string>
</string_array>
<string> "node_count" </string>
<int> 4 </int>
<string> "node_paths" </string>
<array len="0" shared="false">
</array>
<string> "nodes" </string>
<int_array len="106"> -1, -1, 5, 0, -1, 4, 1, 0, 2, 1, 3, 2, 4, 3, 0, 0, 0, 6, 6, -1, 21, 1, 0, 7, 4, 8, 5, 9, 6, 10, 7, 11, 8, 12, 9, 13, 10, 14, 6, 15, 10, 16, 10, 17, 6, 18, 10, 19, 10, 20, 10, 21, 5, 22, 11, 23, 10, 24, 12, 25, 10, 26, 13, 0, 0, 0, 27, 27, -1, 9, 28, 14, 29, 15, 30, 16, 31, 17, 32, 18, 33, 19, 34, 20, 35, 12, 3, 21, 0, 2, 0, 36, 36, -1, 5, 2, 22, 37, 23, 38, 15, 39, 17, 40, 24, 0 </int_array>
<string> "variants" </string>
<array len="25" shared="false">
<int> 1 </int>
<vector2> 32, 32 </vector2>
<resource external="0"> </resource>
<string> "" </string>
<int> 128 </int>
<real> 4 </real>
<real> 2 </real>
<real> 45 </real>
<real> 180 </real>
<real> 25 </real>
<real> 0 </real>
<real> 0.4 </real>
<real> 1 </real>
<color> 0.165665, 0.53976, 0.902344, 1 </color>
<bool> True </bool>
<resource resource_type="Shape2D" path="local://1"> </resource>
<matrix32> 1.53846, -0, 0, 1.53846, -3.8147e-06, 0.999996 </matrix32>
<bool> False </bool>
<vector2> 0, 1 </vector2>
<real> 98 </real>
<real> 0.1 </real>
<resource resource_type="Script" path="local://3"> </resource>
<vector2> -3.8147e-06, 0.999996 </vector2>
<vector2> 1.53846, 1.53846 </vector2>
<int> 0 </int>
</array>
<string> "version" </string>
<int> 2 </int>
</dictionary>
</main_resource>
</resource_file>