2020-06-28 19:32:30 +02:00
|
|
|
@css(css/game.css)
|
2020-06-27 02:25:54 +02:00
|
|
|
|
2020-06-28 19:32:30 +02:00
|
|
|
@js(https://maps.googleapis.com/maps/api/js?key=<?= $_ENV['GOOGLE_MAPS_JS_API_KEY'] ?>)
|
|
|
|
@js(js/game.js)
|
2020-06-27 00:23:57 +02:00
|
|
|
|
2020-06-28 19:32:30 +02:00
|
|
|
@extends(templates/layout_full)
|
2020-06-27 00:23:57 +02:00
|
|
|
|
2021-03-19 22:59:09 +01:00
|
|
|
@section(pagemodal)
|
|
|
|
<div id="multi" class="modal">
|
|
|
|
<h2>Multiplayer (beta)</h2>
|
|
|
|
<p class="marginTop">Waiting for players...</p>
|
|
|
|
<div id="players" class="marginTop"></div>
|
|
|
|
<button id="startMultiGameButton" class="button fullWidth marginTop green">Start game</button>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
2020-06-28 19:32:30 +02:00
|
|
|
@section(subheader)
|
2021-03-21 14:37:08 +01:00
|
|
|
<span id="mapName" class="bold">Loading map...</span><!--
|
2021-03-19 22:59:09 +01:00
|
|
|
--><span>Round <span id="currentRound" class="bold"></span></span><!--
|
|
|
|
--><span>Score <span id="currentScoreSum" class="bold"></span></span>
|
2020-06-27 00:23:57 +02:00
|
|
|
@endsection
|
|
|
|
|
2020-06-28 19:32:30 +02:00
|
|
|
@section(main)
|
2021-04-04 13:41:15 +02:00
|
|
|
<div id="countdown">
|
|
|
|
<p id="countdownTime" class="mono bold"></p>
|
|
|
|
</div>
|
2020-06-25 14:02:39 +02:00
|
|
|
<div id="panoCover"></div>
|
|
|
|
<div id="panorama"></div>
|
|
|
|
<div id="showGuessButtonContainer">
|
|
|
|
<button id="showGuessButton" class="fullWidth">Show guess map</button>
|
2020-05-21 01:58:47 +02:00
|
|
|
</div>
|
2020-06-25 14:02:39 +02:00
|
|
|
<div id="guess">
|
|
|
|
<div id="closeGuessButtonContainer" class="buttonContainer marginBottom">
|
|
|
|
<button id="closeGuessButton" class="fullWidth gray">Close</button>
|
2020-05-21 01:58:47 +02:00
|
|
|
</div>
|
2020-06-25 14:02:39 +02:00
|
|
|
<div id="map"></div>
|
|
|
|
<div id="guessButtonContainer" class="buttonContainer marginTop">
|
|
|
|
<button id="guessButton" class="fullWidth" disabled>Guess</button>
|
2020-05-17 19:29:06 +02:00
|
|
|
</div>
|
2020-06-25 14:02:39 +02:00
|
|
|
<div id="resultInfo">
|
|
|
|
<div id="distanceInfo">
|
|
|
|
<p>You were <span id="distance" class="bold"></span> close.</p>
|
2021-04-04 01:07:34 +02:00
|
|
|
<p>You didn't guess in this round.</p>
|
2020-06-25 14:02:39 +02:00
|
|
|
<p class="bold">Game finished.</p>
|
|
|
|
</div>
|
|
|
|
<div id="scoreInfo">
|
|
|
|
<p>You earned <span id="score" class="bold"></span> points.</p>
|
|
|
|
<p>You got <span id="scoreSum" class="bold"></span> points in total.</p>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div id="scoreBarBase">
|
|
|
|
<div id="scoreBar"></div>
|
|
|
|
</div>
|
2020-05-20 01:05:46 +02:00
|
|
|
</div>
|
2020-05-23 02:07:50 +02:00
|
|
|
</div>
|
2020-06-25 14:02:39 +02:00
|
|
|
<div id="continueButtonContainer" class="buttonContainer marginTop">
|
|
|
|
<button id="continueButton" class="fullWidth">Continue</button>
|
|
|
|
<button id="showSummaryButton" class="fullWidth">Show summary</button>
|
|
|
|
<button id="startNewGameButton" class="fullWidth">Play this map again</button>
|
|
|
|
</div>
|
2020-05-31 00:21:29 +02:00
|
|
|
</div>
|
2020-06-27 00:23:57 +02:00
|
|
|
@endsection
|
|
|
|
|
2020-06-28 19:32:30 +02:00
|
|
|
@section(pageScript)
|
2020-05-31 00:21:29 +02:00
|
|
|
<script>
|
2021-03-20 21:21:40 +01:00
|
|
|
var multiUrl = '<?= $_ENV['MULTI_WS_URL'] ?>';
|
2021-03-19 22:59:09 +01:00
|
|
|
var roomId = <?= isset($roomId) ? '\'' . $roomId . '\'' : 'null' ?>;
|
|
|
|
var mapId = <?= isset($mapId) ? '\'' . $mapId . '\'' : 'null' ?>;
|
2020-05-31 00:21:29 +02:00
|
|
|
</script>
|
2020-06-27 00:23:57 +02:00
|
|
|
@endsection
|