82 lines
2.3 KiB
Text
82 lines
2.3 KiB
Text
[gd_scene load_steps=9 format=2]
|
|
|
|
[ext_resource path="res://graphics/enemy/laser_wall.png" type="Texture" id=1]
|
|
[ext_resource path="res://objects/enemy/laser_wall.gd" type="Script" id=2]
|
|
[ext_resource path="res://shaders/color_noise.gdshader" type="Shader" id=3]
|
|
[ext_resource path="res://graphics/particles/dust.png" type="Texture" id=4]
|
|
[ext_resource path="res://graphics/enemy/tin_eye.png" type="Texture" id=5]
|
|
|
|
[sub_resource type="ShaderMaterial" id=1]
|
|
shader = ExtResource( 3 )
|
|
shader_param/animate_noise = true
|
|
shader_param/noise_intensity = 0.5
|
|
|
|
[sub_resource type="Curve" id=2]
|
|
_data = [ Vector2( 0, 1 ), 0.0, -1.45746, 0, 0, Vector2( 1, 0 ), 0.00323196, 0.0, 0, 0 ]
|
|
|
|
[sub_resource type="Animation" id=3]
|
|
resource_name = "eye hue"
|
|
loop = true
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("Eye:modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 0.5, 1 ),
|
|
"transitions": PoolRealArray( 1, 1, 1 ),
|
|
"update": 0,
|
|
"values": [ Color( 0.560784, 1, 0.560784, 1 ), Color( 1, 0.56, 0.567333, 1 ), Color( 0.560784, 1, 0.560784, 1 ) ]
|
|
}
|
|
|
|
[node name="LaserWall" type="Node2D"]
|
|
script = ExtResource( 2 )
|
|
blood = false
|
|
speed = 16
|
|
|
|
[node name="Laser" type="Line2D" parent="."]
|
|
material = SubResource( 1 )
|
|
position = Vector2( 4, 2 )
|
|
points = PoolVector2Array( 0, 0, 0, 8 )
|
|
width = 2.0
|
|
default_color = Color( 0.960784, 0.2, 0.258824, 1 )
|
|
|
|
[node name="RayCast2D" type="RayCast2D" parent="."]
|
|
position = Vector2( 4, 2 )
|
|
cast_to = Vector2( 0, 256 )
|
|
collision_mask = 10
|
|
collide_with_areas = true
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
process_mode = 0
|
|
one_shot = true
|
|
|
|
[node name="SparkParticles" type="CPUParticles2D" parent="."]
|
|
position = Vector2( 4, 0 )
|
|
amount = 16
|
|
lifetime = 0.5
|
|
texture = ExtResource( 4 )
|
|
spread = 180.0
|
|
gravity = Vector2( 0, 0 )
|
|
initial_velocity = 30.0
|
|
initial_velocity_random = 0.5
|
|
damping = 50.0
|
|
angle = 720.0
|
|
angle_random = 1.0
|
|
scale_amount = 0.3
|
|
scale_amount_curve = SubResource( 2 )
|
|
color = Color( 1, 1, 0.290196, 1 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
texture = ExtResource( 1 )
|
|
centered = false
|
|
|
|
[node name="Eye" type="Sprite" parent="."]
|
|
modulate = Color( 0.560784, 1, 0.560784, 1 )
|
|
position = Vector2( 4, 1 )
|
|
texture = ExtResource( 5 )
|
|
|
|
[node name="EyeAnim" type="AnimationPlayer" parent="."]
|
|
autoplay = "eye hue"
|
|
"anims/eye hue" = SubResource( 3 )
|