Add a modified boss tune for the rectangle boss

This commit is contained in:
Sage Vaillancourt 2018-11-13 19:31:59 -05:00
parent f6c59a838e
commit 854d0ec6b9
11 changed files with 41 additions and 16 deletions

View File

@ -5,7 +5,7 @@
[ext_resource path="res://art/bg.png" type="Texture" id=3] [ext_resource path="res://art/bg.png" type="Texture" id=3]
[ext_resource path="res://art/backgrounds/orange.png" type="Texture" id=4] [ext_resource path="res://art/backgrounds/orange.png" type="Texture" id=4]
[node name="BG" type="Node2D"] [node name="BG" type="Node2D" index="0"]
z_index = -1 z_index = -1
script = ExtResource( 1 ) script = ExtResource( 1 )
@ -38,6 +38,7 @@ _sections_unfolded = [ "Anchor", "Focus", "Grow Direction", "Hint", "Margin", "M
visible = false visible = false
position = Vector2( 1250, 154.764 ) position = Vector2( 1250, 154.764 )
scale = Vector2( 0.3, 0.3 )
z_index = 1 z_index = 1
texture = ExtResource( 2 ) texture = ExtResource( 2 )
_sections_unfolded = [ "Transform", "Z Index" ] _sections_unfolded = [ "Transform", "Z Index" ]

View File

@ -79,9 +79,9 @@ func rounds(round_number):
2: 2:
roundOfEnemies(.6,DEFAULT_SPAWN_SPEED*.75,4,1,0,0) roundOfEnemies(.6,DEFAULT_SPAWN_SPEED*.75,4,1,0,0)
#if get_tree().is_network_server() == true: #if get_tree().is_network_server() == true:
# rpc("bossMode", 1) # rpc("bossMode", 0)
#else: #else:
# bossMode(1) # bossMode(0)
rpc("set_wave_name", "Wave 2: Any colour you like") rpc("set_wave_name", "Wave 2: Any colour you like")
3: 3:
roundOfEnemies(.6,DEFAULT_SPAWN_SPEED*.75,8,2,0,0) roundOfEnemies(.6,DEFAULT_SPAWN_SPEED*.75,8,2,0,0)
@ -403,7 +403,7 @@ sync func bossMode(boss_type):
bad = RectangleBoss.instance() bad = RectangleBoss.instance()
elif boss_type == 1: elif boss_type == 1:
bad = BlackHole.instance() bad = BlackHole.instance()
$Music.volume_db = -20 $Music.volume_db = -40
add_child(bad) add_child(bad)
# Flash screen when signalled # Flash screen when signalled

View File

@ -258,10 +258,10 @@ bus = "Master"
[connection signal="other_shooting_upgrade" from="Player" to="." method="other_shooting_upgrade"] [connection signal="other_shooting_upgrade" from="Player" to="." method="other_shooting_upgrade"]
[connection signal="restart_game" from="Player" to="." method="_on_Player_restart_game"]
[connection signal="restart_game" from="Player" to="Mothership" method="_on_Player_restart_game"] [connection signal="restart_game" from="Player" to="Mothership" method="_on_Player_restart_game"]
[connection signal="restart_game" from="Player" to="." method="_on_Player_restart_game"]
[connection signal="start_next_round" from="Player" to="." method="startNextRound"] [connection signal="start_next_round" from="Player" to="." method="startNextRound"]
[connection signal="update_display" from="Player" to="." method="updatePoints"] [connection signal="update_display" from="Player" to="." method="updatePoints"]

View File

@ -33,7 +33,7 @@ animations = [ {
"speed": 5.0 "speed": 5.0
} ] } ]
[node name="Node" type="Node" index="0"] [node name="Node" type="Node"]
pause_mode = 2 pause_mode = 2
script = ExtResource( 1 ) script = ExtResource( 1 )

View File

@ -5,7 +5,7 @@
[ext_resource path="res://Menus/libera.png" type="Texture" id=3] [ext_resource path="res://Menus/libera.png" type="Texture" id=3]
[ext_resource path="res://Menus/opens_externally.png" type="Texture" id=4] [ext_resource path="res://Menus/opens_externally.png" type="Texture" id=4]
[node name="Menu" instance=ExtResource( 1 )] [node name="Menu" index="0" instance=ExtResource( 1 )]
[node name="PatreonLink" type="Button" parent="." index="2"] [node name="PatreonLink" type="Button" parent="." index="2"]

View File

