mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-11 21:22:22 +02:00
Merge branch 'dev-music' of https://github.com/creyD/ludum_dare_46 into dev-music
This commit is contained in:
BIN
src/Boss/SlimeBoss/Music/Evillaughwithoutslime.wav
Normal file
BIN
src/Boss/SlimeBoss/Music/Evillaughwithoutslime.wav
Normal file
Binary file not shown.
21
src/Boss/SlimeBoss/Music/Evillaughwithoutslime.wav.import
Normal file
21
src/Boss/SlimeBoss/Music/Evillaughwithoutslime.wav.import
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamSample"
|
||||||
|
path="res://.import/Evillaughwithoutslime.wav-2465178cb0e3049fa3a46f0df9ab50c2.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Boss/SlimeBoss/Music/Evillaughwithoutslime.wav"
|
||||||
|
dest_files=[ "res://.import/Evillaughwithoutslime.wav-2465178cb0e3049fa3a46f0df9ab50c2.sample" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop=false
|
||||||
|
compress/mode=0
|
||||||
BIN
src/Boss/SlimeBoss/Music/Hurt.wav
Normal file
BIN
src/Boss/SlimeBoss/Music/Hurt.wav
Normal file
Binary file not shown.
21
src/Boss/SlimeBoss/Music/Hurt.wav.import
Normal file
21
src/Boss/SlimeBoss/Music/Hurt.wav.import
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamSample"
|
||||||
|
path="res://.import/Hurt.wav-a6829ddecff2027e68a7c8da8045d01d.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Boss/SlimeBoss/Music/Hurt.wav"
|
||||||
|
dest_files=[ "res://.import/Hurt.wav-a6829ddecff2027e68a7c8da8045d01d.sample" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop=false
|
||||||
|
compress/mode=0
|
||||||
BIN
src/Boss/SlimeBoss/Music/Hurt2.wav
Normal file
BIN
src/Boss/SlimeBoss/Music/Hurt2.wav
Normal file
Binary file not shown.
21
src/Boss/SlimeBoss/Music/Hurt2.wav.import
Normal file
21
src/Boss/SlimeBoss/Music/Hurt2.wav.import
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamSample"
|
||||||
|
path="res://.import/Hurt2.wav-e53e7893ad773f4c41d9905d1d7d5547.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Boss/SlimeBoss/Music/Hurt2.wav"
|
||||||
|
dest_files=[ "res://.import/Hurt2.wav-e53e7893ad773f4c41d9905d1d7d5547.sample" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop=false
|
||||||
|
compress/mode=0
|
||||||
BIN
src/Boss/SlimeBoss/Music/SchleimSplit.wav
Normal file
BIN
src/Boss/SlimeBoss/Music/SchleimSplit.wav
Normal file
Binary file not shown.
21
src/Boss/SlimeBoss/Music/SchleimSplit.wav.import
Normal file
21
src/Boss/SlimeBoss/Music/SchleimSplit.wav.import
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamSample"
|
||||||
|
path="res://.import/SchleimSplit.wav-be06d1d82dcd0736628fc69a484d4027.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Boss/SlimeBoss/Music/SchleimSplit.wav"
|
||||||
|
dest_files=[ "res://.import/SchleimSplit.wav-be06d1d82dcd0736628fc69a484d4027.sample" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop=false
|
||||||
|
compress/mode=0
|
||||||
BIN
src/Boss/SlimeBoss/Music/SchleimSplit3.wav
Normal file
BIN
src/Boss/SlimeBoss/Music/SchleimSplit3.wav
Normal file
Binary file not shown.
21
src/Boss/SlimeBoss/Music/SchleimSplit3.wav.import
Normal file
21
src/Boss/SlimeBoss/Music/SchleimSplit3.wav.import
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamSample"
|
||||||
|
path="res://.import/SchleimSplit3.wav-46eba16174f46af2c746acf029a39ace.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Boss/SlimeBoss/Music/SchleimSplit3.wav"
|
||||||
|
dest_files=[ "res://.import/SchleimSplit3.wav-46eba16174f46af2c746acf029a39ace.sample" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop=false
|
||||||
|
compress/mode=0
|
||||||
BIN
src/Boss/SlimeBoss/Music/slimy.wav
Normal file
BIN
src/Boss/SlimeBoss/Music/slimy.wav
Normal file
Binary file not shown.
21
src/Boss/SlimeBoss/Music/slimy.wav.import
Normal file
21
src/Boss/SlimeBoss/Music/slimy.wav.import
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamSample"
|
||||||
|
path="res://.import/slimy.wav-2f26e413d39d2e92be768830f3f5770a.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Boss/SlimeBoss/Music/slimy.wav"
|
||||||
|
dest_files=[ "res://.import/slimy.wav-2f26e413d39d2e92be768830f3f5770a.sample" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop=false
|
||||||
|
compress/mode=0
|
||||||
@@ -4,7 +4,6 @@ onready var animation_player = owner.get_node("AnimationPlayer")
|
|||||||
|
|
||||||
func play_directional_animation(name, vec):
|
func play_directional_animation(name, vec):
|
||||||
var anim_name = name + get_nearest_diretion(vec)
|
var anim_name = name + get_nearest_diretion(vec)
|
||||||
|
|
||||||
if animation_player.current_animation != anim_name:
|
if animation_player.current_animation != anim_name:
|
||||||
animation_player.play(anim_name)
|
animation_player.play(anim_name)
|
||||||
|
|
||||||
@@ -38,5 +37,3 @@ func get_nearest_diretion(vec):
|
|||||||
return nearest_direction
|
return nearest_direction
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
extends "res://Boss/SlimeBoss/States/BossState.gd"
|
extends "res://Boss/SlimeBoss/States/BossState.gd"
|
||||||
|
|
||||||
func enter():
|
func enter():
|
||||||
|
SoundControler.pub_play_effect("res://Player/Sounds/hero_laugh1.ogg",10)
|
||||||
animation_player.play("Die")
|
animation_player.play("Die")
|
||||||
|
|
||||||
func _on_animation_finished(anim_name):
|
func _on_animation_finished(anim_name):
|
||||||
emit_signal("finished")
|
emit_signal("finished")
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ export(float) var ARRIVE_DISTANCE = 6.0
|
|||||||
|
|
||||||
var velocity = Vector2.ZERO
|
var velocity = Vector2.ZERO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func update(delta):
|
func update(delta):
|
||||||
velocity = Steering.arrive_to(velocity,
|
velocity = Steering.arrive_to(velocity,
|
||||||
owner.global_position,
|
owner.global_position,
|
||||||
@@ -15,6 +17,7 @@ func update(delta):
|
|||||||
SLOW_RADIUS,
|
SLOW_RADIUS,
|
||||||
MAX_SPEED)
|
MAX_SPEED)
|
||||||
play_directional_animation("Move", velocity)
|
play_directional_animation("Move", velocity)
|
||||||
|
SoundControler.pub_play_effect("res://Boss/SlimeBoss/Music/slimy.wav",10)
|
||||||
owner.move_and_slide(velocity)
|
owner.move_and_slide(velocity)
|
||||||
if owner.global_position.distance_to(owner.start_global_position) < ARRIVE_DISTANCE:
|
if owner.global_position.distance_to(owner.start_global_position) < ARRIVE_DISTANCE:
|
||||||
emit_signal('finished')
|
emit_signal('finished')
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ onready var stomp_effect = owner.get_node("Effects/StompEffect")
|
|||||||
func enter():
|
func enter():
|
||||||
stomp_hitbox.disabled = false
|
stomp_hitbox.disabled = false
|
||||||
stomp_effect.stomp()
|
stomp_effect.stomp()
|
||||||
|
SoundControler.pub_play_effect("res://Boss/SlimeBoss/Music/SchleimSplit.wav",10)
|
||||||
|
|
||||||
func exit():
|
func exit():
|
||||||
stomp_hitbox.disabled = true
|
stomp_hitbox.disabled = true
|
||||||
@@ -15,3 +16,4 @@ func update(delta):
|
|||||||
|
|
||||||
func _on_StompEffect_animation_finished():
|
func _on_StompEffect_animation_finished():
|
||||||
emit_signal("finished")
|
emit_signal("finished")
|
||||||
|
|
||||||
|
|||||||
BIN
src/Objects/Slime/Schleim.wav
Normal file
BIN
src/Objects/Slime/Schleim.wav
Normal file
Binary file not shown.
21
src/Objects/Slime/Schleim.wav.import
Normal file
21
src/Objects/Slime/Schleim.wav.import
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamSample"
|
||||||
|
path="res://.import/Schleim.wav-452a296a5f1cec9e04f1397b705aa9c4.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Objects/Slime/Schleim.wav"
|
||||||
|
dest_files=[ "res://.import/Schleim.wav-452a296a5f1cec9e04f1397b705aa9c4.sample" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop=false
|
||||||
|
compress/mode=0
|
||||||
5
src/Objects/Slime/Slime.gd
Normal file
5
src/Objects/Slime/Slime.gd
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
extends Node2D
|
||||||
|
|
||||||
|
|
||||||
|
func _on_Hurtbox_area_entered(area):
|
||||||
|
SoundControler.pub_play_effect("res://Objects/Slime/Schleim.wav",3)
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
[gd_scene load_steps=5 format=2]
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://testSprites/slime.png" type="Texture" id=1]
|
[ext_resource path="res://testSprites/slime.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://Overlap/HurtHit_Box/Hurtbox.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://Overlap/HurtHit_Box/Hurtbox.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=3]
|
[ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=3]
|
||||||
|
[ext_resource path="res://Objects/Slime/Slime.gd" type="Script" id=4]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=1]
|
[sub_resource type="RectangleShape2D" id=1]
|
||||||
extents = Vector2( 16, 16 )
|
extents = Vector2( 16, 16 )
|
||||||
|
|
||||||
[node name="Slime" type="Node2D"]
|
[node name="Slime" type="Node2D"]
|
||||||
|
script = ExtResource( 4 )
|
||||||
|
|
||||||
[node name="Kind" parent="." instance=ExtResource( 3 )]
|
[node name="Kind" parent="." instance=ExtResource( 3 )]
|
||||||
general = 2
|
general = 2
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ var state_active = null
|
|||||||
|
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
|
SoundControler.pub_play_effect("res://Boss/SlimeBoss/Music/SchleimSplit3.wav",10)
|
||||||
for child in get_children():
|
for child in get_children():
|
||||||
child.connect('finished', self, '_on_state_active_finished')
|
child.connect('finished', self, '_on_state_active_finished')
|
||||||
|
|
||||||
@@ -38,3 +39,6 @@ func go_to_next_state_in_sequence():
|
|||||||
state_active = get_child(new_state_index)
|
state_active = get_child(new_state_index)
|
||||||
|
|
||||||
state_active.enter()
|
state_active.enter()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ This is an example player controller script created by Paul
|
|||||||
var velocity := Vector2.ZERO
|
var velocity := Vector2.ZERO
|
||||||
var rollvector := Vector2(-1,0)
|
var rollvector := Vector2(-1,0)
|
||||||
|
|
||||||
|
#one sound will be chosen at random
|
||||||
|
export var SoundLibary :PoolStringArray=[]
|
||||||
|
|
||||||
# This is how you export variables with ranges to the editor window
|
# This is how you export variables with ranges to the editor window
|
||||||
export(bool) var debug := false
|
export(bool) var debug := false
|
||||||
export(int, 0, 500) var ROLL_SPEED := 150
|
export(int, 0, 500) var ROLL_SPEED := 150
|
||||||
@@ -172,9 +175,12 @@ func _on_Hurtbox_area_entered(area):
|
|||||||
|
|
||||||
if area.damage > 0:
|
if area.damage > 0:
|
||||||
damage_per_second += area.damage
|
damage_per_second += area.damage
|
||||||
|
SoundControler.pub_play_effect("res://Player/Sounds/Hurt.wav",1)
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
heal_per_second += abs(area.damage)
|
heal_per_second += abs(area.damage)
|
||||||
|
var sound = SoundLibary[rand_range(0,SoundLibary.size())]
|
||||||
|
SoundControler.pub_play_effect(sound,1)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
func _on_Hurtbox_area_exited(area):
|
func _on_Hurtbox_area_exited(area):
|
||||||
@@ -187,6 +193,7 @@ func _on_Hurtbox_area_exited(area):
|
|||||||
|
|
||||||
|
|
||||||
func _on_Stats_no_health():
|
func _on_Stats_no_health():
|
||||||
|
SoundControler.pub_play_effect("res://Boss/SlimeBoss/Music/Evillaughwithoutslime.wav",1)
|
||||||
queue_free()
|
queue_free()
|
||||||
get_tree().get_root().get_node("World").hero_has_died()
|
get_tree().get_root().get_node("World").hero_has_died()
|
||||||
#get_tree().change_scene("res://Menus/TitleScreen/TitleScreen.tscn")
|
#get_tree().change_scene("res://Menus/TitleScreen/TitleScreen.tscn")
|
||||||
|
|||||||
@@ -632,6 +632,7 @@ font_data = ExtResource( 6 )
|
|||||||
scale = Vector2( 2, 2 )
|
scale = Vector2( 2, 2 )
|
||||||
collision_mask = 14
|
collision_mask = 14
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
|
SoundLibary = PoolStringArray( "res://Objects/Heart/Sounds/Heart2.wav", "res://Objects/Heart/Sounds/Heart3.wav", "res://Objects/Heart/Sounds/Heart4.wav", "res://Objects/Heart/Sounds/Heart5.wav", "res://Objects/Heart/Sounds/Heart.wav" )
|
||||||
ROLL_SPEED = 120
|
ROLL_SPEED = 120
|
||||||
FRICTION = 270
|
FRICTION = 270
|
||||||
|
|
||||||
|
|||||||
BIN
src/Player/Sounds/Hurt.wav
Normal file
BIN
src/Player/Sounds/Hurt.wav
Normal file
Binary file not shown.
21
src/Player/Sounds/Hurt.wav.import
Normal file
21
src/Player/Sounds/Hurt.wav.import
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamSample"
|
||||||
|
path="res://.import/Hurt.wav-7259cfd30bcd9a0eb4363f17c23fd6bd.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Player/Sounds/Hurt.wav"
|
||||||
|
dest_files=[ "res://.import/Hurt.wav-7259cfd30bcd9a0eb4363f17c23fd6bd.sample" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop=false
|
||||||
|
compress/mode=0
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=24 format=2]
|
[gd_scene load_steps=25 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://Player/Player.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://Player/Player.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://World.gd" type="Script" id=2]
|
[ext_resource path="res://World.gd" type="Script" id=2]
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
[ext_resource path="res://Debug/BossStateDisplay.gd" type="Script" id=11]
|
[ext_resource path="res://Debug/BossStateDisplay.gd" type="Script" id=11]
|
||||||
[ext_resource path="res://Maps/Tilesets/Edge/tileset_edge.png" type="Texture" id=12]
|
[ext_resource path="res://Maps/Tilesets/Edge/tileset_edge.png" type="Texture" id=12]
|
||||||
[ext_resource path="res://Boss/Minion.tscn" type="PackedScene" id=13]
|
[ext_resource path="res://Boss/Minion.tscn" type="PackedScene" id=13]
|
||||||
|
[ext_resource path="res://Objects/Slime/Slime.tscn" type="PackedScene" id=14]
|
||||||
[ext_resource path="res://Maps/Grid.tscn" type="PackedScene" id=18]
|
[ext_resource path="res://Maps/Grid.tscn" type="PackedScene" id=18]
|
||||||
|
|
||||||
[sub_resource type="ConvexPolygonShape2D" id=1]
|
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||||
@@ -347,6 +348,21 @@ anchor_right = 1.0
|
|||||||
margin_left = -42.0
|
margin_left = -42.0
|
||||||
margin_bottom = 24.0
|
margin_bottom = 24.0
|
||||||
text = "Win"
|
text = "Win"
|
||||||
|
|
||||||
|
[node name="Slime" parent="." instance=ExtResource( 14 )]
|
||||||
|
position = Vector2( 136, 160 )
|
||||||
|
|
||||||
|
[node name="Slime2" parent="." instance=ExtResource( 14 )]
|
||||||
|
position = Vector2( 136, 128 )
|
||||||
|
|
||||||
|
[node name="Slime3" parent="." instance=ExtResource( 14 )]
|
||||||
|
position = Vector2( 136, 96 )
|
||||||
|
|
||||||
|
[node name="Slime4" parent="." instance=ExtResource( 14 )]
|
||||||
|
position = Vector2( 136, 64 )
|
||||||
|
|
||||||
|
[node name="Slime5" parent="." instance=ExtResource( 14 )]
|
||||||
|
position = Vector2( 136, 32 )
|
||||||
[connection signal="phase_changed" from="YSort/SlimeBoss" to="CanvasLayer/DebugLabel/BossStateDisplay" method="_on_SlimeBoss_phase_changed"]
|
[connection signal="phase_changed" from="YSort/SlimeBoss" to="CanvasLayer/DebugLabel/BossStateDisplay" method="_on_SlimeBoss_phase_changed"]
|
||||||
[connection signal="state_changed" from="YSort/SlimeBoss" to="CanvasLayer/DebugLabel/BossStateDisplay" method="_on_SlimeBoss_state_changed"]
|
[connection signal="state_changed" from="YSort/SlimeBoss" to="CanvasLayer/DebugLabel/BossStateDisplay" method="_on_SlimeBoss_state_changed"]
|
||||||
[connection signal="pressed" from="CanvasLayer/Win" to="." method="_on_Win_pressed"]
|
[connection signal="pressed" from="CanvasLayer/Win" to="." method="_on_Win_pressed"]
|
||||||
|
|||||||
Reference in New Issue
Block a user