-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHitball.tscn
34 lines (26 loc) · 1.23 KB
/
Hitball.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
[gd_scene load_steps=7 format=3 uid="uid://band8x3mxub5s"]
[ext_resource type="Script" path="res://Scripts/Hitball.gd" id="1_bhah5"]
[ext_resource type="ArrayMesh" uid="uid://cges2al77gqcs" path="res://Meshes/Hitball.tres" id="1_m0axy"]
[ext_resource type="Shader" path="res://Shaders/Hitball.gdshader" id="2_71lfv"]
[ext_resource type="Script" path="res://Scripts/HitballMesh.gd" id="2_gynoj"]
[sub_resource type="CircleShape2D" id="CircleShape2D_1hlof"]
radius = 5.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_kjtxe"]
shader = ExtResource("2_71lfv")
shader_parameter/inside_radius = 0.6
shader_parameter/outside_radius = 0.995
shader_parameter/lifetime = 0.8
shader_parameter/power = 0.598
[node name="Hitball" type="CharacterBody2D" groups=["hitballs"]]
script = ExtResource("1_bhah5")
radius = 150.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
shape = SubResource("CircleShape2D_1hlof")
[node name="MeshInstance2D" type="MeshInstance2D" parent="."]
material = SubResource("ShaderMaterial_kjtxe")
mesh = ExtResource("1_m0axy")
script = ExtResource("2_gynoj")
iteration = 40.0
[node name="Timer" type="Timer" parent="."]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]