@ -20,7 +20,7 @@ custom_solver_bias = 0.0
radius = 25.7545 radius = 25.7545
height = 40.4125 height = 40.4125
[node name="Player" type="Area2D"] [node name="Player" type="Area2D" index="0"]
input_pickable = true input_pickable = true
gravity_point = true gravity_point = true

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=27 format=2] [gd_scene load_steps=28 format=2]
[ext_resource path="res://RectangleBoss.gd" type="Script" id=1] [ext_resource path="res://RectangleBoss.gd" type="Script" id=1]
[ext_resource path="res://Laser.tscn" type="PackedScene" id=2] [ext_resource path="res://Laser.tscn" type="PackedScene" id=2]
@ -22,6 +22,7 @@
[ext_resource path="res://art/bad/rectangle/rectangle_outside_cracked12.png" type="Texture" id=20] [ext_resource path="res://art/bad/rectangle/rectangle_outside_cracked12.png" type="Texture" id=20]
[ext_resource path="res://art/bad/rectangle/rectangle_outside_cracked13.png" type="Texture" id=21] [ext_resource path="res://art/bad/rectangle/rectangle_outside_cracked13.png" type="Texture" id=21]
[ext_resource path="res://art/bad/rectangle/rectangle_outside_cracked14.png" type="Texture" id=22] [ext_resource path="res://art/bad/rectangle/rectangle_outside_cracked14.png" type="Texture" id=22]
[ext_resource path="res://boss_long_minor_key.ogg" type="AudioStream" id=23]
[sub_resource type="SpriteFrames" id=1] [sub_resource type="SpriteFrames" id=1]
@ -119,6 +120,14 @@ shape = SubResource( 4 )
position = Vector2( 3427.85, 1866.16 ) position = Vector2( 3427.85, 1866.16 )
shape = SubResource( 4 ) shape = SubResource( 4 )
[node name="BossMusic" type="AudioStreamPlayer" parent="." index="5"]
stream = ExtResource( 23 )
volume_db = 4.0
autoplay = true
mix_target = 0
bus = "Master"
[connection signal="area_entered" from="Inside" to="." method="_on_Inside_area_entered"] [connection signal="area_entered" from="Inside" to="." method="_on_Inside_area_entered"]
[connection signal="body_entered" from="Inside" to="." method="_on_Inside_body_entered"] [connection signal="body_entered" from="Inside" to="." method="_on_Inside_body_entered"]

View File

@ -54,12 +54,12 @@ func _process(delta):
func entityEnteredRange(bad_id, bad, bad_shape, self_shape): func entityEnteredRange(bad_id, bad, bad_shape, self_shape):
#print(bad.get_name()) #print(bad.get_name())
if ("Bad" in bad.get_name() || "Black" in bad.get_name() || "Boss" in bad.get_name()):# && current_bad == null: if ("Bad" in bad.get_name() || "Black" in bad.get_name() || "Boss" in bad.get_name()) || "Prison" in bad.get_name():# && current_bad == null:
current_bad = bad current_bad = bad
current_bad_id = bad_id current_bad_id = bad_id
current_bad_shape = bad_shape current_bad_shape = bad_shape
enemy_count += 1 enemy_count += 1
print(enemy_count) #print(enemy_count)
func _on_FlashTimer_timeout(): func _on_FlashTimer_timeout():
$Beam.default_color.a = 0 $Beam.default_color.a = 0

BIN
boss_long_minor_key.ogg Normal file

Binary file not shown.

View File

@ -210,7 +210,7 @@ user_permissions/19=false
[preset.1] [preset.1]
name="Linux/X11" name="Linux"
platform="Linux/X11" platform="Linux/X11"
runnable=true runnable=true
custom_features="" custom_features=""
@ -230,7 +230,7 @@ custom_template/debug=""
[preset.2] [preset.2]
name="Windows Desktop" name="Windows"
platform="Windows Desktop" platform="Windows Desktop"
runnable=true runnable=true
custom_features="" custom_features=""
@ -344,7 +344,7 @@ custom_template/debug=""
[preset.5] [preset.5]
name="Mac OSX" name="OSX"
platform="Mac OSX" platform="Mac OSX"
runnable=true runnable=true
custom_features="" custom_features=""

View File

@ -17,7 +17,6 @@ config/icon="res://icon.png"
[display] [display]
window/handheld/emulate_touchscreen=true
window/stretch/mode="2d" window/stretch/mode="2d"
[input] [input]
@ -25,6 +24,22 @@ window/stretch/mode="2d"
ui_select=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":69,"unicode":0,"echo":false,"script":null) ui_select=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":69,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":3,"pressure":0.0,"pressed":false,"script":null) , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":3,"pressure":0.0,"pressed":false,"script":null)
] ]
ui_left=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null)
]
ui_right=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"unicode":0,"echo":false,"script":null)
]
ui_up=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"unicode":0,"echo":false,"script":null)
]
ui_down=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":13,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"unicode":0,"echo":false,"script":null)
]
ui_reset=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":82,"unicode":0,"echo":false,"script":null) ui_reset=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":82,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":2,"pressure":0.0,"pressed":false,"script":null) , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":2,"pressure":0.0,"pressed":false,"script":null)
] ]