You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.2 KiB
HTML
69 lines
2.2 KiB
HTML
4 years ago
|
<!DOCTYPE html>
|
||
|
<html lang="en-US">
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
||
|
<title>river bank</title>
|
||
|
<link rel="icon" href="imgs/river_bank/water.png">
|
||
|
<link rel="stylesheet" href="river_bank.css">
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="ground" class="invert"></div>
|
||
|
<!--<div class="ground_line invert"></div>-->
|
||
|
|
||
|
<!--characters-->
|
||
|
<div id="player_img" class="moving_duo"></div>
|
||
|
<img id="army" class="moving_duo" src="imgs/river_bank/army1.gif" height="270px">
|
||
|
<div class="sailor">
|
||
|
<img id="sailor_good" src="imgs/river_bank/sailor1.gif" height="110px">
|
||
|
<img id="sailor_warrior" src="imgs/river_bank/sailor2.gif" height="110px" style="display: none;">
|
||
|
</div>
|
||
|
|
||
|
<img id="river" src="imgs/river_bank/water.png">
|
||
|
<div class="boat moving_duo">
|
||
|
<img id="boat_empty" src="imgs/river_bank/boat.png" width="440px" >
|
||
|
<img id="boat_full" src="imgs/river_bank/boat_people.gif" width="440px" style="display: none;">
|
||
|
</div>
|
||
|
|
||
|
<!--baloons-->
|
||
|
<div class="bubble invert" style="display: none;">!!!</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<!--bottom text-->
|
||
|
<div class="text_container invert">
|
||
|
<div class="message1">
|
||
|
You are now at the River Bank. According to the newspaper, this is where the school trip started. <br>
|
||
|
<span class="instructions"><span class="instructions_arrow">→</span> Click on the ferryman to persuade him to take you to the Spring River Park to liberate the children!</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<script src="jquery.min.js"></script>
|
||
|
<script>
|
||
|
|
||
|
// saves game step in the local storage
|
||
|
window.onload = function() {
|
||
|
window.localStorage.setItem("river_bank","opened");
|
||
|
console.log ("river bank:",localStorage.river_bank);
|
||
|
$(".fighters").html("0");
|
||
|
}
|
||
|
|
||
|
//get player avatar from local storage
|
||
|
console.log (localStorage.myavatar)
|
||
|
var img = document.createElement("img");
|
||
|
img.src = localStorage.myavatar;
|
||
|
var player_img = document.querySelector("#player_img");
|
||
|
player_img.appendChild(img);
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</script>
|
||
|
|
||
|
<script type="text/javascript" src="index.js" ></script>
|
||
|
|
||
|
|
||
|
</body>
|