mirror of
https://github.com/photonstorm/phaser
synced 2024-12-20 18:14:13 +00:00
65 lines
No EOL
2.9 KiB
HTML
65 lines
No EOL
2.9 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Phaser Full Screen Mobile Example</title>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1, IE=9">
|
|
<meta name="format-detection" content="telephone=no">
|
|
<meta name="HandheldFriendly" content="true" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta name="format-detection" content="telephone=no">
|
|
<meta name="HandheldFriendly" content="true" />
|
|
<meta name="robots" content="noindex,nofollow" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
<meta name="apple-mobile-web-app-title" content="Phaser App">
|
|
<meta name="viewport" content="initial-scale=1 maximum-scale=1 user-scalable=0 minimal-ui" />
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
|
<link rel="apple-touch-icon" sizes="57x57" href="icons/app_icon_57x57.png">
|
|
<link rel="apple-touch-icon" sizes="60x60" href="icons/app_icon_60x60.png">
|
|
<link rel="apple-touch-icon" sizes="72x72" href="icons/app_icon_72x72.png">
|
|
<link rel="apple-touch-icon" sizes="76x76" href="icons/app_icon_76x76.png">
|
|
<link rel="apple-touch-icon" sizes="114x114" href="icons/app_icon_114x114.png">
|
|
<link rel="apple-touch-icon" sizes="120x120" href="icons/app_icon_120x120.png">
|
|
<link rel="apple-touch-icon" sizes="144x144" href="icons/app_icon_144x144.png">
|
|
<link rel="apple-touch-icon" sizes="152x152" href="icons/app_icon_152x152.png">
|
|
<link rel="apple-touch-icon" sizes="256x256" href="icons/app_icon_256x256.png">
|
|
<link rel="apple-touch-icon" sizes="512x512" href="icons/app_icon_512x512.png">
|
|
<link rel="apple-touch-icon" sizes="1024x1024" href="icons/app_icon_1024x1024.png">
|
|
<link rel="stylesheet" href="css/stylesheet.css" type="text/css" charset="utf-8" />
|
|
<script src="js/phaser.min.js"></script>
|
|
<script src="src/Boot.js"></script>
|
|
<script src="src/Preloader.js"></script>
|
|
<script src="src/MainMenu.js"></script>
|
|
<script src="src/Game.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<div id="game"></div>
|
|
<div id="orientation"></div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
(function () {
|
|
|
|
// Create your Phaser game and inject it into the game div.
|
|
// We did it in a window.onload event, but you can do it anywhere (requireJS load, anonymous function, jQuery dom ready, - whatever floats your boat)
|
|
// We're using a game size of 1024 x 768 here, but you can use whatever you feel makes sense for your game of course.
|
|
var game = new Phaser.Game(1024, 768, Phaser.AUTO, 'game');
|
|
|
|
// Add the States your game has.
|
|
// You don't have to do this in the html, it could be done in your Boot state too, but for simplicity I'll keep it here.
|
|
game.state.add('Boot', BasicGame.Boot);
|
|
game.state.add('Preloader', BasicGame.Preloader);
|
|
game.state.add('MainMenu', BasicGame.MainMenu);
|
|
game.state.add('Game', BasicGame.Game);
|
|
|
|
// Now start the Boot state.
|
|
game.state.start('Boot');
|
|
|
|
})();
|
|
</script>
|
|
|
|
</body>
|
|
</html> |