building the game

This commit is contained in:
Alexander Yakovlev 2017-12-11 17:35:00 +07:00
parent d7131f0da5
commit 00d9fc8629
3 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
{
"dependencies": {
"jquery": "^3.2.1",
"marked": "^0.3.7",
"salet": "^2.0.0"
},

View File

@ -1,4 +1,5 @@
marked = require('marked')
$ = require('jquery')
salet = require('salet')
salet.game_id = "8b0c371c-57f4-49b3-ae3c-cba07d1a9733"
@ -90,7 +91,7 @@ $(document).ready(() ->
salet.beginGame()
)
salet.init = () ->
$(document).on("init", () ->
@character.displayAll = false
@character.take(cloak)
@character.update_sidebar = () ->
@ -109,6 +110,7 @@ salet.init = () ->
if u != null
updateverb(u, $(obj).data("verb"))
pruneVerbs()
)
updateverb = (unit, verb) ->
if unit[verb]? or salet.character.displayAll

View File

@ -46,7 +46,6 @@
</div>
</div> <!-- End of div.page -->
<link rel='prefetch' href="https://code.jquery.com/jquery-3.1.1.min.js" />
<link rel='prefetch' href="https://cdnjs.cloudflare.com/ajax/libs/sigma.js/1.2.0/sigma.min.js" />
<link rel='prefetch' href="https://togetherjs.com/togetherjs-min.js" />
<script src="game/bundle.js"></script>