-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwhirlpool.tscn
65 lines (53 loc) · 2.27 KB
/
whirlpool.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
[gd_scene load_steps=11 format=3 uid="uid://dquuni4v6g06p"]
[ext_resource type="Shader" path="res://shaders/whirlpool.gdshader" id="1_j2nmk"]
[ext_resource type="Texture2D" uid="uid://blq2b041xxo6a" path="res://assets/portal.png" id="1_my2lp"]
[ext_resource type="Script" path="res://whirlpool.gd" id="2_a5sox"]
[ext_resource type="Texture2D" uid="uid://c46htyaexexvl" path="res://assets/circle-particle.png" id="3_asb6x"]
[sub_resource type="CircleShape2D" id="CircleShape2D_ercr4"]
radius = 14.0
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_825gm"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_k4oml"]
shader = ExtResource("1_j2nmk")
shader_parameter/speed = 5.0
shader_parameter/arm_thickness = -0.2
shader_parameter/color = Color(0.215686, 0.129412, 0.203922, 1)
shader_parameter/noise_texture = SubResource("NoiseTexture2D_825gm")
[sub_resource type="Curve" id="Curve_l0lla"]
max_value = 1.5
_data = [Vector2(0, 1.5), 0.0, 0.0, 0, 0, Vector2(0.501984, 1.5), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_j8jfj"]
curve = SubResource("Curve_l0lla")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_07k3x"]
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_j8jfj")
color = Color(0.215686, 0.129412, 0.203922, 1)
[node name="Whirlpool" type="Area2D"]
self_modulate = Color(0.215686, 0.129412, 0.203922, 1)
z_index = -10
collision_mask = 0
script = ExtResource("2_a5sox")
[node name="CollisionShape" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_ercr4")
[node name="Sprite" type="Sprite2D" parent="."]
self_modulate = Color(0.215686, 0.129412, 0.203922, 1)
texture = ExtResource("1_my2lp")
[node name="Swirl" type="Sprite2D" parent="."]
material = SubResource("ShaderMaterial_k4oml")
scale = Vector2(2, 2)
texture = ExtResource("1_my2lp")
[node name="Particles" type="GPUParticles2D" parent="."]
visible = false
amount = 20
process_material = SubResource("ParticleProcessMaterial_07k3x")
texture = ExtResource("3_asb6x")
lifetime = 1.5