ChronoSpace/scenes/obstacle/radiation/radiation.tscn

57 lines
1.8 KiB
Text

[gd_scene load_steps=8 format=3 uid="uid://dhkcgxwakdha7"]
[ext_resource type="PackedScene" uid="uid://cgqo1nxq6xprm" path="res://scenes/obstacle/obstacle.tscn" id="1_0jyim"]
[ext_resource type="Script" uid="uid://cf6le506yx5kl" path="res://scenes/obstacle/radiation/radiation.gd" id="2_7r84j"]
[ext_resource type="Texture2D" uid="uid://cfwyw1sr6x2np" path="res://icon.svg" id="3_o6dqs"]
[ext_resource type="Texture2D" uid="uid://bwnpsmrwskrgh" path="res://assets/radiation.png" id="4_pc435"]
[sub_resource type="CircleShape2D" id="CircleShape2D_7r84j"]
radius = 64.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_as1jp"]
[sub_resource type="CircleShape2D" id="CircleShape2D_pc435"]
radius = 192.0
[node name="Radiation" instance=ExtResource("1_0jyim")]
collision_layer = 128
collision_mask = 44
script = ExtResource("2_7r84j")
damage = 1
lifeTime = 180
[node name="CollisionShape2D" parent="DamageArea" index="0"]
shape = SubResource("CircleShape2D_7r84j")
disabled = true
[node name="CollisionShape2D" parent="hurtArea" index="0"]
disabled = true
[node name="Sprite2D" parent="." index="3"]
visible = false
material = SubResource("ShaderMaterial_as1jp")
texture = ExtResource("3_o6dqs")
[node name="range" type="Area2D" parent="." index="6"]
collision_layer = 128
collision_mask = 40
[node name="CollisionShape2D" type="CollisionShape2D" parent="range" index="0"]
shape = SubResource("CircleShape2D_pc435")
[node name="CPUParticles2D" type="CPUParticles2D" parent="." index="7"]
amount = 100
texture = ExtResource("4_pc435")
lifetime = 1.8
speed_scale = 0.1
randomness = 1.0
spread = 180.0
gravity = Vector2(0, 0)
initial_velocity_min = 100.0
initial_velocity_max = 100.0
angle_max = 720.0
scale_amount_min = 0.8
scale_amount_max = 1.2
[editable path="DamageArea"]
[editable path="hurtArea"]