Forum Moderators: open

Message Too Old, No Replies

How do you add an HTML5 game to a website?

         

WMaster99

5:07 pm on Aug 20, 2018 (gmt 0)

5+ Year Member Top Contributors Of The Month



I've tried searching everywhere for this and I can't find anything that actually answers the question in detail.

keyplyr

5:59 pm on Aug 20, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Usually the place to look is the source.

Where are you getting this game; isn't there any documentation? There should be a couple packs of files to download along with a readme.txt.

If not, do some web searches using the game's title.

WMaster99

6:22 pm on Aug 20, 2018 (gmt 0)

5+ Year Member Top Contributors Of The Month



I can download the .zip of the game but it only contains .pak files? No clue what to do with those. I also tried adding an html5 game that had all the files (javascripts, .htmls, etc) but when I tried to play the game, the buttons and controls and everything were just displaying as text with no functionality.



[edited by: not2easy at 8:30 pm (utc) on Aug 20, 2018]
[edit reason] removed auto-download link [/edit]

keyplyr

6:38 pm on Aug 20, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Please do not post download links.

Go to itch.io, find the game's documentation. Contact the developer if need be.

That's what I meant by going to the source. That's where your answers are.

lucy24

9:31 pm on Aug 20, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm missing something. If the game belongs to you (that is, it's your copyright), why do you need to download it from an outside source? And if it doesn't belong to you, why are you putting it on your website? If it's clearly identified as public domain, surely the documentation tells you what to do.

typomaniac

11:51 pm on Aug 20, 2018 (gmt 0)

10+ Year Member Top Contributors Of The Month



Don't know much about .pak files other than they're pretty common with games, but at any rate, check out this site and get something that will open them. Or google for a program to open a .pak file yourself.
[fileinfo.com ]
~good luck

typomaniac

11:52 pm on Aug 20, 2018 (gmt 0)

10+ Year Member Top Contributors Of The Month



b sure to let us know how you make out with it.

WMaster99

2:29 am on Aug 21, 2018 (gmt 0)

5+ Year Member Top Contributors Of The Month



Lucy24, it's not my game. It's a freely available game that anyone can download and add to their website. The creator offers it for free. I've never added an html5 game to a website so I'm a noob at this and simply don't know what to do.

Sorry about posting links. Wasn't aware we weren't allowed to post them.

WMaster99

2:30 am on Aug 21, 2018 (gmt 0)

5+ Year Member Top Contributors Of The Month



Thank you TypoManiac, I'll look into that and see if I can get it working. Appreciate the help.

keyplyr

4:49 am on Aug 21, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



One thing to do when applying something to your site from somewhere else...

Look at the code of the application. Find the references to the peripheral files (CSS, JavaScript, Images, etc.) Edit that code to point to where *you* are calling those files.

Example: the app code may have a link: /scripts/game.js

You may put all your JS in a folder named /j-scripts/

So change the code in the app to: /j-scripts/game.js

tangor

6:07 am on Aug 21, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Aside: pak files are the equivalent of zip.

tangor

6:09 am on Aug 21, 2018 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Aside 2: A game? Folks gone zombie mindless on the web already and adding one more place to go brain dead? Whew!

(Humor!)