index.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. 
  2. <!DOCTYPE HTML>
  3. <html>
  4. <head>
  5. <div id='wx_pic' style='margin:0 auto;display:none;'>
  6. <img src='photo.jpg' />
  7. </div>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  9. <title>我盖了个比郭敬明还高的塔,你来试试吧!</title>
  10. <link rel="stylesheet" href="css/stylesheet.css" type="text/css" charset="utf-8">
  11. <meta charset="utf-8">
  12. <meta http-equiv="X-UA-Compatible" content="chrome=1, IE=9">
  13. <meta name="format-detection" content="telephone=no">
  14. <meta name="HandheldFriendly" content="true">
  15. <meta name="apple-mobile-web-app-capable" content="yes">
  16. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  17. <meta name="format-detection" content="telephone=no">
  18. <meta name="HandheldFriendly" content="true">
  19. <meta name="robots" content="noindex,nofollow">
  20. <meta name="apple-mobile-web-app-capable" content="yes">
  21. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  22. <meta name="apple-mobile-web-app-title" content="The Tower">
  23. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  24. <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
  25. <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  26. <script type="text/javascript">
  27. window.gameLangs = ['en', 'es', 'fr', 'de', 'it', 'ru', 'tr', 'pt'];
  28. window.gameJS = [
  29. 'src/phaser.min.js',
  30. 'src/Boot.js',
  31. 'src/Preloader.js',
  32. 'src/Game.js?v=1',
  33. 'src/Texts.js',
  34. 'src/Config.js',
  35. 'src/SoundManager.js',
  36. 'src/ControlBrick.js',
  37. 'src/Tower.js',
  38. 'src/PartGenerator.js',
  39. 'src/GUI.js',
  40. 'src/HiddingButton.js',
  41. 'src/Cloud.js',
  42. 'src/Bird.js'
  43. ]
  44. window.gameOnLoadScript = "startGame();";
  45. </script><script type="text/javascript" src="./assets/softgames-1.1.js"></script><script type="text/javascript" src="./assets/sg.hooks.js"></script>
  46. </head>
  47. <body>
  48. <div id="game"></div>
  49. <div id="orientation"></div>
  50. <script type="text/javascript">
  51. var lang;
  52. var game;
  53. var iPhone5;
  54. var iPhone4;
  55. startGame = (function () {
  56. lang = SG.lang; //SG_Hooks.getLanguage(['en', 'ru']); // ,'de', 'es', 'fr', 'it','pt', 'tk'
  57. var iPhone = navigator.userAgent.toLowerCase().indexOf('iphone') != -1;
  58. var pixelRatio = window['devicePixelRatio'] || 1;
  59. iPhone5 = iPhone && pixelRatio==2 && window.screen.height == 568;
  60. iPhone4 = !iPhone5 && iPhone;
  61. var width = 320;
  62. var height = 480;
  63. var product = window.innerWidth * window.innerHeight;
  64. if( iPhone5 )
  65. height = 530;
  66. if( product > 400000 || pixelRatio==2){
  67. width *= 2;
  68. height *= 2;
  69. }
  70. game = new Phaser.Game(width, height, Phaser.CANVAS, 'game');
  71. game.state.add('Boot', TheTower.Boot);
  72. game.state.add('Game', TheTower.Game);
  73. game.state.add('Preloader', TheTower.Preloader);
  74. game.state.start('Boot');
  75. // (function() {
  76. // var play68host = new RegExp(/vdcom.cn/i);
  77. // if(play68host.test(window.location.hostname)){
  78. // game.state.add('Boot', TheTower.Boot);
  79. // game.state.add('Game', TheTower.Game);
  80. // game.state.add('Preloader', TheTower.Preloader);
  81. // game.state.start('Boot');
  82. // }else{setTimeout(function(){alert('最好玩的游戏就在空中传媒网络科技')}, 10000);}
  83. // })();
  84. });
  85. </script>
  86. <script type="text/JavaScript">
  87. window.shareData={
  88. 'title':'叠了个塔',
  89. 'link':'http://game.ikongzhong.cn/games/dlgt/',
  90. 'imgurl':'http://game.ikongzhong.cn/games/dlgt/icon.png'
  91. }
  92. window.shareFriendData={
  93. 'title':'叠了个塔',
  94. 'content':'关注空中传媒网络,更多好玩的游戏等着你。',
  95. 'link':'http://game.ikongzhong.cn/games/dlgt/',
  96. 'imgurl':'http://game.ikongzhong.cn/games/dlgt/icon.png'
  97. }
  98. </script>
  99. <script type="text/JavaScript" src="http://gc.veiying.cn/code"></script>
  100. </body>
  101. </html>