mirror of
https://github.com/Oreolek/shooter.git
synced 2024-06-17 07:10:45 +03:00
WIP: ending fixes
- intro should have a replacer link - ending should come gradually
This commit is contained in:
parent
4d2243b851
commit
372b310566
BIN
audio/step1.mp3
Normal file
BIN
audio/step1.mp3
Normal file
Binary file not shown.
BIN
audio/step2.mp3
Normal file
BIN
audio/step2.mp3
Normal file
Binary file not shown.
|
@ -92,10 +92,27 @@ spend_clip = (character, system) ->
|
|||
if character.sandbox.killed > 15 and character.sandbox.seen_pacifist == 0
|
||||
system.doLink("pacifist")
|
||||
character.sandbox.seen_pacifist = 1
|
||||
if character.sandbox.killed > 21
|
||||
setTimeout( play_step(0.2), 1500)
|
||||
|
||||
play_step = (volume) ->
|
||||
rand = Math.random();
|
||||
step1 = document.getElementById("step1")
|
||||
step2 = document.getElementById("step2")
|
||||
audio = step1
|
||||
if rand > 0.5
|
||||
audio = step2
|
||||
audio.currentTime = 0
|
||||
audio.volume = volume
|
||||
audio.play()
|
||||
|
||||
situation 'start',
|
||||
content: "intro".l(),
|
||||
content: () ->
|
||||
link = textcycle("head".l(), "leg")
|
||||
return "intro".l()(link)
|
||||
choices: ["#shoot"],
|
||||
writers:
|
||||
leg: ""
|
||||
|
||||
situation "hit",
|
||||
content: (character, system, from) ->
|
||||
|
@ -247,7 +264,6 @@ situation "shoot_pacifist",
|
|||
character.sandbox.shot_pacifist = 1
|
||||
content: (character, system) ->
|
||||
link = textcycle("head".l(), "leg")
|
||||
console.log(link)
|
||||
return "shoot_pacifist".l()(link)
|
||||
writers:
|
||||
head: textcycle("head".l(), "leg")
|
||||
|
|
|
@ -18,7 +18,7 @@ module.exports.language =
|
|||
random_error: "Проинициализируйте Random с непустым зерном перед использованием."
|
||||
dice_string_error: "не могу интерпретировать вашу cтроку кубиков: '{string}'."
|
||||
erase_message: "Это навсегда удалит вашего персонажа и немедленно вернёт вас на старт игры. Вы уверены?"
|
||||
intro: """
|
||||
intro: (link) -> """
|
||||
-- Проклятье, они продолжают идти!
|
||||
|
||||
Узкий коридор, я и непрекращающаяся очередь сверкающих белоснежной кожей андроидов.
|
||||
|
@ -86,6 +86,7 @@ module.exports.language =
|
|||
* SpartanX109 - [Desert Eagle Fire](http://freesound.org/people/SpartanX109/sounds/89147/)
|
||||
* ngphil22 - [DEagle wCasing](http://freesound.org/people/ngphil22/sounds/233322/)
|
||||
* watupgroupie - [gunshots](http://freesound.org/people/watupgroupie/sounds/36815/)
|
||||
* Yoyodaman234 - [metal footstep 1](http://freesound.org/people/Yoyodaman234/sounds/223168/)
|
||||
* qubodup - [Bullet silhoettes](https://openclipart.org/detail/29029/bullet-silhouettes)
|
||||
"""
|
||||
finale_perfect: """
|
||||
|
|
|
@ -73,6 +73,8 @@
|
|||
<audio id="shot1" preload="auto"><source src="audio/fire.mp3" type='audio/mpeg; codecs="mp3"'></audio>
|
||||
<audio id="shot2" preload="auto"><source src="audio/casing.mp3" type='audio/mpeg; codecs="mp3"'></audio>
|
||||
<audio id="reload" preload="auto"><source src="audio/reload.mp3" type='audio/mpeg; codecs="mp3"'></audio>
|
||||
<audio id="step1" preload="auto"><source src="audio/step1.mp3" type='audio/mpeg; codecs="mp3"'></audio>
|
||||
<audio id="step2" preload="auto"><source src="audio/step2.mp3" type='audio/mpeg; codecs="mp3"'></audio>
|
||||
<script type="text/javascript" src="game/undum.js"></script>
|
||||
<script type="text/javascript" src="game/bundle.js"></script>
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue