master
*anna* 4 years ago
parent f81c7089c8
commit 9b87e68046

BIN
tree/imgs/.DS_Store vendored

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

@ -0,0 +1,180 @@
@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);
}
::-moz-selection { /* Code for Firefox */
background: transparent;
}
::selection {
background: transparent;
}
body {
font-family: jolyregular;
font-size: 1.8vw;
}
.instructions{
font-family:jolyregularitalic
}
#player_img {
bottom: 20%;
left: 15%;
position:absolute ;
z-index: 20;
}
#ground {
position: fixed;
bottom:0px;
height:83%;
width: 100%;
border-top: 0.1vw solid;
}
div.text_container {
bottom: 2%;
left:3%;
right:3%;
position:fixed;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 1em;
margin-inline-end: 1em;
}
button{
-webkit-appearance: none;
background-color: white;
border: 0.11vw black solid;
border-radius: 25vw;
color:black;
cursor:pointer;
font-family: jolybolditalic;
}
button:hover{
border: 0.11vw transparent solid;
-webkit-box-shadow: 0px 0px 8px 2px black;
-moz-box-shadow: 0px 0px 8px 2px black;
box-shadow: 0px 0px 8px 2px black;
}
span.button_text{
font-size: 1.6vw;
padding: 8px;
}
#ned {
bottom: 21%;
left: 8%;
position:absolute ;
z-index: 20;
}
#barn {
bottom: 60%;
right: 10%;
position:absolute ;
z-index: 10;
}
#tree2 {
bottom: 70%;
right: 7%;
position:absolute ;
z-index: 5;
}
#tree1 {
bottom: 47%;
left: 8%;
position:absolute ;
z-index: 11;
}
#farmer {
bottom: 75%;
right: 8%;
position:absolute ;
z-index: 10;
}
#mulino {
bottom: 70%;
left: 15%;
position:absolute ;
z-index: 10;
}
.field{
width: 40%;
height: 40%;
top:10%;
left: 30%;
right: 30%;
position: absolute;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr 1fr;
}
img.corn{
max-width: 100%;
max-height: 100%;
margin: auto;
}
/* hide scroll bar */
/* width */
::-webkit-scrollbar {
color:white;
}
/* Track */
::-webkit-scrollbar-track {
background: white;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: white;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: white;
}

@ -0,0 +1,85 @@
<!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>Monteferro</title>
<link rel="icon" href="imgs/park/flower2.gif">
<link rel="stylesheet" href="monteferro.css">
</head>
<body>
<img id="barn" src="imgs/monteferro/barn.gif" height="18%">
<img id="mulino" src="imgs/monteferro/mulino.gif" height="20%">
<img id="tree1" src="imgs/monteferro/tree.gif" height="28%">
<img id="tree2" src="imgs/monteferro/tree.gif" height="25%">
<div id="ground">
<div id="player_img"></div>
<img id="ned" src="imgs/monteferro/ned.gif" height="15%">
<img id="farmer" src="imgs/monteferro/farmer1.gif" style="display: none;" height="15%">
<div class="field">
<img id="corn1" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn2" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn3" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn4" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn5" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn6" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn7" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn8" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn9" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn10" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn11" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn12" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn13" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn14" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn15" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn16" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn17" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn18" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn19" class="corn" src="imgs/monteferro/corn.gif" >
<img id="corn20" class="corn" src="imgs/monteferro/corn.gif" >
</div>
</div>
<div class="text_container">
<div class="message1">
</div>
</div>
<script src="jquery.min.js"></script>
<script>
// saves game step in the local storage
window.onload = function() {
window.localStorage.setItem("monteferro","opened")
console.log ("monteferro:",localStorage.monteferro)
}
//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>

