forked from team-sg/hero-mark-2
added glowy eye to emitter
This commit is contained in:
parent
d6e35580fd
commit
408c1062ed
2 changed files with 31 additions and 5 deletions
Binary file not shown.
Before Width: | Height: | Size: 625 B After Width: | Height: | Size: 543 B |
|
@ -1,9 +1,10 @@
|
||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=9 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://graphics/enemy/laser_wall.png" type="Texture" id=1]
|
[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://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://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/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]
|
[sub_resource type="ShaderMaterial" id=1]
|
||||||
shader = ExtResource( 3 )
|
shader = ExtResource( 3 )
|
||||||
|
@ -13,16 +14,28 @@ shader_param/noise_intensity = 0.5
|
||||||
[sub_resource type="Curve" id=2]
|
[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 ]
|
_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"]
|
[node name="LaserWall" type="Node2D"]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
blood = false
|
blood = false
|
||||||
speed = 16
|
speed = 16
|
||||||
flip_sprite = false
|
flip_sprite = false
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
|
||||||
texture = ExtResource( 1 )
|
|
||||||
centered = false
|
|
||||||
|
|
||||||
[node name="Laser" type="Line2D" parent="."]
|
[node name="Laser" type="Line2D" parent="."]
|
||||||
material = SubResource( 1 )
|
material = SubResource( 1 )
|
||||||
position = Vector2( 4, 2 )
|
position = Vector2( 4, 2 )
|
||||||
|
@ -55,3 +68,16 @@ angle_random = 1.0
|
||||||
scale_amount = 0.3
|
scale_amount = 0.3
|
||||||
scale_amount_curve = SubResource( 2 )
|
scale_amount_curve = SubResource( 2 )
|
||||||
color = Color( 1, 1, 0.290196, 1 )
|
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 )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue