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
|
||||
# v2.0.0d10
|
||||
# v2.0.0d13
|
||||
CACHE:
|
||||
index.html
|
||||
main.js
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html manifest="cache.manifest">
|
||||
<html xmanifest="cache.manifest">
|
||||
<head>
|
||||
<title>The Bunnies, Inc. </title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
@ -28,11 +28,11 @@
|
|||
|
||||
<div id="menu">
|
||||
<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 class="btn" id="about">About</div>
|
||||
<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 id="aboutc">
|
||||
|
|
2
main.css
2
main.css
|
@ -29,7 +29,7 @@ font-size: 20px;
|
|||
line-height: 20px;
|
||||
vertical-align: middle;
|
||||
overflow: hidden;
|
||||
cursor: url(cursor.png) 4 4, auto;
|
||||
cursor: url(assets/cursor.png) 4 4, auto;
|
||||
}
|
||||
#map_canvas {
|
||||
width: 100%;
|
||||
|
|
46
main.js
46
main.js
|
@ -1,15 +1,17 @@
|
|||
$(document).ready(function() {
|
||||
|
||||
step=3;
|
||||
stti=10;
|
||||
frames=stti/2;
|
||||
interf=0;
|
||||
interb=0;
|
||||
interl=0;
|
||||
interr=0;
|
||||
player["x"]=0;
|
||||
player["y"]=0;
|
||||
evil;
|
||||
var step=3;
|
||||
var stti=10;
|
||||
var frames=stti/2;
|
||||
var interf=0;
|
||||
var interb=0;
|
||||
var interl=0;
|
||||
var interr=0;
|
||||
var player={
|
||||
x: 0,
|
||||
y: 0
|
||||
};
|
||||
var evil=[];
|
||||
|
||||
function angle(x, y, bx, by) {
|
||||
return Math.atan2(bx-x, by-y)/Math.PI*-180;
|
||||
|
@ -32,16 +34,6 @@ map.panBy(step, 0);
|
|||
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.applicationCache.addEventListener('updateready', function(e) {
|
||||
if (window.applicationCache.status == window.applicationCache.UPDATEREADY) {
|
||||
|
@ -314,4 +306,18 @@ start();
|
|||
}, 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