Advertisement
Dmi7ry

GMS HTML5

Dec 9th, 2017
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.81 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     <head>
  4.         <!-- Generated by GameMaker:Studio http://www.yoyogames.com/gamemaker/studio -->
  5.         <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6.         <meta http-equiv="pragma" content="no-cache"/>
  7.         <meta name="apple-mobile-web-app-capable" content="yes" />
  8.         <meta name ="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
  9.         <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
  10.         <meta charset="utf-8"/>
  11.  
  12.         <!-- Set the title bar of the page -->
  13.         <title>Created with GameMaker: Studio</title>
  14.  
  15.         <!-- Set the background colour of the document -->
  16.         <style>
  17.             body {
  18.               background: #000000;
  19.               color:#cccccc;
  20.               margin: 0px;
  21.               padding: 0px;
  22.               border: 0px;
  23.             }
  24.             canvas {
  25.                       image-rendering: optimizeSpeed;
  26.                       -webkit-interpolation-mode: nearest-neighbor;
  27.                       -ms-touch-action: none;
  28.                       margin: 0px;
  29.                       padding: 0px;
  30.                       border: 0px;
  31.             }
  32.             :-webkit-full-screen #canvas {
  33.                  width: 100%;
  34.                  height: 100%;
  35.             }
  36.             div.gm4html5_div_class
  37.             {
  38.               margin: 0px;
  39.               padding: 0px;
  40.               border: 0px;
  41.             }
  42.             /* START - Login Dialog Box */
  43.             div.gm4html5_login
  44.             {
  45.                  padding: 20px;
  46.                  position: absolute;
  47.                  border: solid 2px #000000;
  48.                  background-color: #404040;
  49.                  color:#00ff00;
  50.                  border-radius: 15px;
  51.                  box-shadow: #101010 20px 20px 40px;
  52.             }
  53.             div.gm4html5_cancel_button
  54.             {
  55.                  float: right;
  56.             }
  57.             div.gm4html5_login_button
  58.             {
  59.                  float: left;
  60.             }
  61.             div.gm4html5_login_header
  62.             {
  63.                  text-align: center;
  64.             }
  65.             /* END - Login Dialog Box */
  66.             :-webkit-full-screen {
  67.                width: 100%;
  68.                height: 100%;
  69.             }
  70.         </style>
  71.     </head>
  72.  
  73.     <body>
  74.         <div class="gm4html5_div_class" id="gm4html5_div_id">
  75.             <!-- Create the canvas element the game draws to -->
  76.             <canvas id="canvas" width="960" height="640">
  77.                <p>Your browser doesn't support HTML5 canvas.</p>
  78.             </canvas>
  79.         </div>
  80.  
  81.         <!-- Run the game code -->
  82.         <script type="text/javascript" src="html5game/mobile_html5.js?CZHYB=1914300720"></script>
  83.     </body>
  84. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement