Skip to main content
Inspiring
Feb 21, 2023 8:43 AM UTC
Question

How to make HTML5 game accessible to users

Hi. I've tried to recreate a simple AS3 game with the HTML5 canvas, using Javascript. This is the first time I've done this and it's for pupils and staff to use at our school.

It all works fine when I test it from Animate - it opens in a browser and plays. But when I publish it and I get HTML, JS and FLA files, clicking on the HTML file just brings up the visuals, but it isn't interactive in any way. I've tried using the 'Include Javascript in HTML' option, but that didn't make any difference.

Our school has a website, but it doesn't allow for installing game files. Is there a way for people in the school to access and play it locally, maybe from the server - or even from individual PCs' C drives?

The reason I don't want to use AS3 is because the pupils mainly use iPads now.

Thanks.

This topic is closed to new replies. Start a new post to keep the conversation going.

20 replies

Inspiring
Mar 1, 2023 10:42 AM UTC

Hi. I've sorted it, thanks. I'd set the site up incorrectly on IIS. Thank you all for your help.

Translate
kglad
Community Expert
Community Expert
Mar 1, 2023 1:11 PM UTC

@pauls73381349 

 

you're welcome.

Translate
Colin Holgate
Inspiring
Feb 21, 2023 2:50 PM UTC

The include JavaScript would have helped with some sescurity issues. The other thing you can do is uncheck any spritesheet options, let it create individual images. That would then test locally ok, and you could publish again using spritesheets for the server based version, to help the page load quicker.

I didn't yet figure out a way for my iPad to open local HTML files.

Translate
kglad
Community Expert
Community Expert
Feb 21, 2023 1:48 PM UTC

they should be able to use the html, js and source folder(s), from any web server, but not locally

Translate
Inspiring
Feb 23, 2023 12:59 PM UTC

Thanks for the reply. I've now discovered IIS on our server and I've put the html and js files, plus the images and sounds folders in the root directory. I can now see the game and interact with some of it but not all - and there's no sound. Am I missing something?

Translate
kglad
Community Expert
Community Expert
Feb 23, 2023 2:20 PM UTC

i'm not sure that should be in your root directory.  test by creating a game directory and putting the files there.

 

if you detect any problem while testing open your browser's developer console and track the issue.  if you have trouble, post a link to your online game and explain the problem and how to trigger it.

Translate