master
*anna* 3 years ago
parent 266ce47035
commit 143d6beb3a

BIN
tree/imgs/.DS_Store vendored

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

@ -54,10 +54,10 @@ font-size: 4vw;
color: black;
font-family: jolybolditalic;
text-align: center;
background-color: #c94dff;
-webkit-box-shadow: 0px 0px 8px 6px #c94dff;
-moz-box-shadow: 0px 0px 8px 6px #c94dff;
box-shadow: 0px 0px 8px 6px #c94dff;
background-color: #d166ff;
-webkit-box-shadow: 0px 0px 8px 8px #d166ff;
-moz-box-shadow: 0px 0px 8px 8px #d166ff;
box-shadow: 0px 0px 8px 8px #d166ff;
}
@ -72,8 +72,8 @@ button {
cursor:pointer;
}
button:hover {
border: 0.25vw #c94dff solid;
color: #c94dff;
border: 0.25vw #d166ff solid;
color: #d166ff;
}
span.button_text{
@ -121,11 +121,11 @@ input.avatar {
height: 0;
}
input:checked + .radio__control {
background-color: #c94dff;
border: #c94dff;
-webkit-box-shadow: 0px 0px 8px 6px #c94dff;
-moz-box-shadow: 0px 0px 8px 6px #c94dff;
box-shadow: 0px 0px 8px 6px #c94dff;
background-color: #d166ff;
border: #d166ff;
-webkit-box-shadow: 0px 0px 8px 8px #d166ff;
-moz-box-shadow: 0px 0px 8px 8px #d166ff;
box-shadow: 0px 0px 8px 8px #d166ff;
}
.radio__control {

@ -39,6 +39,7 @@
body {
font-family: jolyregular;
font-size: 1.8vw;
overflow:hidden;
}
#ground {
@ -100,11 +101,24 @@ span.button_text{
font-size: 1.6vw;
padding: 8px;
}
/*
#player_img {
top: 55%;
left: 38%;
position:absolute;
}*/
.player_land{
top: 55%;
left: 38%;
position:absolute;
z-index:4;
}
.player_boat {
top: 19%;
left: 11%;
position:absolute;
z-index:4;
}
.invert{
@ -114,7 +128,7 @@ span.button_text{
/*images*/
#river{
top:16%;
top:18%;
left: 0px;
max-width:100%;
height: inherit;
@ -123,12 +137,13 @@ span.button_text{
}
.boat{
top:6%;
left: 0%;
top:4%;
left: 2%;
position: absolute;
z-index: 1;
}
#army{
top:42%;
left: 8%;
@ -136,11 +151,12 @@ span.button_text{
z-index: 3;
}
.sailor{
top:50%;
#ferryman {
top:46%;
left: 48%;
position: absolute;
z-index: 3;
cursor: pointer;
}
@ -188,6 +204,49 @@ span.button_text{
margin-left: -8.5px;
display: block;
}
.bubble2 {
top:38%;
left:53%;
position: absolute;
background: #ffffff;
color: #000000;
font-family: sinistre;
font-size: 16px;
text-align: center;
width: 40px;
height: 18px;
border-radius: 10px;
padding: 18px;
border: #000000 solid 1px;
z-index: 10;
}
.bubble2:after {
content: '';
position: absolute;
display: block;
width: 0;
z-index: 1;
border-style: solid;
border-width: 20px 15px 0 0;
border-color: #ffffff transparent transparent transparent;
bottom: -20px;
left: 42%;
margin-left: -7.5px;
}
.bubble2:before {
content: '';
position: absolute;
width: 0;
z-index: 0;
border-style: solid;
border-width: 21px 16px 0 0;
border-color: #000000 transparent transparent transparent;
bottom: -22px;
left: 42%;
margin-left: -8.5px;
display: block;
}

@ -13,12 +13,11 @@
<!--<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>
<div id="player_img" class="player_land moving_duo"></div>
<img id="army" src="imgs/river_bank/army1.gif" height="270px">
<img id="ferryman" src="imgs/river_bank/ferryman.gif" height="120px">
<img id="river" src="imgs/river_bank/water.png">
<div class="boat moving_duo">
@ -28,6 +27,8 @@
<!--baloons-->
<div class="bubble invert" style="display: none;">!!!</div>
<div class="bubble2 invert" style="display: none;">!!!</div>
@ -36,7 +37,7 @@
<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>
<span class="instructions"><span class="instructions_arrow"></span> Click on the ferryman to persuade him to show you the way to the Spring River Park and liberate the children!</span>
</div>
</div>
@ -57,7 +58,34 @@
img.src = localStorage.myavatar;
var player_img = document.querySelector("#player_img");
player_img.appendChild(img);
// boat animation
$("#ferryman").click (function(){
console.log("ciao");
$(".bubble").show();
setTimeout( function() {
$(".bubble2").show();
setTimeout( function() {
$(".bubble2,.bubble").hide();
setTimeout( function() {
$("#boat_empty, #army, #ferryman").hide();
$("#boat_full").show();
$("#player_img").removeClass("player_land");
//$("#player_img").addClass("player_boat");
$("#player_img").hide();
$(".boat").animate({ left: "100%" }, {
duration: 2500 })
.promise().done(function(){
location.href='spring_river.html';
});
}, 1000);
}, 1000);
}, 1000);
});

@ -0,0 +1,675 @@
@font-face {
font-family: sinistre;
src: url(fonts/Sinistre-SCaroline.woff),
url(fonts/Sinistre-SCaroline.otf);
}
@font-face {
font-family: jolybolditalic;
src: url(fonts/JolyDisplay-BoldDisplayItalic.woff),
url(fonts/JolyDisplay-BoldDisplayItalic.otf);
}
@font-face {
font-family: jolyregularitalic;
src: url(fonts/JolyDisplay-RegularDisplayItalic.woff),
url(fonts/JolyDisplay-RegularDisplayItalic.otf);
}
@font-face {
font-family: jolyregular;
src: url(fonts/JolyDisplay-RegularDisplay.woff),
url(fonts/JolyDisplay-RegularDisplay.otf);
}
@font-face {
font-family: jolybold;
src: url(fonts/JolyDisplay-BoldDisplay.woff),
url(fonts/JolyDisplay-BoldDisplay.otf);
}
.invert{
filter: invert(100%);
}
body {
font-family: jolyregular;
font-size: 1.8vw;
overflow-y: hidden;
}
.instructions{
font-family:jolyregularitalic;
}
span.instructions_arrow{
padding-left:40px;
font-size: 2.4vw;
font-family:jolybolditalic;
}
::-moz-selection { /* Code for Firefox */
background: transparent;
}
::selection {
background: transparent;
}
div#player_img {
bottom: 20%;
left: 12%;
position:absolute ;
z-index: 3;
}
#ground_color {
width: 5100px;
height: 120%;
position:fixed;
margin:-100px;
background-color: white;
z-index:-10;
}
#ground{
position:absolute;
height:100%;
width:5000px;
}
#groundline {
position: fixed;
top:130px;
height:0%;
width: 100%;
border-top: 1px solid;
z-index:1:
}
div.text_container {
bottom: 40px;
left:40px;
right:40px;
position:fixed;
margin: auto;
line-height: 1.4em;
}
button{
-webkit-appearance: none;
background-color: white;
border: 0.1em black solid;
border-radius: 25em;
color:black;
cursor:pointer;
font-family: jolybolditalic;
}
button:hover{
border: 0.1em transparent solid;
-webkit-box-shadow: 0px 0px 8px 1px black;
-moz-box-shadow: 0px 0px 8px 1px black;
box-shadow: 0px 0px 8px 1px black;
}
span.button_text{
font-size: 1.6vw;
padding: 8px;
}
#player_name{
font-family: jolybolditalic;
}
/*images*/
#bench {
bottom: 32%;
left: 6%;
position: absolute;
z-index:2;
}
#tree1 {
top:8%;
left: 10%;
position: absolute;
z-index:0;
}
#tree2 {
bottom:40%;
left: 2.5%;
position: absolute;
z-index:2;
}
#tree3 {
bottom:45%;
left: 18%;
position: absolute;
z-index:2;
}
#flower1 {
bottom:68%;
left: 5%;
position: absolute;
z-index:0;
}
#flower2{
bottom: 28%;
left: 1.5%;
position: absolute;
z-index:17;
}
#flower3{
bottom: 50%;
left: 13%;
position: absolute;
z-index:2;
}
#flower4{
bottom: 35%;
left: 22%;
position: absolute;
z-index:2;
}
#flower5{
bottom: 65%;
left: 17%;
position: absolute;
z-index:0;
}
#grass1{
bottom: 15%;
left: 40%;
position: absolute;
z-index:4;
}
#grass2{
bottom: 15%;
left: 82%;
position: absolute;
z-index:4;
}
#statue{
top: 5%;
left: 60%;
position: absolute;
z-index:0;
}
#tree4{
bottom: 20%;
left: 70%;
position: absolute;
z-index:4;
}
#flower6{
bottom: 65%;
left: 80%;
position: absolute;
z-index:2;
}
#flower7{
bottom: 50%;
left: 55%;
position: absolute;
z-index:0;
}
#flower8{
bottom: 30%;
left: 97%;
position: absolute;
z-index:1;
}
#dog{
bottom: 21%;
left: 38%;
position: absolute;
z-index:4;
cursor:pointer;
}
#tree5{
top: 10%;
right: 4%;
position: absolute;
z-index:1;
}
#flower9{
top: 23%;
left: 32%;
position: absolute;
cursor: pointer;
z-index:0;
}
/* looking for ned scene*/
#woman{
top: 20%;
left: 30%;
position: absolute;
cursor: pointer;
z-index:0;
}
#newspaper_seller{
bottom: 55%;
left: 47%;
position: absolute;
cursor: pointer;
z-index:0;
}
#sport1{
bottom: 20%;
left: 66%;
position: absolute;
cursor: pointer;
z-index:5;
}
#sport2{
bottom: 65%;
left: 63%;
position: absolute;
cursor: pointer;
z-index:0;
}
#ned {
top: 25%;
right: 8%;
position: absolute;
cursor: pointer;
z-index:2;
}
.woman_bubble {
top:13%;
left: 31%;
position: absolute;
background: #ffffff;
color: #000000;
font-family: sinistre;
font-size: 16px;
line-height: 17px;
text-align: center;
width: 135px;
height: 55px;
border-radius: 10px;
padding: 18px;
border: #000000 solid 1px;
z-index: 50;
}
.woman_bubble:after {
content: '';
position: absolute;
display: block;
width: 0;
z-index: 1;
border-style: solid;
border-width: 24px 20px 0 0;
border-color: #ffffff transparent transparent transparent;
bottom: -24px;
left: 15%;
margin-left: -10px;
}
.woman_bubble:before {
content: '';
position: absolute;
width: 0;
z-index: 0;
border-style: solid;
border-width: 25px 21px 0 0;
border-color: #000000 transparent transparent transparent;
bottom: -26px;
left: 15%;
margin-left: -11px;
display: block;
}
.dog_bubble {
bottom:33%;
left: 40%;
position: absolute;
background: #ffffff;
color: #000000;
font-family: sinistre;
font-size: 16px;
text-align: center;
width: 40px;
height: 18px;
border-radius: 10px;
padding: 18px;
border: #000000 solid 1px;
z-index: 50;
}
.dog_bubble:after {
content: '';
position: absolute;
display: block;
width: 0;
z-index: 1;
border-style: solid;
border-width: 20px 15px 0 0;
border-color: #ffffff transparent transparent transparent;
bottom: -20px;
left: 42%;
margin-left: -7.5px;
}
.dog_bubble:before {
content: '';
position: absolute;
width: 0;
z-index: 0;
border-style: solid;
border-width: 21px 16px 0 0;
border-color: #000000 transparent transparent transparent;
bottom: -22px;
left: 42%;
margin-left: -8.5px;
display: block;
}
.vendor_bubble {
bottom:75%;
left: 43%;
position: absolute;
background: #ffffff;
color: #000000;
font-family: sinistre;
font-size: 16px;
line-height: 17px;
text-align: center;
width: 160px;
height: 55px;
border-radius: 10px;
padding: 18px;
border: #000000 solid 1px;
z-index: 50;
}
.vendor_bubble:after {
content: '';
position: absolute;
display: block;
width: 0;
z-index: 1;
border-style: solid;
border-width: 0 20px 24px 0;
border-color: transparent #ffffff transparent transparent;
bottom: -24px;
left: 76%;
margin-left: -10px;
}
.vendor_bubble:before {
content: '';
position: absolute;
width: 0;
z-index: 0;
border-style: solid;
border-width: 0 21px 25px 0;
border-color: transparent #000000 transparent transparent;
bottom: -26px;
left: 76%;
margin-left: -10px;
display: block;
}
.fit2_bubble {
bottom:30%;
left: 65%;
position: absolute;
background: #ffffff;
color: #000000;
font-family: sinistre;
font-size: 16px;
text-align: center;
width: 40px;
height: 18px;
border-radius: 10px;
padding: 18px;
border: #000000 solid 1px;
z-index: 50;
}
.fit2_bubble:after {
content: '';
position: absolute;
display: block;
width: 0;
z-index: 1;
border-style: solid;
border-width: 0 15px 20px 0;
border-color: transparent #ffffff transparent transparent;
bottom: -20px;
left: 70%;
margin-left: -7.5px;
}
.fit2_bubble:before {
content: '';
position: absolute;
width: 0;
z-index: 0;
border-style: solid;
border-width: 0 16px 21px 0;
border-color: transparent #000000 transparent transparent;
bottom: -22px;
left: 70%;
margin-left: -7.5px;
display: block;
}
.fit1_bubble {
bottom:75%;
left: 65%;
position: absolute;
background: #ffffff;
color: #000000;
font-family: sinistre;
font-size: 16px;
text-align: center;
width: 40px;
height: 18px;
border-radius: 10px;
padding: 18px;
border: #000000 solid 1px;
z-index: 50;
}
.fit1_bubble:after {
content: '';
position: absolute;
display: block;
width: 0;
z-index: 1;
border-style: solid;
border-width: 20px 15px 0 0;
border-color: #ffffff transparent transparent transparent;
bottom: -20px;
left: 42%;
margin-left: -7.5px;
}
.fit1_bubble:before {
content: '';
position: absolute;
width: 0;
z-index: 0;
border-style: solid;
border-width: 21px 16px 0 0;
border-color: #000000 transparent transparent transparent;
bottom: -22px;
left: 42%;
margin-left: -8.5px;
display: block;
}
.ned_bubble1 {
top:3%;
left: 88%;
position: absolute;
background: #ffffff;
color: #000000;
font-family: sinistre;
font-size: 16px;
line-height: 17px;
text-align: center;
width: 150px;
height: 50px;
border-radius: 10px;
padding: 18px;
border: #000000 solid 1px;
z-index:50;
}
.ned_bubble1:after {
content: '';
position: absolute;
display: block;
width: 0;
z-index: 1;
border-style: solid;
border-width: 0 15px 20px 0;
border-color: transparent #ffffff transparent transparent;
bottom: -20px;
left: 85%;
margin-left: -7.5px;
}
.ned_bubble1:before {
content: '';
position: absolute;
width: 0;
z-index: 0;
border-style: solid;
border-width: 0 16px 21px 0;
border-color: transparent #000000 transparent transparent;
bottom: -22px;
left: 85%;
margin-left: -7.5px;
display: block;
}
.ned_bubble2 {
top:17%;
left: 84%;
position: absolute;
background: #ffffff;
color: #000000;
font-family: sinistre;
font-size: 16px;
line-height: 17px;
text-align: center;
width: 200px;
height: 160px;
border-radius: 10px;
padding: 18px;
border: #000000 solid 1px;
z-index:50;
}
.ned_bubble2:after {
content: '';
position: absolute;
display: block;
width: 0;
z-index: 1;
border-style: solid;
border-color: transparent #ffffff;
border-width: 15px 0 15px 25px;
top: 49%;
right: -25px;
margin-top: -15px;
}
.ned_bubble2:before {
content: '';
position: absolute;
width: 0;
z-index: 0;
border-style: solid;
border-color: transparent #000000;
border-width: 16px 0 16px 26px;
top: 49%;
right: -26.5px;
margin-top: -16px;
display: block;
}
.ned_bubble3 {
top:50%;
left: 90%;
position: absolute;
background: #ffffff;
color: #000000;
font-family: sinistre;
font-size: 16px;
line-height: 17px;
text-align: center;
width: 220px;
height: 140px;
border-radius: 10px;
padding: 18px;
border: #000000 solid 1px;
z-index:50;
}
.ned_bubble3:after {
content: '';
position: absolute;
display: block;
width: 0;
z-index: 1;
border-style: solid;
border-color: #ffffff transparent;
border-width: 0 15px 25px;
top: -25px;
left: 14%;
margin-left: -15px;
}
.ned_bubble3:before {
content: '';
position: absolute;
width: 0;
z-index: 0;
border-style: solid;
border-color: #000000 transparent;
border-width: 0 16px 26px;
top: -26.5px;
left: 14%;
margin-left: -16px;
display: block;
}
/* hide scroll bar */
/* width */
::-webkit-scrollbar {
color:black;
}
/* Track */
::-webkit-scrollbar-track {
background: black;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: black;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: black;
}

