forked from github/game-off-2013
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added version replace grunt task - issue #9
- Loading branch information
Showing
4 changed files
with
105 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | ||
<title>Psiral - Javascript/HTML5 game (Game-Off 2013)</title> | ||
<link rel="stylesheet" type="text/css" media="screen" href="css/main.css"> | ||
</head> | ||
<body> | ||
|
||
<!-- Canvas placeholder --> | ||
<div id="screen"> | ||
<div id="top"></div> | ||
</div> | ||
<div id="bottom"></div> | ||
|
||
<!-- Versioning --> | ||
<script type="text/javascript"> | ||
var _timestamp = (new Date()).getTime(); | ||
var _version = { | ||
buildnumber:_timestamp, | ||
}; | ||
</script> | ||
<!-- Libraries --> | ||
<script src="vendor/underscore-min.js"></script> | ||
<script src="vendor/howler.min.js"></script> | ||
<script src="vendor/melonJS-0.9.11.js"></script> | ||
<script src="vendor/plugins/debugPanel.js"></script> | ||
<script src="vendor/plugins/fndelay.js"></script> | ||
<script src="vendor/plugins/howlerAudio.js"></script> | ||
<!-- Game --> | ||
<script src="js/globals.js"></script> | ||
<script src="js/game.js"></script> | ||
<script src="js/resources.js"></script> | ||
<script src="js/map.js"></script> | ||
<script src="js/gamemaster.js"></script> | ||
<script src="js/l10n.js"></script> | ||
<!-- Scenes --> | ||
<script src="js/scenes/splash.js"></script> | ||
<script src="js/scenes/menu.js"></script> | ||
<script src="js/scenes/menu_hud.js"></script> | ||
<script src="js/scenes/play.js"></script> | ||
<script src="js/scenes/play_hud.js"></script> | ||
<!-- Objects --> | ||
<script src="js/entities/wizards.js"></script> | ||
<script src="js/entities/board.js"></script> | ||
<script src="js/entities/gfx.js"></script> | ||
<!-- Bootstrap & Mobile optimization tricks --> | ||
<script type="text/javascript"> | ||
window.onReady(function onReady() { | ||
game.onload(); | ||
|
||
// Mobile browser hacks | ||
if (me.device.isMobile && !navigator.isCocoonJS) { | ||
// Prevent the webview from moving on a swipe | ||
window.document.addEventListener("touchmove", function (e) { | ||
e.preventDefault(); | ||
window.scroll(0, 0); | ||
return false; | ||
}, false); | ||
|
||
// Scroll away mobile GUI | ||
(function () { | ||
window.scrollTo(0, 1); | ||
me.video.onresize(null); | ||
}).defer(); | ||
|
||
me.event.subscribe(me.event.WINDOW_ONRESIZE, function (e) { | ||
window.scrollTo(0, 1); | ||
}); | ||
} | ||
}); | ||
</script> | ||
<!--URCHIN--> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters