I need a little help getting my HTML5 game working

Hey everyone! I am working on making a platformer with Armory and so far I’ve made quite a bit of progress! However, I’m not sure how to put this up on my website that I made for it. If you’re wondering what the website is it is lightstrafe.weebly.com. I am trying to make my first HTML5 game so this is all new to me. I have tried to put everything up on GitLab but it just seems to not do anything. Here’s my index.html on my website:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <style>
    body {
        margin: 0;
    }
    </style>

    <title>Armory</title>
</head>
<body style="margin: 0; padding: 0;">

    <canvas style="width: 100vw; height: 100vh; display: block;" id='khanvas'></canvas>

    <script src='https://gitlab.com/TriVoxel/lightstrafe-online/raw/HTML5/kha.js'></script>
</body>
</html>

This index is inside of an “embed HTML” block so it should work. So do I need to host the files on my website or do I maybe need to change a setting so that it will load from GitLab? Any help will be appreciated! :slight_smile:

I don’t think script can be called from outside(Gitlab), you will have to put the game in server.

How do I do that @BlackGoku36? I don’t have any servers and I don’t know if there are any I can upload to.

did you change this right?-> <script src=‘https://gitlab.com/TriVoxel/lightstrafe-online/raw/HTML5/kha.js’></script>
It was suppose to be just kha.js.

Above is your website right?
You will need to put all folders(game folders) where your website(lightstrafe.weebly.com) is kept.

I don’t know that much about hosting and stuff because i never did it.
Or maybe you could try itch.io, I heard it is free, maybe no royalities too and you can host your game online. Its worth to check out.

Stuff kha can access on your website (https://playlso.000webhostapp.com/):
Screenshot%20from%202018-09-29%2011-44-28
Looks sparser than I imagined.

Seems like a cool game, can’t wait to try it out.