Commit b260faa4 authored by Alexander Yakovlev's avatar Alexander Yakovlev

loop & more

parent ab131fdf
......@@ -8,7 +8,7 @@ room "start",
state.setTag("weather", "warm")
audio = document.getElementById("bgsound")
audio.currentTime = 0
audio.volume = 0.5
audio.volume = 1.0
audio.play()
return "intro".l()
dsc: () -> "dsc".l(Improv, state)
......@@ -22,9 +22,9 @@ room "start",
salet.character.killed = true
salet.character.newBeat()
salet.goTo("killed")
if (salet.character.book = true and salet.character.lastBeat() == 2)
if (salet.character.book == true and salet.character.lastBeat() == 2)
salet.view.write "**"+"reset_book".l()+"**"
if (salet.character.book = true and salet.character.lastBeat() > 3)
if (salet.character.book == true and salet.character.lastBeat() > 3)
salet.character.book = false
salet.character.newBeat()
salet.view.write "**"+"reset_book_ends".l()+"**"
......@@ -41,7 +41,7 @@ room "start",
return false
units:[
unit "debug",
dsc: "{{Пропустить интро}}"
dsc: "<center>{{Пропустить всё до загадок}}</center>"
act: () ->
state.setTag("weather", "cold")
salet.here().take(book)
......
......@@ -40,7 +40,7 @@
<!-- CDN JS Libraries -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.5/marked.min.js" integrity="sha384-QXBtGc4014gU26HdCwzgy8TVO+FHSSE4+EvPPiSTpdE9w0KyJy1ocfiIbBl1HLq7" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js" crossorigin="anonymous"></script>
<audio id="bgsound" preload="auto"><source src="audio/bgr.mp3" type='audio/mpeg; codecs="mp3"'></audio>
<audio id="bgsound" preload="auto" loop="loop"><source src="audio/bgr.mp3" type='audio/mpeg; codecs="mp3"'></audio>
<script type="text/javascript" src="game/bundle.js"></script>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment