master
*anna* 3 years ago
parent 79076b5d0e
commit 9359800489

BIN
.DS_Store vendored

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

@ -124,7 +124,7 @@ div#player_img {
top: 40%; top: 40%;
left: 100%; left: 100%;
position:absolute ; position:absolute ;
z-index: 3; z-index: 2;
} }
.army { .army {
@ -140,7 +140,7 @@ div#player_img {
top:50%; top:50%;
left: 80%; left: 80%;
position: absolute; position: absolute;
z-index:0; z-index:2;
} }
#fighter2 { #fighter2 {
top:5%; top:5%;
@ -152,147 +152,127 @@ div#player_img {
top:20%; top:20%;
left: 30%; left: 30%;
position: absolute; position: absolute;
z-index:0; z-index:2;
} }
#fighter4 { #fighter4 {
top:100%; top:100%;
left: 45%; left: 45%;
position: absolute; position: absolute;
z-index:0; z-index:5;
} }
#fighter5 { #fighter5 {
top:40%; top:40%;
left: 50%; left: 50%;
position: absolute; position: absolute;
z-index:0; z-index:2;
} }
#fighter6 { #fighter6 {
top:70%; top:70%;
left: 65%; left: 65%;
position: absolute; position: absolute;
z-index:0; z-index:3;
} }
#fighter7 { #fighter7 {
top:58%; top:68%;
left: 40%; left: 44%;
position: absolute; position: absolute;
z-index:0; z-index:3;
} }
#fighter8 { #fighter8 {
top:50%; top:50%;
left: 5%; left: 5%;
position: absolute; position: absolute;
z-index:0; z-index:3;
} }
#fighter9 { #fighter9 {
top:50%; top:50%;
left: 5%; left: 5%;
position: absolute; position: absolute;
z-index:0; z-index:3;
} }
/*images*/ .children1 {
top:5%;
right: 8%;
#tree1 {
top:6%;
left: 17%;
position: absolute; position: absolute;
z-index:0;
} }
#tree2 {
.children2 {
top:40%; top:40%;
left: 14%; right: 2%;
position: absolute; position: absolute;
z-index:2;
} }
#tree3 {
bottom:45%; .decoration {
left: 30%; top:35%;
right: 13.5%;
position: absolute; position: absolute;
z-index:2;
} }
#tree4{ .figure1{
bottom: 20%; top:15%;
left: 70%; right: 13%;
position: absolute; position: absolute;
z-index:4;
} }
#tree5{ .figure2{
top: 10%; top:40%;
right: 4%; right: 8%;
position: absolute; position: absolute;
z-index:1;
} }
#tree6{ .figure3{
top: 10%; top:50%;
left: 40%; right: 15%;
position: absolute; position: absolute;
z-index:1;
} }
.figure4{
#flower1 { top:30%;
bottom:68%; right: 3%;
left: 5%;
position: absolute; position: absolute;
z-index:0;
} }
#flower2{
bottom: 28%;
left: 1.5%;
position: absolute;
z-index:17;
}
#flower3{
bottom: 50%;
left: 13%; /*images*/
.tree1 {
top:6%;
left: 17%;
position: absolute; position: absolute;
z-index:2; z-index:1;
} }
#flower4{ .tree2 {
bottom: 35%; top:40%;
left: 22%; left: 14%;
position: absolute; position: absolute;
z-index:2; z-index:4;
} }
#flower5{ .tree3 {
bottom: 65%; bottom:38%;
left: 17%; left: 30%;
position: absolute; position: absolute;
z-index:0; z-index:4;
} }
#flower6{ .tree4{
bottom: 65%; bottom: 20%;
left: 80%; left: 60%;
position: absolute; position: absolute;
z-index:2; z-index:6;
} }
.tree5{
#flower7{ top: 10%;
bottom: 50%; right: 4%;
left: 55%;
position: absolute; position: absolute;
z-index:0; z-index:1;
} }
.tree6{
#flower8{ top: 10%;
bottom: 30%; left: 40%;
left: 97%;
position: absolute; position: absolute;
z-index:1; z-index:1;
}
#flower9{
top: 23%;
left: 32%;
position: absolute;
cursor: pointer;
z-index:0;
} }

