hero-mark-2/objects/enemy/boss/scrump_projectile.tscn

92 lines
2.6 KiB
Text

[gd_scene load_steps=8 format=2]
[ext_resource path="res://graphics/particles/goo_back.png" type="Texture" id=1]
[ext_resource path="res://graphics/particles/goo_trail.png" type="Texture" id=2]
[ext_resource path="res://graphics/particles/goo.png" type="Texture" id=3]
[ext_resource path="res://objects/enemy/boss/scrump_projectile.gd" type="Script" id=4]
[sub_resource type="Curve" id=2]
_data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="Curve" id=3]
_data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 3, 3 )
[node name="Boss1Projectile" type="Node2D"]
z_index = -1
script = ExtResource( 4 )
[node name="Particles" type="Node2D" parent="."]
position = Vector2( 0, 4 )
[node name="GooTrail" type="CPUParticles2D" parent="Particles"]
z_index = -1
local_coords = false
texture = ExtResource( 2 )
emission_shape = 2
emission_rect_extents = Vector2( 4, 4 )
spread = 180.0
gravity = Vector2( 0, 40 )
initial_velocity = 8.0
angle = 720.0
angle_random = 1.0
scale_amount = 0.5
scale_amount_curve = SubResource( 2 )
[node name="GooBackground" type="CPUParticles2D" parent="Particles"]
amount = 16
texture = ExtResource( 1 )
emission_shape = 2
emission_rect_extents = Vector2( 2, 2 )
spread = 180.0
gravity = Vector2( 0, 0 )
initial_velocity = 4.0
angular_velocity = 180.0
angular_velocity_random = 1.0
angle = 720.0
angle_random = 1.0
scale_amount = 0.8
scale_amount_curve = SubResource( 3 )
[node name="GooBackgroundFall" type="CPUParticles2D" parent="Particles"]
amount = 16
preprocess = 1.0
texture = ExtResource( 1 )
emission_shape = 2
emission_rect_extents = Vector2( 2, 2 )
spread = 180.0
gravity = Vector2( 80, 0 )
initial_velocity = 4.0
angular_velocity = 180.0
angular_velocity_random = 1.0
angle = 720.0
angle_random = 1.0
scale_amount = 0.8
scale_amount_curve = SubResource( 3 )
[node name="GooForeground" type="CPUParticles2D" parent="Particles"]
lifetime = 0.5
preprocess = 0.5
texture = ExtResource( 3 )
emission_shape = 2
emission_rect_extents = Vector2( 2, 2 )
spread = 180.0
gravity = Vector2( 80, 0 )
initial_velocity = 4.0
angular_velocity = 180.0
angular_velocity_random = 1.0
angle = 720.0
angle_random = 1.0
scale_amount = 0.4
scale_amount_curve = SubResource( 3 )
[node name="Hitbox" type="Area2D" parent="."]
position = Vector2( 0, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
shape = SubResource( 1 )
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
[connection signal="body_entered" from="Hitbox" to="." method="_on_Hitbox_body_entered"]