92 lines
2.5 KiB
Text
92 lines
2.5 KiB
Text
[gd_scene load_steps=8 format=2]
|
|
|
|
[ext_resource path="res://objects/enemy/boss/boss1_projectile.gd" type="Script" id=1]
|
|
[ext_resource path="res://graphics/particles/goo_back.png" type="Texture" id=2]
|
|
[ext_resource path="res://graphics/particles/goo_trail.png" type="Texture" id=3]
|
|
[ext_resource path="res://graphics/particles/goo.png" type="Texture" 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( 4, 3 )
|
|
|
|
[node name="Boss1Projectile" type="Node2D"]
|
|
z_index = -1
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="GooTrail" type="CPUParticles2D" parent="."]
|
|
position = Vector2( 0, 4 )
|
|
z_index = -1
|
|
local_coords = false
|
|
texture = ExtResource( 3 )
|
|
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="."]
|
|
position = Vector2( 0, 4 )
|
|
amount = 16
|
|
texture = ExtResource( 2 )
|
|
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="."]
|
|
position = Vector2( 0, 4 )
|
|
amount = 16
|
|
preprocess = 1.0
|
|
texture = ExtResource( 2 )
|
|
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="."]
|
|
position = Vector2( 0, 4 )
|
|
lifetime = 0.5
|
|
preprocess = 0.5
|
|
texture = ExtResource( 4 )
|
|
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"]
|