Browse Source

loop & more

post-comp
Alexander Yakovlev 5 years ago
parent
commit
b260faa4ad
  1. 8
      game/story.coffee
  2. 2
      html/ru.html
  3. 2
      package.json

8
game/story.coffee

@ -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)

2
html/ru.html

@ -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>

2
package.json

@ -16,7 +16,7 @@
"gulp": "^3.8.11",
"gulp-coffee": "^2.3.3",
"gulp-concat": "^2.6.1",
"gulp-sass": "^2.1.1",
"gulp-sass": "^3.0.0",
"gulp-uglify": "^2.0.0",
"gulp-util": "^3.0.4",
"gulp-zip": "^3.0.2",

Loading…
Cancel
Save