-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathportal.tscn
48 lines (38 loc) · 1.62 KB
/
portal.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
[gd_scene load_steps=8 format=3 uid="uid://d2sxlsok3f7ea"]
[ext_resource type="Texture2D" uid="uid://blq2b041xxo6a" path="res://assets/portal.png" id="1_j185p"]
[ext_resource type="Script" path="res://portal.gd" id="1_pi3eo"]
[ext_resource type="Texture2D" uid="uid://c46htyaexexvl" path="res://assets/circle-particle.png" id="3_fr6ei"]
[sub_resource type="CircleShape2D" id="CircleShape2D_06gny"]
radius = 17.0294
[sub_resource type="Curve" id="Curve_uhfgs"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.555777, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_se66c"]
curve = SubResource("Curve_uhfgs")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ilrli"]
particle_flag_disable_z = true
direction = Vector3(0, 0, 0)
spread = 180.0
gravity = Vector3(0, 0, 0)
initial_velocity_min = 30.0
initial_velocity_max = 30.0
orbit_velocity_min = 0.0
orbit_velocity_max = 0.0
angle_min = -720.0
angle_max = 720.0
scale_curve = SubResource("CurveTexture_se66c")
[node name="Portal" type="Area2D"]
z_index = -10
collision_layer = 0
collision_mask = 2
script = ExtResource("1_pi3eo")
[node name="CollisionShape" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_06gny")
debug_color = Color(0, 0.6, 0.701961, 0.419608)
[node name="Sprite" type="Sprite2D" parent="."]
texture = ExtResource("1_j185p")
[node name="Particles" type="GPUParticles2D" parent="."]
amount = 20
process_material = SubResource("ParticleProcessMaterial_ilrli")
texture = ExtResource("3_fr6ei")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]