index.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Cocos Creator | slitherio</title>
  6. <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1, minimum-scale=1,maximum-scale=1"/>
  7. <meta name="apple-mobile-web-app-capable" content="yes"/>
  8. <meta name="full-screen" content="yes"/>
  9. <meta name="screen-orientation" content="portrait"/>
  10. <meta name="x5-fullscreen" content="true"/>
  11. <meta name="360-fullscreen" content="true"/>
  12. <meta name="renderer" content="webkit"/>
  13. <meta name="force-rendering" content="webkit"/>
  14. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
  15. <link rel="stylesheet" type="text/css" href="style-desktop.css"/>
  16. </head>
  17. <body>
  18. <h1 class="header">slitherio</h1>
  19. <div id="GameDiv" style="width:1280px; height: 720px;">
  20. <canvas id="GameCanvas" width="1280" height="720"></canvas>
  21. <div id="splash">
  22. <div class="progress-bar stripes">
  23. <span style="width: 0%"></span>
  24. </div>
  25. </div>
  26. </div>
  27. <p class="footer">Created with <a href="http://cocos.com/cocoscreator" title="cocos creator">Cocos Creator</a></p>
  28. <script src="src/settings.js" charset="utf-8"></script>
  29. <script src="main.js" charset="utf-8"></script>
  30. <script type="text/javascript">
  31. (function () {
  32. // open web debugger console
  33. if (typeof VConsole !== 'undefined') {
  34. window.vConsole = new VConsole();
  35. }
  36. var splash = document.getElementById('splash');
  37. splash.style.display = 'block';
  38. var cocos2d = document.createElement('script');
  39. cocos2d.async = true;
  40. cocos2d.src = window._CCSettings.debug ? 'cocos2d-js.js' : 'cocos2d-js-min.js';
  41. var engineLoaded = function () {
  42. document.body.removeChild(cocos2d);
  43. cocos2d.removeEventListener('load', engineLoaded, false);
  44. window.boot();
  45. };
  46. cocos2d.addEventListener('load', engineLoaded, false);
  47. document.body.appendChild(cocos2d);
  48. })();
  49. </script>
  50. </body>
  51. </html>