@ -494,10 +494,10 @@ span.button_text{
}
#sport1{
bottom: 30%;
left: 67%;
left: 64%;
position: absolute;
cursor: pointer;
z-index:-5;
}
#sport2{
bottom: 65%;
@ -521,7 +521,7 @@ span.button_text{
color: #000000;
font-family: sinistre;
font-size: 1.2vw;
line-height: 1.5vw;
line-height: 25px;
text-align: center;
width: 14vw;
height: 4.2vw;
@ -565,7 +565,7 @@ span.button_text{
color: #000000;
font-family: sinistre;
font-size: 1.2vw;
line-height: 1.5vw;
line-height: 25px;
text-align: center;
width: 14vw;
height: 4.2vw;
@ -599,6 +599,221 @@ span.button_text{
margin-left: -10px;
display: block;
}
.fit2_bubble {
bottom:40%;
left: 64%;
position: absolute;
background: #ffffff;
color: #000000;
font-family: sinistre;
font-size: 1.2vw;
line-height: 2vw;
text-align: center;
width: 3vw;
height: 2.5vw;
border-radius: 10px;
padding: 0px;
border: #000000 solid 1px;
}
.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: 1.2vw;
line-height: 2vw;
text-align: center;
width: 3vw;
height: 2.5vw;
border-radius: 10px;
padding: 0px;
border: #000000 solid 1px;
}
.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 {
bottom:69%;
left: 81%;
position: absolute;
background: #ffffff;
color: #000000;
font-family: sinistre;
font-size: 1.2vw;
line-height: 25px;
text-align: center;
width: 12vw;
height: 5vw;
border-radius: 10px;
padding: 9px;
border: #000000 solid 1px;
}
.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 {
bottom:42%;
left: 74%;
position: absolute;
background: #ffffff;
color: #000000;
font-family: sinistre;
font-size: 1.2vw;
text-align: center;
width: 20vw;
height: 11.5vw;
border-radius: 10px;
padding: 14px;
border: #000000 solid 1px;
}
.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 {
bottom:15%;
left: 85%;
position: absolute;
background: #ffffff;
color: #000000;
font-family: sinistre;
font-size: 1.2vw;
text-align: center;
width: 20vw;
height: 10vw;
border-radius: 10px;
padding: 14px;
border: #000000 solid 1px;
}
.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;
}

@ -41,6 +41,11 @@
<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 class="fit1_bubble" style="display: none;" >...</div>
<div class="fit2_bubble" style="display: none;">...</div>
<div class="ned_bubble1" style="display: none;">I was hoping that someone would find my newspaper</div>
<div class="ned_bubble2" style="display: none;">My name is Ned, I used to be the school's janitor. I got fired last week because the school noticed I was carrying on some investigations on the kid's conditions there. Believe me, the situation is shadier than it seems. Do you wanna know what I just found out?</div>
<div class="ned_bubble3" style="display: none;">The school is involved in sinister activities: together with the Monteferro Food Enterprise they are poisoning the children's meals. Follow me to the enterprise's headquarter: I can show you the proof of what I'm saying</div>
</div>
@ -48,6 +53,13 @@
<div class="message1 instructions">
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 class="message2" style="display: none;">
You found him! <button class="ned1"><span class="button_text">Hear more from Ned</span></button> .
</div>
<div class="message3" style="display: none;">
It looks intriguing: <button onclick="location.href='monteferro.html';"><span class="button_text">go to the Monteferro Food Enterprise</span></button> with Ned.
</div>
</div>
@ -87,6 +99,8 @@ $(document).keydown(function(e) {
break;
case 38:
$div.css('top', $div.offset().top - 20);
e.preventDefault();
adjustScroll();
break;
case 39:
$div.css('left', $div.offset().left + 20);
@ -95,6 +109,8 @@ $(document).keydown(function(e) {
break;
case 40:
$div.css('top', $div.offset().top + 20);
e.preventDefault();
adjustScroll();
break;
}
})
@ -123,6 +139,25 @@ $(document).keydown(function(e) {
$(".vendor_bubble").toggle();
});
$("#sport1").click (function(){
$(".fit2_bubble").toggle();
});
$("#sport2").click (function(){
$(".fit1_bubble").toggle();
});
$("#ned").click (function(){
$(".ned_bubble1, .ned_bubble2").toggle();
$(".message1").hide();
$(".message2").show();
});
$(".ned1").click (function(){
$(".message2").hide();
$(".ned_bubble3,.message3 ").show();
});
</script>

Loading…
Cancel
Save