Welcome to WebmasterWorld Guest from 34.204.191.31

Forum Moderators: open

Message Too Old, No Replies

How do you add an HTML5 game to a website?

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

New User

Top Contributors Of The Month

joined:Oct 5, 2016
posts:25
votes: 4


I've tried searching everywhere for this and I can't find anything that actually answers the question in detail.
5:59 pm on Aug 20, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12913
votes: 893


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.
6:22 pm on Aug 20, 2018 (gmt 0)

New User

Top Contributors Of The Month

joined:Oct 5, 2016
posts:25
votes: 4


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]

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

Senior Member from US 

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12913
votes: 893


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.
9:31 pm on Aug 20, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15900
votes: 876


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.
11:51 pm on Aug 20, 2018 (gmt 0)

Junior Member from US 

5+ Year Member

joined:Feb 11, 2010
posts: 146
votes: 2


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
11:52 pm on Aug 20, 2018 (gmt 0)

Junior Member from US 

5+ Year Member

joined:Feb 11, 2010
posts: 146
votes: 2


b sure to let us know how you make out with it.
2:29 am on Aug 21, 2018 (gmt 0)

New User

Top Contributors Of The Month

joined:Oct 5, 2016
posts:25
votes: 4


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.
2:30 am on Aug 21, 2018 (gmt 0)

New User

Top Contributors Of The Month

joined:Oct 5, 2016
posts:25
votes: 4


Thank you TypoManiac, I'll look into that and see if I can get it working. Appreciate the help.
4:49 am on Aug 21, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12913
votes: 893


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
6:07 am on Aug 21, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:10481
votes: 1099


Aside: pak files are the equivalent of zip.
6:09 am on Aug 21, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:10481
votes: 1099


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

(Humor!)