New cursor + menu fix
parent
3e37d44d4b
commit
31c16d8807
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.9 KiB |
|
@ -1,5 +1,5 @@
|
||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
# v2.0.0d10
|
# v2.0.0d13
|
||||||
CACHE:
|
CACHE:
|
||||||
index.html
|
index.html
|
||||||
main.js
|
main.js
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html manifest="cache.manifest">
|
<html xmanifest="cache.manifest">
|
||||||
<head>
|
<head>
|
||||||
<title>The Bunnies, Inc. </title>
|
<title>The Bunnies, Inc. </title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
@ -28,11 +28,11 @@
|
||||||
|
|
||||||
<div id="menu">
|
<div id="menu">
|
||||||
<h1>The Bunnies, Inc. <sup>ALPHA</sup></h1>
|
<h1>The Bunnies, Inc. <sup>ALPHA</sup></h1>
|
||||||
<div id="play" class="btn" onClick="getready();">Play</div>
|
<div id="play" class="btn">Play</div>
|
||||||
<div id="high" class="btn" onClick="alert('The bunnies have not made this work yet! ');">Highscores</div>
|
<div id="high" class="btn" onClick="alert('The bunnies have not made this work yet! ');">Highscores</div>
|
||||||
<div class="btn" id="about">About</div>
|
<div class="btn" id="about">About</div>
|
||||||
<a href="http://ambrosechua.github.com/thebunniesinc/" class="btn">How to play</a>
|
<a href="http://ambrosechua.github.com/thebunniesinc/" class="btn">How to play</a>
|
||||||
<span style="font-size: 12px;">Alpha Version 2.0.0 release 10</span>
|
<span style="font-size: 12px;">Alpha Version 2.0.0 release 13</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="aboutc">
|
<div id="aboutc">
|
||||||
|
|
2
main.css
2
main.css
|
@ -29,7 +29,7 @@ font-size: 20px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
cursor: url(cursor.png) 4 4, auto;
|
cursor: url(assets/cursor.png) 4 4, auto;
|
||||||
}
|
}
|
||||||
#map_canvas {
|
#map_canvas {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
46
main.js
46
main.js
|
@ -1,15 +1,17 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
step=3;
|
var step=3;
|
||||||
stti=10;
|
var stti=10;
|
||||||
frames=stti/2;
|
var frames=stti/2;
|
||||||
interf=0;
|
var interf=0;
|
||||||
interb=0;
|
var interb=0;
|
||||||
interl=0;
|
var interl=0;
|
||||||
interr=0;
|
var interr=0;
|
||||||
player["x"]=0;
|
var player={
|
||||||
player["y"]=0;
|
x: 0,
|
||||||
evil;
|
y: 0
|
||||||
|
};
|
||||||
|
var evil=[];
|
||||||
|
|
||||||
function angle(x, y, bx, by) {
|
function angle(x, y, bx, by) {
|
||||||
return Math.atan2(bx-x, by-y)/Math.PI*-180;
|
return Math.atan2(bx-x, by-y)/Math.PI*-180;
|
||||||
|
@ -32,16 +34,6 @@ map.panBy(step, 0);
|
||||||
player["y"]+=step;
|
player["y"]+=step;
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#endg").click(function() {
|
|
||||||
window.location.reload();
|
|
||||||
});
|
|
||||||
$("#aboutc").click(function() {
|
|
||||||
$("#aboutc").fadeOut();
|
|
||||||
});
|
|
||||||
$("#about").click(function() {
|
|
||||||
$("#aboutc").fadeIn();
|
|
||||||
});
|
|
||||||
|
|
||||||
window.addEventListener('load', function(e) {
|
window.addEventListener('load', function(e) {
|
||||||
window.applicationCache.addEventListener('updateready', function(e) {
|
window.applicationCache.addEventListener('updateready', function(e) {
|
||||||
if (window.applicationCache.status == window.applicationCache.UPDATEREADY) {
|
if (window.applicationCache.status == window.applicationCache.UPDATEREADY) {
|
||||||
|
@ -314,4 +306,18 @@ start();
|
||||||
}, 4500);
|
}, 4500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$("#endg").click(function() {
|
||||||
|
window.location.reload();
|
||||||
|
});
|
||||||
|
$("#aboutc").click(function() {
|
||||||
|
$("#aboutc").fadeOut();
|
||||||
|
});
|
||||||
|
$("#about").click(function() {
|
||||||
|
$("#aboutc").fadeIn();
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#play").click(function() {
|
||||||
|
getready();
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
BIN
xcf/cursor.xcf
BIN
xcf/cursor.xcf
Binary file not shown.
Loading…
Reference in New Issue