@ -23,25 +23,69 @@
<img id="fighter5" src="imgs/spring_river/fighter5.gif" height="120px"> <img id="fighter5" src="imgs/spring_river/fighter5.gif" height="120px">
<img id="fighter6" src="imgs/spring_river/fighter6.gif" height="160px"> <img id="fighter6" src="imgs/spring_river/fighter6.gif" height="160px">
<img id="fighter7" src="imgs/spring_river/fighter7.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="fighter8" src="imgs/spring_river/fighter8.gif" height="150px">
</div> </div>
<div id="ground"> <div id="ground">
<div class="tree1">
<img id="tree1" src="imgs/spring_river/tree.gif" height="160px">
<img id="tree_flipped1" src="imgs/spring_river/tree_rotate.gif" height="160px"style="display: none;">
</div>
<div class="tree2">
<img id="tree2" src="imgs/spring_river/tree.gif" height="160px">
<img id="tree_flipped2" src="imgs/spring_river/tree_rotate.gif" height="160px"style="display: none;">
</div>
<div class="tree3">
<img id="tree3" src="imgs/spring_river/tree.gif" height="160px">
<img id="tree_flipped3" src="imgs/spring_river/tree_rotate.gif" height="160px"style="display: none;">
</div>
<div class="tree4">
<img id="tree4" src="imgs/spring_river/tree.gif" height="160px">
<img id="tree_flipped4" src="imgs/spring_river/tree_rotate.gif" height="160px"style="display: none;">
</div>
<div class="tree5">
<img id="tree5" src="imgs/spring_river/tree.gif" height="160px">
</div>
<div class="tree6">
<img id="tree6" src="imgs/spring_river/tree.gif" height="160px">
<img id="tree_flipped6" src="imgs/spring_river/tree_rotate.gif" height="160px"style="display: none;">
</div>
<img id="tree1" src="imgs/spring_river/tree4.gif" height="160px"> <div class="children1">
<img id="tree2" src="imgs/spring_river/tree4.gif" height="160px"> <img id="cage1" class="bad" src="imgs/spring_river/children_cage_fire_1.gif" height="240px">
<img id="tree3" src="imgs/spring_river/tree4.gif" height="160px"> <img id="free1" class="good"src="imgs/spring_river/children_free_1.gif" height="240px" style="display: none;">
<img id="tree4" src="imgs/spring_river/tree4.gif" height="160px"> </div>
<img id="tree5" src="imgs/spring_river/tree4.gif" height="160px"> <div class="children2">
<img id="tree6" src="imgs/spring_river/tree4.gif" height="160px"> <img id="cage2" class="bad" src="imgs/spring_river/children_cage_fire_2.gif" height="300px">
<img id="free2" class="good" src="imgs/spring_river/children_free_2.gif" height="300px" style="display: none;">
</div>
<div class="figure1">
<img id="satan1" class="bad" src="imgs/spring_river/satan1.gif" height="150px">
<img id="teacher1" class="good" src="imgs/spring_river/teacher1.gif" height="130px" style="display: none;">
</div>
<div class="figure2">
<img id="satan2" class="bad" src="imgs/spring_river/satan2.gif" height="140px">
<img id="teacher2" class="good" src="imgs/spring_river/teacher2.gif" height="130px" style="display: none;">
</div>
<div class="figure3">
<img id="satan3" class="bad" src="imgs/spring_river/satan3.gif" height="150px">
<img id="teacher3" class="good" src="imgs/spring_river/teacher3.gif" height="130px" style="display: none;">
</div>
<div class="figure4">
<img id="satan4" class="bad" src="imgs/spring_river/satan4.gif" height="150px">
<img id="teacher4" class="good" src="imgs/spring_river/teacher4.gif" height="130px" style="display: none;">
</div>
<div class="decoration">
<img id="decoration_bad" class="bad" src="imgs/spring_river/decoration.gif" height="110px">
<img id="decoration_good" class="good" src="imgs/spring_river/decoration_good.gif" height="150px" style="display: none;">
</div> </div>
<div class="text_container invert" > <div class="text_container invert" >
<div class="message1"> <div class="message1">
You and your army arrived at the Spring River Natural Park.<br> You and your army arrived at the Spring River Natural Park.<br>
<span class="instructions"><span class="instructions_arrow"></span> Move with the right arrow to find the children!</span> <span class="instructions"><span class="instructions_arrow"></span> Move around with your army to find the children!</span>
</div> </div>
<div class="message2" style="display: none;"> <div class="message2" style="display: none;">
</div> </div>
@ -69,8 +113,8 @@
//adjust camera scroll //adjust camera scroll
var $div = $('.army'); var $div = $('.army');
var screenLeftMin = 100; var screenLeftMin = 50;
var screenLeftMax = 780; var screenLeftMax = 400;
function adjustScroll() { function adjustScroll() {
var playerLeft = parseInt($div.css("left")); var playerLeft = parseInt($div.css("left"));
@ -101,17 +145,34 @@ $(document).keydown(function(e) {
var left_val_only = parseInt(left_val_px); var left_val_only = parseInt(left_val_px);
var left_Percentage = (left_val_only/parent_width) * 100; var left_Percentage = (left_val_only/parent_width) * 100;
console.log ("left %", left_Percentage); console.log ("left %", left_Percentage);
/*
if (top_Percentage > 65) { if (left_Percentage >= 9) {
$div.css ("zIndex", 5) $("#tree1,#tree2").hide();
$("#tree_flipped1, #tree_flipped2").show();
} }
if (top_Percentage < 55 && top_Percentage > 39) {
$div.css ("zIndex", 4) if (left_Percentage >= 22) {
$("#tree3").hide();
$("#tree_flipped3").show();
}
if (left_Percentage >= 33) {
$("#tree6").hide();
$("#tree_flipped6").show();
} }
if (top_Percentage < 39) { if (left_Percentage >= 54) {
$div.css ("zIndex", 1) $("#tree4").hide();
$("#tree_flipped4").show();
}
/*
if (left_Percentage < 55 && top_Percentage > 39) {
} }
*/ if (left_Percentage < 39) {
}*/
switch (e.which) { switch (e.which) {
case 37: case 37:
@ -129,11 +190,15 @@ $(document).keydown(function(e) {
if (offset.left < 80) { if (offset.left < 80) {
offset.left = 80; offset.left = 80;
} }
if (offset.left > $("#ground").width() - 250) { if (offset.left > $("#ground").width() - 1350) {
offset.left = $("#ground").width() - 250; offset.left = $("#ground").width() - 1350;
$(document).scrollLeft(4000);
/* maybe here add message end*/
} }
$div.css("left", offset.left); $div.css("left", offset.left);
$div.css("top", offset.top); $div.css("top", offset.top);
e.preventDefault(); e.preventDefault();

Loading…
Cancel
Save