January 21, 2021, 05:35:41 AM

Author Topic: uploading a cerebus project into my website question  (Read 282 times)

Offline Hardcoal

  • Hero Member
  • *****
  • Posts: 535
  • nothing is personal
uploading a cerebus project into my website question
« on: October 20, 2020, 03:57:24 PM »
How do i upload a cerebus project into my website?
and than run it :)
Lets make the world a better place

Offline Matty

  • Hero Member
  • *****
  • Posts: 1339
    • MattiesGames
Re: uploading a cerebus project into my website question
« Reply #2 on: October 20, 2020, 07:26:48 PM »
My two cents applies to any html5 game not just cerberusx

Go to your web maintenance program or ftp system.

Create a sub folder on your website eg 'mygame'

Find your html5 game on your pc - it probably has a file called mygame.html as well as a data folder full of your game's media assets. 

Rename mygame.html to index.html.

Upload index.html and all the subfolders to your website 'mygame' folder.

Then to run your game do the following:

Open browser and point to www.yourwebsite/mygame/ and it should just run.

Some differences between running locally and on website :

In some browsers such as ie the localStorage.setitem and .getitem commands don't function locally only on web.

Audio plays correctly only on desktop browsers easily.  As soon as you go to mobile there are heaps of tricks you need to employ to play audio.

And much more..
I eat cheese in the trees when its eight degrees


SimplePortal 2.3.6 © 2008-2014, SimplePortal