HTML5

    See the following example on how to prepare your Heaps project for HTML5.

    • You will also have to create an index.html that includes your .js haxe output.
    • Also put a in body of the HTML-file.

    Basic html

    1. <!DOCTYPE html>
    2. <html lang="en">
    3. <meta charset="utf-8">
    4. <title>Heaps Game</title>
    5. <meta name="format-detection" content="telephone=no" />
    6. <meta name="apple-mobile-web-app-capable" content="yes" />
    7. <meta name="mobile-web-app-capable" content="yes" />
    8. <style>
    9. </style>
    10. </head>
    11. <body>
    12. <canvas id="webgl"></canvas>
    13. <script src="game.js"></script>