2016-07-28 16:39:58 -04:00
|
|
|
- var ready = !(view.state.get('errorMessage') || view.state.get('loading'))
|
|
|
|
|
|
|
|
.container-fluid.style-flat
|
|
|
|
#game-row.row
|
2016-07-12 18:12:11 -04:00
|
|
|
.col-xs-9
|
|
|
|
#canvas-wrapper
|
|
|
|
canvas(width=924, height=589)#webgl-surface
|
|
|
|
canvas(width=924, height=589)#normal-surface
|
|
|
|
|
2016-07-28 16:39:58 -04:00
|
|
|
#info-col.col-xs-3
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-body.text-center
|
|
|
|
if view.state.get('errorMessage')
|
|
|
|
.alert.alert-danger= view.state.get('errorMessage')
|
2016-07-13 16:28:54 -04:00
|
|
|
|
2016-07-28 16:39:58 -04:00
|
|
|
if view.level.id && view.session.id
|
|
|
|
h3.m-y-1= view.level.get('name')
|
|
|
|
h4 Created by #{view.session.get('creatorName')}
|
|
|
|
hr
|
|
|
|
|
|
|
|
if view.state.get('loading')
|
|
|
|
h1.m-y-1(data-i18n="common.loading")
|
|
|
|
.progress
|
|
|
|
.progress-bar(style="width: #{view.state.get('progress')}")
|
2016-07-13 14:43:25 -04:00
|
|
|
|
2016-07-28 16:39:58 -04:00
|
|
|
if ready
|
|
|
|
h3 Goals
|
|
|
|
for goalName in view.state.get('goalNames')
|
|
|
|
p= goalName
|
|
|
|
|
|
|
|
hr
|
|
|
|
|
|
|
|
h3 How to play:
|
|
|
|
p Use the mouse to control the hero!
|
|
|
|
p Click anywhere on the map to move to that location.
|
|
|
|
p Click on the ogres to attack them.
|
|
|
|
|
|
|
|
if ready
|
|
|
|
.panel-footer
|
|
|
|
- var playing = view.state.get('playing')
|
|
|
|
if playing
|
|
|
|
button#play-btn.btn.btn-lg.btn-burgandy.btn-block Restart Level
|
|
|
|
else
|
|
|
|
button#play-btn.btn.btn-lg.btn-forest.btn-block Play Level
|
2016-07-13 14:43:25 -04:00
|
|
|
|
2016-07-28 16:39:58 -04:00
|
|
|
#share-row.m-t-3
|
|
|
|
if ready
|
|
|
|
.panel.panel-default
|
|
|
|
#share-panel-body.panel-body
|
|
|
|
div#share-text-div.text-right
|
|
|
|
b(data-i18n='sharing.share_game')
|
|
|
|
input#copy-url-input.text-h4.semibold.form-control.input-lg(value=view.state.get('shareURL'))
|
|
|
|
div#copy-url-div
|
|
|
|
button#copy-url-btn.btn.btn-lg.btn-navy-alt
|
|
|
|
span(data-i18n='sharing.copy_url')
|
|
|
|
|
|
|
|
.panel-body
|
|
|
|
a#play-more-codecombat-btn.btn.btn-lg.btn-navy-alt.pull-right(href="/") Play More CodeCombat
|