@ -0,0 +1,186 @@
<!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>spring river</title>
<link rel="icon" href="imgs/park/tree4.gif"">
<link rel="stylesheet" href="spring_river.css">
</head>
<body>
<div id="ground_color" class="invert"></div>
<div id="groundline" class="invert"></div>
<div id="ground">
<div id="player_img"></div>
<img id="fighter1" src="imgs/spring_river/fighter1.gif" height="120px">
<img id="fighter2" src="imgs/spring_river/fighter2.gif" height="120px">
<img id="fighter3" src="imgs/spring_river/fighter3.gif" height="120px">
<img id="fighter4" src="imgs/spring_river/fighter4.gif" height="120px">
<img id="fighter5" src="imgs/spring_river/fighter5.gif" height="120px">
<img id="fighter6" src="imgs/spring_river/fighter6.gif" height="120px">
<img id="fighter7" src="imgs/spring_river/fighter7.gif" height="120px">
<img id="fighter8" src="imgs/spring_river/fighter8.gif" height="120px">
<img id="tree1" src="imgs/park/tree1.gif" height="200px">
<img id="tree2" src="imgs/park/tree4.gif" height="160px">
<img id="tree3" src="imgs/park/tree4.gif" height="160px">
<img id="flower1" src="imgs/park/flower1.gif" height="30px">
<img id="flower2" src="imgs/park/flower3.gif" height="40px">
<img id="flower3" src="imgs/park/flower3.1.gif" height="40px">
<img id="flower4" src="imgs/park/flower1.1.gif" height="30px">
<img id="flower5" src="imgs/park/flower1.gif" height="30px">
<img id="grass1" src="imgs/park/grass1.gif" height="90px">
<img id="tree4" src="imgs/park/tree4.gif" height="160px">
<img id="flower6" src="imgs/park/flower1.1.gif" height="30px">
<img id="flower7" src="imgs/park/flower3.1.gif" height="40px">
<img id="flower8" src="imgs/park/flower3.1.gif" height="40px">
<img id="tree5" src="imgs/park/tree1.gif" height="230px">
</div>
<div class="text_container invert" >
<div class="message1">
not yet :(
</div>
<div class="message2" style="display: none;">
</div>
<div class="message3" style="display: none;">
</div>
</div>
<script src="jquery.min.js"></script>
<script>
// player moves
//adjust camera scroll
var $div = $('#player_img');
var screenLeftMin = 200;
var screenLeftMax = 870;
function adjustScroll() {
var playerLeft = parseInt($div.css("left"));
var scrollLeft = $(document).scrollLeft();
var screenLeft = playerLeft - scrollLeft;
console.log ("screenleft:", screenLeft);
if (screenLeft > screenLeftMax ) {
$(document).scrollLeft(playerLeft - screenLeftMax)
}
if (screenLeft < screenLeftMin ) {
$(document).scrollLeft(playerLeft - screenLeftMin)
}
}
//move the character
$(document).keydown(function(e) {
var offset = $div.position();
console.log("offset:", offset);
/* change z-index
var parent_height = $("#ground").height();
var top_val_px = $div.css('top');
var top_val_only = parseInt(top_val_px);
var top_Percentage = (top_val_only/parent_height) * 100;
console.log ("top %", top_Percentage);
if (top_Percentage > 65) {
$div.css ("zIndex", 5)
}
if (top_Percentage < 55 && top_Percentage > 39) {
$div.css ("zIndex", 4)
}
if (top_Percentage < 39) {
$div.css ("zIndex", 1)
}
*/
switch (e.which) {
case 37:
offset.left -= 20;
console.log("left");
break;
case 38:
offset.top -= 20;
console.log("top");
break;
case 39:
offset.left += 20;
console.log("right");
break;
case 40:
offset.top += 20;
console.log("down");
break;
}
//check the offset and prevent the character to exceed the screen dimension
if (offset.left < 80) {
offset.left = 80;
}
if (offset.left > $("#ground").width() - 250) {
offset.left = $("#ground").width() - 250;
}
if (offset.top < 130) {
offset.top = 130;
}
if (offset.top > $("#ground").height() - 250) {
offset.top = $("#ground").height() - 250;
}
$div.css("left", offset.left);
$div.css("top", offset.top);
e.preventDefault();
adjustScroll();
})
// saves game step in the local storage
window.onload = function() {
window.localStorage.setItem("spring_river","opened")
console.log ("Spring River:",localStorage.spring_river)
}
//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);
//get player name from local storage
</script>
<script type="text/javascript" src="index.js" ></script>
</body>

@ -117,7 +117,7 @@
var avatar = $("#player_img");
var baloon = $(".bubble");
$(".figure1").click (function(){
$("#person1").click (function(){
check_flipping();
villagers ++;
$(".fighters").html(villagers);
@ -132,7 +132,7 @@
end_recluting();
});
$(".figure2").click (function(){
$("#person2").click (function(){
check_flipping();
villagers ++;
$(".fighters").html(villagers);
@ -147,7 +147,7 @@
end_recluting();
});
$(".figure3").click (function(){
$("#person3").click (function(){
check_flipping();
villagers ++;
$(".fighters").html(villagers);
@ -162,7 +162,7 @@
end_recluting();
});
$(".figure4").click (function(){
$("#person4").click (function(){
if (avatar.hasClass("flipped") == false) {
avatar.addClass("flipped");
}
@ -179,7 +179,7 @@
end_recluting();
});
$(".figure5").click (function(){
$("#person5").click (function(){
if (avatar.hasClass("flipped") == false) {
avatar.addClass("flipped");
}
@ -198,7 +198,7 @@
end_recluting();
});
$(".figure6").click (function(){
$("#person6").click (function(){
check_flipping();
villagers ++;
$(".fighters").html(villagers);
@ -214,7 +214,7 @@
end_recluting();
});
$(".figure7").click (function(){
$("#person7").click (function(){
if (avatar.hasClass("flipped") == false) {
avatar.addClass("flipped");
}
@ -232,7 +232,7 @@
end_recluting();
});
$(".figure8").click (function(){
$("#person8").click (function(){
check_flipping();
villagers ++;
$(".fighters").html(villagers);
@ -248,7 +248,7 @@
end_recluting();
});
$(".figure9").click (function(){
$("#person9").click (function(){
check_flipping();
villagers ++;
$(".fighters").html(villagers);

Loading…
Cancel
Save