made some changes :)
This commit is contained in:
parent
d3e402bb5b
commit
1a7c40f688
16 changed files with 311 additions and 13 deletions
|
@ -34,7 +34,12 @@ func _play_laser_sound(play: bool):
|
|||
Audio.play_sound(Audio.a_rainbow_laser,Audio.ac_boss)
|
||||
else:
|
||||
Audio.ac_boss.playing = false
|
||||
|
||||
|
||||
func _play_charge_sound(play: bool):
|
||||
if play:
|
||||
Audio.play_sound(Audio.a_2600_charge,Audio.ac_boss)
|
||||
else:
|
||||
Audio.ac_boss.playing = false
|
||||
|
||||
|
||||
func die():
|
||||
|
@ -52,4 +57,5 @@ func die():
|
|||
head_sprite.texture = preload("res://graphics/enemy/boss/stg_2600/head_broken.png")
|
||||
0:
|
||||
queue_free()
|
||||
Game.instance_node(load("res://objects/enemy/boss/2600_die.tscn"),position.x,position.y,get_parent())
|
||||
emit_signal("entered_phase", 4)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=27 format=2]
|
||||
[gd_scene load_steps=28 format=2]
|
||||
|
||||
[ext_resource path="res://objects/enemy/boss/2600.gd" type="Script" id=1]
|
||||
[ext_resource path="res://graphics/enemy/boss/stg_2600/tailpipes.png" type="Texture" id=2]
|
||||
|
@ -15,6 +15,7 @@
|
|||
[ext_resource path="res://graphics/enemy/boss/stg_2600/beam_gradient.png" type="Texture" id=13]
|
||||
[ext_resource path="res://shaders/beam_cycle.gdshader" type="Shader" id=14]
|
||||
[ext_resource path="res://graphics/particles/dust.png" type="Texture" id=15]
|
||||
[ext_resource path="res://graphics/particles/smoke.png" type="Texture" id=16]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=11]
|
||||
shader = ExtResource( 3 )
|
||||
|
@ -72,10 +73,13 @@ tracks/1/loop_wrap = true
|
|||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"times": PoolRealArray( 1.6, 3.4 ),
|
||||
"transitions": PoolRealArray( 1, 1 ),
|
||||
"times": PoolRealArray( 0, 1.6, 3.4 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1 ),
|
||||
"values": [ {
|
||||
"args": [ true ],
|
||||
"method": "_play_charge_sound"
|
||||
}, {
|
||||
"args": [ true ],
|
||||
"method": "_play_laser_sound"
|
||||
}, {
|
||||
"args": [ false ],
|
||||
|
@ -340,8 +344,9 @@ texture = ExtResource( 2 )
|
|||
[node name="SmokeParticles" type="CPUParticles2D" parent="Axle/Head/Tailpipes"]
|
||||
position = Vector2( 10, -10 )
|
||||
amount = 12
|
||||
texture = ExtResource( 15 )
|
||||
direction = Vector2( 1, -1 )
|
||||
texture = ExtResource( 16 )
|
||||
direction = Vector2( 1.25, -1 )
|
||||
spread = 0.0
|
||||
gravity = Vector2( 0, -30 )
|
||||
initial_velocity = 20.0
|
||||
initial_velocity_random = 1.0
|
||||
|
@ -357,8 +362,9 @@ color = Color( 0.0666667, 0.0666667, 0.0666667, 1 )
|
|||
[node name="SmokeParticles2" type="CPUParticles2D" parent="Axle/Head/Tailpipes"]
|
||||
position = Vector2( 8, 0 )
|
||||
amount = 12
|
||||
texture = ExtResource( 15 )
|
||||
direction = Vector2( 1, -1 )
|
||||
texture = ExtResource( 16 )
|
||||
direction = Vector2( 1.25, -1 )
|
||||
spread = 0.0
|
||||
gravity = Vector2( 0, -30 )
|
||||
initial_velocity = 20.0
|
||||
initial_velocity_random = 1.0
|
||||
|
@ -372,8 +378,9 @@ color = Color( 0.0666667, 0.0666667, 0.0666667, 1 )
|
|||
[node name="SmokeParticles3" type="CPUParticles2D" parent="Axle/Head/Tailpipes"]
|
||||
position = Vector2( 5, -9 )
|
||||
amount = 12
|
||||
texture = ExtResource( 15 )
|
||||
direction = Vector2( 1, -1 )
|
||||
texture = ExtResource( 16 )
|
||||
direction = Vector2( 1.25, -1 )
|
||||
spread = 0.0
|
||||
gravity = Vector2( 0, -30 )
|
||||
initial_velocity = 20.0
|
||||
initial_velocity_random = 1.0
|
||||
|
|
182
objects/enemy/boss/2600_die.tscn
Normal file
182
objects/enemy/boss/2600_die.tscn
Normal file
|
@ -0,0 +1,182 @@
|
|||
[gd_scene load_steps=11 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/launch_rigid.gd" type="Script" id=1]
|
||||
[ext_resource path="res://graphics/enemy/boss/stg_2600/head_broken.png" type="Texture" id=2]
|
||||
[ext_resource path="res://graphics/enemy/boss/stg_2600/bolt_large.png" type="Texture" id=3]
|
||||
[ext_resource path="res://graphics/enemy/boss/stg_2600/leg.png" type="Texture" id=6]
|
||||
[ext_resource path="res://graphics/enemy/boss/stg_2600/foot.png" type="Texture" id=7]
|
||||
[ext_resource path="res://graphics/enemy/boss/stg_2600/tailpipes.png" type="Texture" id=8]
|
||||
[ext_resource path="res://graphics/enemy/boss/stg_2600/bolt_medium.png" type="Texture" id=10]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 5.98485, 17.9739 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
extents = Vector2( 5.78793, 21.068 )
|
||||
|
||||
[sub_resource type="CircleShape2D" id=3]
|
||||
radius = 12.0
|
||||
|
||||
[node name="2600Die" type="Node2D"]
|
||||
|
||||
[node name="LegR" type="RigidBody2D" parent="."]
|
||||
position = Vector2( 61, 85 )
|
||||
rotation = -0.436332
|
||||
scale = Vector2( 1, 1 )
|
||||
script = ExtResource( 1 )
|
||||
impulse_min = 0
|
||||
impulse_max = 0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="LegR"]
|
||||
texture = ExtResource( 6 )
|
||||
region_enabled = true
|
||||
region_rect = Rect2( 0, 0, 12, 36 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="LegR"]
|
||||
position = Vector2( 0.221909, 0.014267 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="LargeBoltR" type="RigidBody2D" parent="."]
|
||||
position = Vector2( 56, 74 )
|
||||
script = ExtResource( 1 )
|
||||
impulse_min = 0
|
||||
impulse_max = 0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="LargeBoltR"]
|
||||
position = Vector2( -0.400002, 0.400002 )
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="LargeBoltR"]
|
||||
position = Vector2( -77.4, -73.6 )
|
||||
polygon = PoolVector2Array( 86, 60, 68, 60, 61, 73, 68, 88, 86, 88, 93, 75 )
|
||||
|
||||
[node name="Leg2R" type="RigidBody2D" parent="."]
|
||||
position = Vector2( 61, 128 )
|
||||
rotation = 0.418879
|
||||
script = ExtResource( 1 )
|
||||
impulse_min = 0
|
||||
impulse_max = 0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Leg2R"]
|
||||
texture = ExtResource( 6 )
|
||||
region_enabled = true
|
||||
region_rect = Rect2( 0, 0, 12, 42 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Leg2R"]
|
||||
position = Vector2( 0, 0.0500336 )
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="SmallBoltR" type="RigidBody2D" parent="."]
|
||||
position = Vector2( 71, 107 )
|
||||
script = ExtResource( 1 )
|
||||
impulse_min = 0
|
||||
impulse_max = 0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="SmallBoltR"]
|
||||
texture = ExtResource( 10 )
|
||||
region_enabled = true
|
||||
region_rect = Rect2( 0, 0, 24, 24 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="SmallBoltR"]
|
||||
shape = SubResource( 3 )
|
||||
|
||||
[node name="Head" type="RigidBody2D" parent="."]
|
||||
position = Vector2( 46, 46 )
|
||||
script = ExtResource( 1 )
|
||||
impulse_min = 0
|
||||
impulse_max = 0
|
||||
|
||||
[node name="Tailpipe" type="Sprite" parent="Head"]
|
||||
position = Vector2( 41, -8 )
|
||||
texture = ExtResource( 8 )
|
||||
|
||||
[node name="Head" type="Sprite" parent="Head"]
|
||||
position = Vector2( 7, 3 )
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Head"]
|
||||
polygon = PoolVector2Array( 2, -29, -17, -29, -26, -25, -32, -19, -34, -16, -35, -14, -37, -10, -38, -7, -39, -2, -39, 1, -40, 2, -42, 4, -43, 8, -44, 12, -44, 24, -43, 29, -41, 33, -40, 35, 40, 35, 49, 26, 49, 22, 48, 18, 46, 10, 44, 2, 43, -2, 41, -10, 40, -14, 39, -18, 27, -30, 2, -30 )
|
||||
|
||||
[node name="LegL" type="RigidBody2D" parent="."]
|
||||
position = Vector2( 82, 85 )
|
||||
rotation = -0.436332
|
||||
script = ExtResource( 1 )
|
||||
impulse_min = 0
|
||||
impulse_max = 0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="LegL"]
|
||||
texture = ExtResource( 6 )
|
||||
region_enabled = true
|
||||
region_rect = Rect2( 0, 0, 12, 36 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="LegL"]
|
||||
position = Vector2( 0.221909, 0.014267 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="LargeBoltL" type="RigidBody2D" parent="."]
|
||||
position = Vector2( 77, 74 )
|
||||
script = ExtResource( 1 )
|
||||
impulse_min = 0
|
||||
impulse_max = 0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="LargeBoltL"]
|
||||
position = Vector2( -0.400002, 0.400002 )
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="LargeBoltL"]
|
||||
position = Vector2( -77.4, -73.6 )
|
||||
polygon = PoolVector2Array( 86, 60, 68, 60, 61, 73, 68, 88, 86, 88, 93, 75 )
|
||||
|
||||
[node name="Leg2L" type="RigidBody2D" parent="."]
|
||||
position = Vector2( 81, 130 )
|
||||
rotation = 0.418879
|
||||
script = ExtResource( 1 )
|
||||
impulse_min = 0
|
||||
impulse_max = 0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Leg2L"]
|
||||
texture = ExtResource( 6 )
|
||||
region_enabled = true
|
||||
region_rect = Rect2( 0, 0, 12, 42 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Leg2L"]
|
||||
position = Vector2( 0, 0.0500336 )
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="SmallBoltL" type="RigidBody2D" parent="."]
|
||||
position = Vector2( 92, 107 )
|
||||
script = ExtResource( 1 )
|
||||
impulse_min = 0
|
||||
impulse_max = 0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="SmallBoltL"]
|
||||
texture = ExtResource( 10 )
|
||||
region_enabled = true
|
||||
region_rect = Rect2( 0, 0, 24, 24 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="SmallBoltL"]
|
||||
shape = SubResource( 3 )
|
||||
|
||||
[node name="FootR" type="RigidBody2D" parent="."]
|
||||
position = Vector2( 39, 152 )
|
||||
script = ExtResource( 1 )
|
||||
impulse_min = 0
|
||||
impulse_max = 0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="FootR"]
|
||||
texture = ExtResource( 7 )
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="FootR"]
|
||||
polygon = PoolVector2Array( -2, -10, -20, 0, -20, 16, 26, 16, 26, -10, 21, -10, 18, -7, 16, -8, 14, -9, 8, -9, 5, -7, 3, -10 )
|
||||
|
||||
[node name="FootL" type="RigidBody2D" parent="."]
|
||||
position = Vector2( 60, 152 )
|
||||
script = ExtResource( 1 )
|
||||
impulse_min = 0
|
||||
impulse_max = 0
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="FootL"]
|
||||
texture = ExtResource( 7 )
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="FootL"]
|
||||
polygon = PoolVector2Array( -2, -10, -20, 0, -20, 16, 26, 16, 26, -10, 21, -10, 18, -7, 16, -8, 14, -9, 8, -9, 5, -7, 3, -10 )
|
Loading…
Add table
Add a link
Reference in a new issue