HTML5 for mobile - what am I missing?

Monkey Targets Forums/HTML5/HTML5 for mobile - what am I missing?

Gerry Quinn(Posted 2014) [#1]
I've had a proposal to adapt a game of mine for a newspaper website and its mobile apps. They wanted it to be in HTML5 rather than Flash, but thanks to Monkey that's no problem.

I checked out mobile apps on the web and as far as I can see they tend to just run HTML5 like a browser along with maybe some caching. So I made up a sample Monkey HTML5 project as a web page loading JavaScript as usual, and sent it to them so we would be on the same wavelength.

They came back to me saying they could not test it, "To test the puzzle we need a link to where we can call for your HTML5 player. We will use it within an iframe"

What do they mean by this? I assumed their mobile app would have a built-in HTML5 player or would use the standard one on the mobile device. The test project runs fine on a Windows or Android browser.

Assuming they are talking about something reasonably standard (I don't know much about web technology, editing HTML with Notepad was always good enough for me) can someone explain it and/or tell me how to put a Monkey HTML5 build in a format they will like?


dawlane(Posted 2014) [#2]
Sounds to me that they want you to host it on your site so they can sandbox it with an iframe.
http://www.w3schools.com/tags/tag_iframe.asp
http://www.quackit.com/html_5/tags/html_iframe_tag.cfm
http://msdn.microsoft.com/en-us/hh563496.aspx


Gerry Quinn(Posted 2014) [#3]
That's not it - they want to host it.

It's possible they just made a mistake, but I was wondering if there was a real issue that I don't understand.


dawlane(Posted 2014) [#4]
I think you need to get them to clarify what they mean by 'HTML5 player'. The only thing for HTML 5 player that keeps coming up on Google is for audio/video play back.
If I was using and iframe for a Monkey game, I would use a minimal MonkeyGame.html stub and call it from an iframe in another html document.
Typing 'iframe html5 games' into Google showed a couple of tips on publising HTML5 games on Kongregate and Construct 2 and a few things that you need to be aware of like the keyboard not being captured and security issues.
http://www.monkeycoder.co.nz/Community/posts.php?topic=5739
https://www.scirra.com/tutorials/655/tips-on-publishing-html5-games-to-the-web
http://www.qilineggs.com/2013/06/publishing-html5-game-to-kongregate-and.html


Difference(Posted 2014) [#5]
It sound to me like they would like you to upload your build->html5 folder to a webhosting you have access to.

Then send them the URL to MonkeyGame.html in that folder, like this: ht tp://mysite.com/mygame/MonkeyGame.html
You could tweak and rename MonkeyGame.html first so it is good for embedding in an iframe.


Gerry Quinn(Posted 2014) [#6]
I sent them a zip file containing such a renamed MonkeyGame.html, along with the JavaScript main.js and the data folder. Maybe they just didn't know what to do with it, or tried to run it locally. I thought web developers would understand such things.

I'll make a sample in an iframe, I guess, and also put it on a website,