|
|
@ -26,12 +26,27 @@
|
|
|
|
<img id="flower5" src="imgs/park/flower1.gif" height="5%">
|
|
|
|
<img id="flower5" src="imgs/park/flower1.gif" height="5%">
|
|
|
|
<img id="grass1" src="imgs/park/grass1.gif" height="75vw">
|
|
|
|
<img id="grass1" src="imgs/park/grass1.gif" height="75vw">
|
|
|
|
<img id="grass2" src="imgs/park/grass1.gif" height="75vw">
|
|
|
|
<img id="grass2" src="imgs/park/grass1.gif" height="75vw">
|
|
|
|
|
|
|
|
<img id="statue" src="imgs/park/statue.gif" height="22%">
|
|
|
|
|
|
|
|
<img id="tree4" src="imgs/park/tree4.gif" height="25%">
|
|
|
|
|
|
|
|
<img id="flower6" src="imgs/park/flower1.1.gif" height="5%">
|
|
|
|
|
|
|
|
<img id="flower7" src="imgs/park/flower3.1.gif" height="6%">
|
|
|
|
|
|
|
|
<img id="flower8" src="imgs/park/flower3.1.gif" height="6%">
|
|
|
|
|
|
|
|
<img id="tree5" src="imgs/park/tree1.gif" height="30%">
|
|
|
|
|
|
|
|
<!-- <img id="dog_guy" src="imgs/park/guy_dog.gif" height="13%">-->
|
|
|
|
|
|
|
|
<img id="sport1" src="imgs/park/fitness1.gif" height="10%">
|
|
|
|
|
|
|
|
<img id="sport2" src="imgs/park/fitness2.gif" height="10%">
|
|
|
|
|
|
|
|
<img id="newspaper_seller" src="imgs/park/newspaper_seller.gif" height="15%">
|
|
|
|
|
|
|
|
<img id="woman" src="imgs/park/woman.gif" height="19%">
|
|
|
|
|
|
|
|
<img id="ned" src="imgs/park/ned.gif" height="15%">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="woman_bubble" style="display: none;">I don't know, you should try to ask the news vendor.</div>
|
|
|
|
|
|
|
|
<div class="vendor_bubble" style="display: none;">I sold a copy to a guy not so long ago. He must be still around.</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="text_container">
|
|
|
|
<div class="text_container">
|
|
|
|
<div class="message1 instructions">
|
|
|
|
<div class="message1 instructions">
|
|
|
|
Move around the park with the arrows ←↑↓→ and click on the people to talk with them.
|
|
|
|
Move around the park with the arrows ←↑↓→ and click on the people to ask them if they saw who left the newspaper on the bench.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -98,13 +113,20 @@ $(document).keydown(function(e) {
|
|
|
|
player_img.appendChild(img);
|
|
|
|
player_img.appendChild(img);
|
|
|
|
|
|
|
|
|
|
|
|
//get player name from local storage
|
|
|
|
//get player name from local storage
|
|
|
|
document.querySelector('#player_name').innerHTML =localStorage.playerName;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#woman").click (function(){
|
|
|
|
|
|
|
|
$(".woman_bubble").toggle();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#newspaper_seller").click (function(){
|
|
|
|
|
|
|
|
$(".vendor_bubble").toggle();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="index.js" ></script>
|
|
|
|
<script type="text/javascript" src="index.js" ></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</body>
|