Mummy end sounds
This commit is contained in:
parent
968a574a11
commit
098638f57c
21 changed files with 116 additions and 64 deletions
108
.editor_settings
108
.editor_settings
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
:code {
|
||||
:find {
|
||||
:term "testing"
|
||||
:term ""
|
||||
}
|
||||
}
|
||||
:search-in-files {
|
||||
|
|
@ -9,22 +9,6 @@
|
|||
}
|
||||
:workflow {
|
||||
:recent-files [
|
||||
[
|
||||
"/main/entername.collection"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/scoreboard.collection"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/level3.collection"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/debug.gui"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/entername.gui"
|
||||
:scene
|
||||
|
|
@ -45,10 +29,6 @@
|
|||
"/main/level2.collection"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/level1.collection"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/settings.gui"
|
||||
:scene
|
||||
|
|
@ -57,26 +37,6 @@
|
|||
"/main/settings.collection"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/settings.gui_script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/holdingamulet.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/player.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/graphics.atlas"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/main.collection"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/startscreen.gui_script"
|
||||
:code
|
||||
|
|
@ -93,14 +53,6 @@
|
|||
"/main/level3.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/curse.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/level1.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/entername.script"
|
||||
:code
|
||||
|
|
@ -113,10 +65,6 @@
|
|||
"/main/level1prescreen.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/level2prescreen_copy.collection"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/level3prescreen.script"
|
||||
:code
|
||||
|
|
@ -129,12 +77,64 @@
|
|||
"/main/startscreen.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/level2prescreen.collection"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/level2prescreen_copy.collection"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/level1.collection"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/settings.gui_script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/main.collection"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/main.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/level2prescreen.collection"
|
||||
"/main/player.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/amulet.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/level1.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/holdingamulet.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/curses.collection"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/curse.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/graphics.atlas"
|
||||
:scene
|
||||
]
|
||||
[
|
||||
"/main/mummy.script"
|
||||
:code
|
||||
]
|
||||
[
|
||||
"/main/level3.collection"
|
||||
:scene
|
||||
]
|
||||
]
|
||||
|
|
|
|||
BIN
Sounds/527650__fupicat__winsquare.wav
Normal file
BIN
Sounds/527650__fupicat__winsquare.wav
Normal file
Binary file not shown.
BIN
Sounds/mixkit-arcade-bonus-alert-767 (1).wav
Normal file
BIN
Sounds/mixkit-arcade-bonus-alert-767 (1).wav
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
‡y
|
||||
ïxlocal Movement = {
|
||||
™z
|
||||
<EFBFBD>zlocal Movement = {
|
||||
STILL_LEFT = "STILL_LEFT",
|
||||
STILL_RIGHT = "STILL_RIGHT",
|
||||
MOVING_LEFT = "MOVING_LEFT",
|
||||
|
|
@ -375,7 +375,11 @@ function on_message(self, message_id, message, sender)
|
|||
end
|
||||
if message.group == hash("mummy") then
|
||||
msg.post("main:/controller#main", "LevelCompleted")
|
||||
msg.post("main:/controller#main", "play mummy sound")
|
||||
--print("collision with mummy")
|
||||
if self.current_level == "level3" then
|
||||
msg.post("/mummy#mummy", "explode")
|
||||
end
|
||||
end
|
||||
end
|
||||
if message_id == hash("curse_dying_reply") then
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -17,7 +17,7 @@ embedded_instances {
|
|||
"}\\n"
|
||||
"\"\n"
|
||||
" position {\n"
|
||||
" z: 0.7\n"
|
||||
" z: 0.9\n"
|
||||
" }\n"
|
||||
"}\n"
|
||||
""
|
||||
|
|
|
|||
|
|
@ -980,6 +980,7 @@ embedded_instances {
|
|||
"mask: \\\"ladder\\\"\\n"
|
||||
"mask: \\\"curse\\\"\\n"
|
||||
"mask: \\\"amulet\\\"\\n"
|
||||
"mask: \\\"mummy\\\"\\n"
|
||||
"embedded_collision_shape {\\n"
|
||||
" shapes {\\n"
|
||||
" shape_type: TYPE_BOX\\n"
|
||||
|
|
@ -1297,6 +1298,31 @@ embedded_instances {
|
|||
" z: 0.63\n"
|
||||
" }\n"
|
||||
"}\n"
|
||||
"embedded_components {\n"
|
||||
" id: \"collisionobject\"\n"
|
||||
" type: \"collisionobject\"\n"
|
||||
" data: \"type: COLLISION_OBJECT_TYPE_KINEMATIC\\n"
|
||||
"mass: 0.0\\n"
|
||||
"friction: 0.1\\n"
|
||||
"restitution: 0.5\\n"
|
||||
"group: \\\"mummy\\\"\\n"
|
||||
"mask: \\\"player\\\"\\n"
|
||||
"embedded_collision_shape {\\n"
|
||||
" shapes {\\n"
|
||||
" shape_type: TYPE_BOX\\n"
|
||||
" position {\\n"
|
||||
" }\\n"
|
||||
" rotation {\\n"
|
||||
" }\\n"
|
||||
" index: 0\\n"
|
||||
" count: 3\\n"
|
||||
" }\\n"
|
||||
" data: 33.058865\\n"
|
||||
" data: 48.403397\\n"
|
||||
" data: 10.0\\n"
|
||||
"}\\n"
|
||||
"\"\n"
|
||||
"}\n"
|
||||
""
|
||||
position {
|
||||
z: 0.2
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ embedded_instances {
|
|||
"}\\n"
|
||||
"\"\n"
|
||||
" position {\n"
|
||||
" z: 0.7\n"
|
||||
" z: 0.9\n"
|
||||
" }\n"
|
||||
"}\n"
|
||||
""
|
||||
|
|
|
|||
|
|
@ -192,6 +192,12 @@ embedded_instances {
|
|||
" data: \"sound: \\\"/Sounds/350905__cabled_mess__jump_c_05.wav\\\"\\n"
|
||||
"\"\n"
|
||||
"}\n"
|
||||
"embedded_components {\n"
|
||||
" id: \"mummy_sound\"\n"
|
||||
" type: \"sound\"\n"
|
||||
" data: \"sound: \\\"/Sounds/mixkit-arcade-bonus-alert-767 (1).wav\\\"\\n"
|
||||
"\"\n"
|
||||
"}\n"
|
||||
""
|
||||
}
|
||||
embedded_instances {
|
||||
|
|
|
|||
|
|
@ -2,9 +2,12 @@ function init(self)
|
|||
msg.post(".", "acquire_input_focus")
|
||||
-- show the title screen when the game is loaded
|
||||
|
||||
msg.post("#startscreen_proxy", "load")
|
||||
-- msg.post("#startscreen_proxy", "load")
|
||||
msg.post("#level3prescreen_proxy", "load")
|
||||
self.collection_to_load = ""
|
||||
self.current_collection = "#startscreen_proxy"
|
||||
-- self.current_collection = "#startscreen_proxy"
|
||||
self.current_collection = "#level3prescreen_proxy"
|
||||
|
||||
|
||||
--msg.post("#level2_proxy", "load")
|
||||
--self.collection_to_load = ""
|
||||
|
|
@ -126,14 +129,17 @@ function on_message(self, message_id, message, sender)
|
|||
elseif message_id == hash("show level1prescreen") then
|
||||
msg.post(self.current_collection, "unload")
|
||||
self.collection_to_load = "#level1prescreen_proxy"
|
||||
self.hide_banner = true
|
||||
|
||||
elseif message_id == hash("show level2 screen") then
|
||||
msg.post(self.current_collection, "unload")
|
||||
self.collection_to_load = "#level2_proxy"
|
||||
self.hide_banner = false
|
||||
|
||||
elseif message_id == hash("show level3 screen") then
|
||||
msg.post(self.current_collection, "unload")
|
||||
self.collection_to_load = "#level3_proxy"
|
||||
self.hide_banner = false
|
||||
|
||||
elseif message_id == hash("send_table") then
|
||||
msg.post("scoreboard:/scoreboard#scoreboard", "highscore_table", { high_scores = self.highscore_table})
|
||||
|
|
@ -150,10 +156,13 @@ function on_message(self, message_id, message, sender)
|
|||
self.current_level = "level2"
|
||||
msg.post(self.current_collection, "unload")
|
||||
self.collection_to_load = "#level2prescreen_proxy"
|
||||
self.hide_banner = true
|
||||
|
||||
elseif self.current_collection == "#level2_proxy" then
|
||||
self.current_level = "level3"
|
||||
msg.post(self.current_collection, "unload")
|
||||
self.collection_to_load = "#level3prescreen_proxy"
|
||||
self.hide_banner = true
|
||||
end
|
||||
|
||||
elseif message_id == hash("LifeLost") then
|
||||
|
|
@ -175,6 +184,8 @@ function on_message(self, message_id, message, sender)
|
|||
sound.play("sound#amulet_sound", {speed = 1, gain = (self.sounds_volume - 547)/(887 - 547)})
|
||||
elseif message_id == hash("play dying sound") then
|
||||
sound.play("sound#dying_sound", {speed = 1, gain = (self.sounds_volume - 547)/(887 - 547)})
|
||||
elseif message_id == hash("play mummy sound") then
|
||||
sound.play("sound#mummy_sound", {speed = 1, gain = (self.sounds_volume - 547)/(887 - 547)})
|
||||
elseif message_id == hash("play curse dying sound") then
|
||||
sound.play("sound#curse_dying_sound", {speed = 0.5, gain = (self.sounds_volume - 547)/(887 - 547)})
|
||||
elseif message_id == hash("play jump sound") then
|
||||
|
|
|
|||
|
|
@ -50,9 +50,10 @@ function fixed_update(self, dt)
|
|||
end
|
||||
|
||||
function on_message(self, message_id, message, sender)
|
||||
-- Add message-handling code here
|
||||
-- Learn more: https://defold.com/manuals/message-passing/
|
||||
-- Remove this function if not needed
|
||||
if message_id == hash("explode") then
|
||||
sprite.play_flipbook("#still", hash("explosion"))
|
||||
--msg.post("mummy", "disable")
|
||||
end
|
||||
end
|
||||
|
||||
function on_input(self, action_id, action)
|
||||
|
|
|
|||
|
|
@ -373,7 +373,11 @@ function on_message(self, message_id, message, sender)
|
|||
end
|
||||
if message.group == hash("mummy") then
|
||||
msg.post("main:/controller#main", "LevelCompleted")
|
||||
msg.post("main:/controller#main", "play mummy sound")
|
||||
--print("collision with mummy")
|
||||
if self.current_level == "level3" then
|
||||
msg.post("/mummy#mummy", "explode")
|
||||
end
|
||||
end
|
||||
end
|
||||
if message_id == hash("curse_dying_reply") then
|
||||
|
|
|
|||
Loading…
Reference in a new issue