Html code for games

Hello, I would like to host my students games in a stand alone pc without internet.
I am trying to get game code and save as html however it comes out as a long gameboy style.
does anyone know how i can best get html code for the games suitable for pc? I am thinking i need to know the right hardware to save it for that is compatable with a pc screen ration?
IDK thanks for any help, even co pilot is losing patience with me

3 Likes

try kiosk

2 Likes

The easiest way to do this would be using the browser app version, with all the games added downloaded before going offline, but that would require a PC that can run Chrome, so that may not be the best option.

1 Like

If you use the GItHub integration and create a release, then you can have a website that shows the simulator. Then you might be able to use some tools to download the entire website and it’s JS. You can see how I do it in my MakeCode Arcade to Electron program.

I’ve also been working on a newer version of that tool as well called MakeCode Arcade to App which will be able to spit out static files that you can host anywhere or an executable with Electron or Tauri.

3 Likes

Hi I don’t have an exact answer but if you have GitHub you might be able to clone your game to the system and MakeCode now offers VS code as a way to run it so you might be able to do something with that.
Good luck

~RobbyZero

1 Like

Hello! I did this 4 times with my middle schoolers last year. As @CodeOnTheCob suggested, I highly recommend checking out Kiosk mode - it was the solution I settled on for the exact scenario you’re describing. You may need to connect to the internet when you load them up, but you shouldn’t need to once you have, as far as I’m aware.

2 Likes

Thanks, Yes I am doing exactly this, although it would be great to be able to delete the games that are in there and just have student games.
Thanks for your reply

1 Like

Thank you, this sounds amazing, I had a look at your instructions, it will be a steep learning curve for me. Thanks for sharing the instructions.

1 Like

Thanks for your reply, I have begun looking at the github connection.

Hi, Thank you, this is what I will do, did you find a way to delete the games that come in Kiosk so there were only your student games?

Hi mswild! If you use this link https://arcade.makecode.com/--kiosk?clean=1 (notice the url flag clean=1), your kiosk will just show the games that have been uploaded to it. Hope that helps!

2 Likes

Thanks, I have been experimenting with the Kiosk app. It looks like my best option.

1 Like

Only the projects you created should be cashed. If you open the app while disconnected from the internet, those other demo projects will not show up!

1 Like