master
*anna* 4 years ago
parent 3edb1297a9
commit 2863cfbb47

BIN
.DS_Store vendored

Binary file not shown.

BIN
tree/.DS_Store vendored

Binary file not shown.

BIN
tree/imgs/.DS_Store vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

@ -33,7 +33,6 @@ body{
line-height: 5.3vw; line-height: 5.3vw;
max-width: 100%; max-width: 100%;
max-height: 100%; max-height: 100%;
} }
span.special1{ span.special1{

@ -1,7 +1,4 @@
@font-face {
font-family: sinistre;
src: url(fonts/Sinistre-SCaroline.otf);
}
@font-face { @font-face {
font-family: sinistre; font-family: sinistre;
src: url(fonts/Sinistre-SCaroline.woff), src: url(fonts/Sinistre-SCaroline.woff),
@ -25,9 +22,9 @@
} }
@font-face { @font-face {
font-family: jolyheavyitalic; font-family: jolybold;
src: url(fonts/JolyDisplay-HeavyDisplayItalic.woff), src: url(fonts/JolyDisplay-BoldDisplay.woff),
url(fonts/JolyDisplay-HeavyDisplayItalic.otf); url(fonts/JolyDisplay-BoldDisplay.otf);
} }
body { body {
@ -37,17 +34,15 @@
} }
::-moz-selection { /* Code for Firefox */ ::-moz-selection { /* Code for Firefox */
background: transparent; background: transparent;
} }
::selection { ::selection {
background: transparent; background: transparent;
} }
#player_img { #player_img {
bottom: 35%; bottom: 25%;
left: 35%; left: 15%;
position:absolute ; position:absolute ;
z-index: 20; z-index: 20;
} }
@ -55,12 +50,10 @@
#ground{ #ground{
position:relative ; position:relative ;
height:100vh; height:90vh;
width:4000px; width:4000px;
}
}
#groundline { #groundline {
position: fixed; position: fixed;
@ -87,13 +80,21 @@ div.text_container {
button{ button{
-webkit-appearance: none; -webkit-appearance: none;
background-color: white; background-color: white;
border: 0.1vw black solid; border: 0.11vw black solid;
border-radius: 25vw; border-radius: 25vw;
color:black; color:black;
cursor:pointer; cursor:pointer;
font-family: jolybolditalic; 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{ span.button_text{
font-size: 1.6vw; font-size: 1.6vw;
padding: 8px; padding: 8px;
@ -103,11 +104,13 @@ span.button_text{
font-family: jolybolditalic; font-family: jolybolditalic;
} }
#close_news{ .close {
position:fixed; position:relative;
top:4%; top:25px;
right:15%; left:80%;
} }
#newspaper{ #newspaper{
position:fixed; position:fixed;
/* border: solid black 2px;*/ /* border: solid black 2px;*/
@ -183,10 +186,13 @@ span.button_text{
/*baloons */ /*baloons */
.baloons{ .baloons_all{
z-index:102;
}
.baloons{
font-family:sinistre; font-family:sinistre;
font-size: 3.5vw; font-size: 3.5vw;
} }
#baloon1 { #baloon1 {
width: 20vw; width: 20vw;
@ -249,79 +255,134 @@ span.button_text{
#bench { #bench {
bottom: 35%; bottom: 35%;
left: 20%; left: 8%;
position: absolute; position: absolute;
z-index:18; z-index:18;
} }
#tree1 { #tree1 {
top:5%; top:5%;
left: 28%; left: 12%;
position: absolute; position: absolute;
} }
#tree2 { #tree2 {
bottom:45%; bottom:45%;
left: 8%; left: 4%;
position: absolute; position: absolute;
z-index:16; z-index:16;
} }
#tree3 { #tree3 {
bottom:50%; bottom:50%;
left: 55%; left: 25%;
position: absolute; position: absolute;
z-index:2; z-index:2;
} }
#newspaperimg { #newspaperimg {
bottom: 42%; bottom: 43%;
left: 25%; left: 10%;
position: absolute; position: absolute;
z-index:19; z-index:19;
} }
#flower1 { #flower1 {
bottom:75%; bottom:75%;
left: 17%; left: 5%;
position: absolute; position: absolute;
} }
#flower2{ #flower2{
bottom: 38%; bottom: 38%;
left: 8%; left: 4%;
position: absolute; position: absolute;
z-index:17; z-index:17;
} }
#flower3{ #flower3{
bottom: 80%; bottom: 80%;
left: 65%; left: 30%;
position: absolute; position: absolute;
z-index:17; z-index:17;
} }
#flower4{ #flower4{
bottom: 48%; bottom: 48%;
left: 48%; left: 20%;
position: absolute; position: absolute;
z-index:17; z-index:17;
} }
#flower5{ #flower5{
bottom: 60%; bottom: 60%;
right: 14%; left: 35%;
position: absolute; position: absolute;
z-index:17; z-index:17;
} }
#grass1{ #grass1{
bottom: 30%; bottom: 30%;
right: 20%; left: 30%;
position: absolute; position: absolute;
z-index:17; z-index:17;
} }
#grass2{ #grass2{
bottom: 80%; bottom: 60%;
left: 2000px; left: 55%;
position: absolute;
z-index:17;
}
#statue{
bottom: 70%;
left: 43%;
position: absolute; position: absolute;
z-index:17; z-index:17;
} }
#tree4{
bottom: 25%;
left: 50%;
position: absolute;
}
#flower6{
bottom: 30%;
left: 70%;
position: absolute;
}
#dog{
bottom: 27%;
left: 54%;
position: absolute;
z-index:17;
}
#kiosk{
bottom: 70%;
left: 70%;
position: absolute;
}
/* 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;
}

@ -9,35 +9,37 @@
</head> </head>
<body> <body>
<button id="final_test" onclick="location.href='final.html';">go to final test </button>
<!--baloons --> <!--baloons -->
<div class="comment1stpage baloons"id="baloon1" style="display: none;"> <div class="baloons_all">
<p class="text_baloon1"> <div class="comment1stpage baloons"id="baloon1" style="display: none;">
It looks like the previous owner of the newspaper highlighted something <p class="text_baloon1">
</p> It looks like the previous owner of the newspaper highlighted something
</div> </p>
<div class="comment1stpage baloons"id="baloon2" style="display: none;"> </div>
<p class="text_baloon1"></p> <div class="comment1stpage baloons"id="baloon2" style="display: none;">
Who is N.? <p class="text_baloon1"></p>
</p> Who is N.?
</div> </p>
</div>
<div class="comment2stpage baloons"id="baloon3" style="display: none;"> <div class="comment2stpage baloons"id="baloon3" style="display: none;">
<p class="text_baloon3"> <p class="text_baloon3">
Amanda often volunteers for the cat shelter.<br> Amanda often volunteers for the cat shelter.<br>
Can this be the reason why she is late? Can this be the reason why she is late?
</p> </p>
</div> </div>
<div class="comment2stpage baloons"id="baloon4" style="display: none;"> <div class="comment2stpage baloons"id="baloon4" style="display: none;">
<p class="text_baloon4"></p> <p class="text_baloon4"></p>
I hope Amanda will arrive soon, <br> I hope Amanda will arrive soon, <br>
you still have to purchase the tickets! you still have to purchase the tickets!
</p> </p>
</div>
</div> </div>
<div class="newspaper_wrap">
<button class="close" style="display: none;"><span class="button_text">close</span></button>
<!--newspaper pages --> <!--newspaper pages -->
<button id="close_news"style="display: none;"><span class="button_text">close</span></button>
<div id="newspaper" style="display: none;"> <div id="newspaper" style="display: none;">
<div class="left_page"> <div class="left_page">
@ -96,25 +98,34 @@
</div> </div>
</div>
<div id="groundline"></div> <div id="groundline"></div>
<div id="player_img"></div>
<div id="ground">
<div id="player_img"></div>
<img id="bench" src="imgs/park/bench1.gif" height="20%">
<img id="tree1" src="imgs/park/tree1.gif" height="30%">
<img id="tree2" src="imgs/park/tree4.gif" height="25%">
<img id="tree3" src="imgs/park/tree4.gif" height="25%">
<img id="newspaperimg" src="imgs/park/newspaper2.gif" height="7%">
<img id="flower1" src="imgs/park/flower1.gif" height="5%">
<img id="flower2" src="imgs/park/flower3.gif" height="7%">
<img id="flower3" src="imgs/park/flower3.1.gif" height="6%">
<img id="flower4" src="imgs/park/flower1.1.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="grass2" src="imgs/park/grass1.gif" height="75vw">
<img id="statue" src="imgs/park/statue.gif" height="20%">
<img id="tree4" src="imgs/park/tree4.gif" height="25%">
<img id="flower6" src="imgs/park/flower1.1.gif" height="5%">
<img id="dog" src="imgs/park/dog1.gif" height="10%">
<img id="kiosk" src="imgs/park/stand3.gif" height="20%">
<img id="bench" src="imgs/park/bench1.gif" height="20%">
<img id="tree1" src="imgs/park/tree1.gif" height="30%">
<img id="tree2" src="imgs/park/tree4.gif" height="25%">
<img id="tree3" src="imgs/park/tree4.gif" height="25%">
<img id="newspaperimg" src="imgs/park/newspaper2.gif" height="7%">
<img id="flower1" src="imgs/park/flower1.gif" height="5%">
<img id="flower2" src="imgs/park/flower3.gif" height="7%">
<img id="flower3" src="imgs/park/flower3.1.gif" height="6%">
<img id="flower4" src="imgs/park/flower1.1.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="grass2" src="imgs/park/grass1.gif" height="75vw">
</div>
@ -138,22 +149,44 @@
<script src="jquery.min.js"></script> <script src="jquery.min.js"></script>
<script> <script>
// player moves
//move
var $div = $('#player_img'); 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)
}
}
$(document).keydown(function(e) { $(document).keydown(function(e) {
switch (e.which) { switch (e.which) {
case 37: case 37:
$div.css('left', $div.offset().left - 20); $div.css('left', $div.offset().left - 20);
e.preventDefault();
adjustScroll();
break; break;
case 38: case 38:
$div.css('top', $div.offset().top - 20); $div.css('top', $div.offset().top - 20);
break; break;
case 39: case 39:
$div.css('left', $div.offset().left + 20); $div.css('left', $div.offset().left + 20);
e.preventDefault();
adjustScroll();
break; break;
case 40: case 40:
$div.css('top', $div.offset().top + 20); $div.css('top', $div.offset().top + 20);
break; break;
} }
}) })
@ -175,7 +208,7 @@ $(document).keydown(function(e) {
// open newspaper // open newspaper
$(".open_newspaper_index").click (function(){ $(".open_newspaper_index").click (function(){
$("#newspaper, #close_news").toggle(); $("#newspaper, .close").toggle();
//saves that u opened the newspaper in the local storage //saves that u opened the newspaper in the local storage
window.localStorage.setItem("newspaper","opened") window.localStorage.setItem("newspaper","opened")
console.log ("newspaper:",localStorage.newspaper) console.log ("newspaper:",localStorage.newspaper)
@ -189,7 +222,7 @@ $(document).keydown(function(e) {
}); });
$("#arrow_back1").click (function(){ $("#arrow_back1").click (function(){
$("#baloon1, #baloon2, #baloon3, #baloon4, .school2,.school3").hide(); $("#baloon1, #baloon2, #baloon3, #baloon4, .school2,.school3, .message2").hide();
$(".index, .school1, .message4").show(); $(".index, .school1, .message4").show();
}); });
@ -225,9 +258,9 @@ $(document).keydown(function(e) {
$(".message4").show(); $(".message4").show();
}); });
$("#close_news").click (function(){ $(".close").click (function(){
$("#newspaper").hide(); $("#newspaper").hide();
$("#close_news").hide(); $(".close").hide();
$("#baloon1").hide(); $("#baloon1").hide();
$("#baloon2").hide(); $("#baloon2").hide();
$("#baloon3").hide(); $("#baloon3").hide();

@ -8,22 +8,11 @@
<link rel="stylesheet" href="park.css"> <link rel="stylesheet" href="park.css">
</head> </head>
<style>
</style>
<body> <body>
<div id="groundline"></div> <div id="groundline"></div>
<!--<div id="player_img"></div>-->
<div id="ground"> <div id="ground">
<div id="player_img"></div> <div id="player_img"></div>
<img id="bench" src="imgs/park/bench1.gif" height="20%"> <img id="bench" src="imgs/park/bench1.gif" height="20%">
<img id="tree1" src="imgs/park/tree1.gif" height="30%"> <img id="tree1" src="imgs/park/tree1.gif" height="30%">
@ -38,13 +27,8 @@
<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">
</div> </div>
<div class="text_container"> <div class="text_container">
move move
</div> </div>
@ -56,7 +40,7 @@ move
// player moves // player moves
var $div = $('#player_img'); var $div = $('#player_img');
var screenLeftMin = 0; var screenLeftMin = 200;
var screenLeftMax = 870; var screenLeftMax = 870;
function adjustScroll() { function adjustScroll() {

Loading…
Cancel
Save