# Getting started with HTML5

**URL:** <https://forums.solar2d.com/t/getting-started-with-html5/149662>\
**Category:** HTML5\
**Created:** [March 20, 2018, 4:08pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662 "2018-03-20T16:08:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [March 20, 2018, 4:08pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/1 "2018-03-20T16:08:04Z")

</div>

To test your HTML5 app, you will need to upload the entire folder to your web server and access that folder through your HTML5 compatible browser. Due to JavaScript security restrictions, HTML5 builds only work if they are served from a web server.

If you have Python installed you can test locally by starting a web browser on your computer and accessing your HTML5 build folder in your browser. The easiest way to get it served on macOS is to drag your build folder on to Terminal.app then paste

```
python -m SimpleHTTPServer

```

into the terminal window. Then open [http://localhost:8000/index.html](http://localhost:8000/index.html) in you web browser. For Windows, with Python installed, run cmd.exe and then use the cd command to change directories to your build folder and run the same Python command and then open your browser to the above URL. If you need to see the console log, please open [http://localhost:8000/index-debug.html](http://localhost:8000/index-debug.html) instead.

Please post questions about HTML5 here.

Rob

---

<div class="post-metadata">

**Author:** ![jhanca\_s\_o2011](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/e95f7d/32.png) [@jhanca\_s\_o2011](https://forums.solar2d.com/u/jhanca_s_o2011)\
**Post date:** [March 20, 2018, 4:12pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/2 "2018-03-20T16:12:59Z")

</div>

Just what I expected, fantastic! 😃 ,I’m from Perú.

---

<div class="post-metadata">

**Author:** ![evanspro](https://forums.solar2d.com/user_avatar/forums.solar2d.com/evanspro/32/113_2.png) [@evanspro](https://forums.solar2d.com/u/evanspro)\
**Post date:** [March 20, 2018, 4:55pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/3 "2018-03-20T16:55:40Z")

</div>

**First of all : this is amazing news !** 🙂

I’ve just tried&nbsp;converting my game into html5 but I’ve got two errors as soon as I start building my app :

```
17:51:50.793 ERROR: unable to download plugin.openssl (com.coronalabs). Error message: 17:51:50.793 \<?xml version="1.0" encoding="UTF-8"?\> 17:51:50.793 \<Error\>\<Code\>NoSuchKey\</Code\>\<Message\>The specified key does not exist.\</Message\>\<Key\>com.coronalabs/plugin.openssl/2016.2883/web/data.tgz\</Key\>\<RequestId\>XXXXXXX\</RequestId\>\<HostId\>XXXXX=\</HostId\>\</Error\> 17:52:22.336 ERROR: Out of Memory error 17:52:22.336 not enough memory

```

I’ve been able to get rid of the UTF-8 error / Facebook api / etc / (by removing all the plugin in my build.setting file), so I’m fine with this one. But i’m not sure what to do with the “Out of Memory error”…

Oh and are there any Corona SDK / HTML5 documentation available somewhere ?

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [March 20, 2018, 5:05pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/4 "2018-03-20T17:05:30Z")

</div>

As noted in the announcement,&nbsp;[https://coronalabs.com/blog/2018/03/20/html5-builds-are-now-in-open-beta/](https://coronalabs.com/blog/2018/03/20/html5-builds-are-now-in-open-beta/)

Many plugins cannot be converted to HTML5.&nbsp; The ones that can may not have been converted yet.&nbsp;

There is no specific HTML5 documentation.&nbsp; You just need to do File-\>Build-\>HTML5 and to control your screen size, it uses the same build.settings as desktop builds:&nbsp;[https://docs.coronalabs.com/guide/distribution/win32Build/index.html#windowsettings](https://docs.coronalabs.com/guide/distribution/win32Build/index.html#windowsettings)

Rob

---

<div class="post-metadata">

**Author:** ![conor1](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/53a042/32.png) [@conor1](https://forums.solar2d.com/u/conor1)\
**Post date:** [March 20, 2018, 5:07pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/5 "2018-03-20T17:07:11Z")

</div>

This is stunning. Well done guys.

I ported my Tides app and it works. Uses xml as data, converts times and tide heights (sorry landlubbers) into screen coordinates and draws the beautiful sine curves. Horizontal scrolling works, text labels well placed on my tide curve.

Available to view at [apptoonz.com/corona/irishtides/](http://apptoonz.com/corona/irishtides/)

I’ll leave it there for a while. No intention of using this app in HTML5, but it’s one hell of a test.

Obviously I stripped out plugins - appodeal, IAP etc. Won;t work anyway.

Brilliant, Brilliant, Brilliant.

---

<div class="post-metadata">

**Author:** ![evanspro](https://forums.solar2d.com/user_avatar/forums.solar2d.com/evanspro/32/113_2.png) [@evanspro](https://forums.solar2d.com/u/evanspro)\
**Post date:** [March 20, 2018, 5:18pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/6 "2018-03-20T17:18:19Z")

</div>

> [@rob](#):
>
> As noted in the announcement,&nbsp;[https://coronalabs.com/blog/2018/03/20/html5-builds-are-now-in-open-beta/](https://coronalabs.com/blog/2018/03/20/html5-builds-are-now-in-open-beta/)
> 
> Many plugins cannot be converted to HTML5.&nbsp; The ones that can may not have been converted yet.&nbsp;
> 
> There is no specific HTML5 documentation.&nbsp; You just need to do File-\>Build-\>HTML5 and to control your screen size, it uses the same build.settings as desktop builds:&nbsp;[https://docs.coronalabs.com/guide/distribution/win32Build/index.html#windowsettings](https://docs.coronalabs.com/guide/distribution/win32Build/index.html#windowsettings)
> 
> Rob

I must admit I didn’t read to the end of the post as I was way too excited to try it first 😃 … but I did understood that some plugin wouldn’t work 🙂

My main issue is the “Out of memory error” that shows up, even after getting rid of all the plugins. I’ll do more test to try to see where it’s coming from.

---

<div class="post-metadata">

**Author:** ![conor1](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/53a042/32.png) [@conor1](https://forums.solar2d.com/u/conor1)\
**Post date:** [March 20, 2018, 5:27pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/7 "2018-03-20T17:27:38Z")

</div>

Update: irishtides works great on android/chrome and iphone5s/chrome.

Javascript fail on iphone5s/safari.&nbsp;

No doubt lots to learn and bugs to squash. Looking forward to using this.

Thanks guys.

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [March 20, 2018, 5:29pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/8 "2018-03-20T17:29:45Z")

</div>

I’ve asked Engineering to look into this.

Rob

---

<div class="post-metadata">

**Author:** ![roballison182](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/r/94ad74/32.png) [@roballison182](https://forums.solar2d.com/u/roballison182)\
**Post date:** [March 20, 2018, 7:58pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/9 "2018-03-20T19:58:33Z")

</div>

Awesome work guys 🙂

---

<div class="post-metadata">

**Author:** ![sbullock](https://forums.solar2d.com/user_avatar/forums.solar2d.com/sbullock/32/252_2.png) [@sbullock](https://forums.solar2d.com/u/sbullock)\
**Post date:** [March 20, 2018, 9:36pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/10 "2018-03-20T21:36:16Z")

</div>

Stunning, awesome, brilliant. I just looked at conor1’s Irish Tides app on my iPad. I’m super impressed by the Corona team’s accomplishment. My thanks to all that worked so hard on this! Steve

---

<div class="post-metadata">

**Author:** ![conor1](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/53a042/32.png) [@conor1](https://forums.solar2d.com/u/conor1)\
**Post date:** [March 20, 2018, 10:11pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/11 "2018-03-20T22:11:17Z")

</div>

Rob,

Is it reasonable to assume this development should be usable for Facebook Messenger games? Maybe Facebook games in general (I’m not yet familiar with FB Games).

Conor

---

<div class="post-metadata">

**Author:** ![gianmichele](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/g/848f3c/32.png) [@gianmichele](https://forums.solar2d.com/u/gianmichele)\
**Post date:** [March 20, 2018, 10:51pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/12 "2018-03-20T22:51:25Z")

</div>

Quick question: is this done through emscripten or is a custom html5 engine on export? How’s performance on mobile?

---

<div class="post-metadata">

**Author:** ![Develephant](https://forums.solar2d.com/user_avatar/forums.solar2d.com/develephant/32/2729_2.png) [@Develephant](https://forums.solar2d.com/u/Develephant)\
**Post date:** [March 20, 2018, 11:04pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/13 "2018-03-20T23:04:05Z")

</div>

Hi,

Amazing stuff!&nbsp; 😃

-dev

---

<div class="post-metadata">

**Author:** ![sbullock](https://forums.solar2d.com/user_avatar/forums.solar2d.com/sbullock/32/252_2.png) [@sbullock](https://forums.solar2d.com/u/sbullock)\
**Post date:** [March 20, 2018, 11:06pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/14 "2018-03-20T23:06:53Z")

</div>

That’s a timely question Conor. I’m at the Game Developer Conference in S.F. and two of the very biggest pushes from the giants involve the word “instant”. Multiple presentations have been made over 2 days by both Google and Facebook pushing their new game tech. In a nutshell: Google’s “Instant Apps” are sub-10 Mb versions of full apps that can be played entirely in a device’s memory without an install. So players can tap a TRY IT button and be playing a game in seconds. Big game companies have been testing Instant Apps since last Fall. Now it is open to everyone. This isn’t pertinent to HTML 5; but it is worth everyone’s attention. Link: [https://www.theverge.com/2018/3/19/17137088/instant-apps-game-developers-google-play-mobile-ads-agones-kubernetes](https://www.theverge.com/2018/3/19/17137088/instant-apps-game-developers-google-play-mobile-ads-agones-kubernetes) Facebook’s “Instant Games” is their big focus and push. These are small footprint HTML 5 games played in Messenger. Facebook has had some large companies (i.e. Zynga, King, etc.) making the initial games for this space and the play numbers are enormous — even for Facebook. Here’s their main intro doc on this: [https://developers.facebook.com/docs/games/instant-games](https://developers.facebook.com/docs/games/instant-games) . As an aside, both Cocos and Unity have made a big deal about their support for both Instant Apps (Google) and Instant Games (Facebook). This is certainly too early to try to connect this HTML 5 Beta to “Instant Games” — but it is cool to think that the potential might be here.

---

<div class="post-metadata">

**Author:** ![roaminggamer](https://forums.solar2d.com/user_avatar/forums.solar2d.com/roaminggamer/32/134_2.png) [@roaminggamer](https://forums.solar2d.com/u/roaminggamer)\
**Post date:** [March 20, 2018, 11:58pm UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/15 "2018-03-20T23:58:30Z")

</div>

For anyone who wants to see some Corona Content as HTML5 in action go here to see most of my game templates and some other stuff, running as HTML5  
&nbsp;

[https://roaminggamer.github.io/RGDocs/pages/html5\_tests/](https://roaminggamer.github.io/RGDocs/pages/html5_tests/)

\*\*WARNING\*\* If there is a pause after the download, give it a second.&nbsp; I’m not sure why but some of these take a moment to start.&nbsp;&nbsp;

It could be me, or it could just be a beta thing.&nbsp; 🙂

---

<div class="post-metadata">

**Author:** ![Develephant](https://forums.solar2d.com/user_avatar/forums.solar2d.com/develephant/32/2729_2.png) [@Develephant](https://forums.solar2d.com/u/Develephant)\
**Post date:** [March 21, 2018, 12:21am UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/16 "2018-03-21T00:21:21Z")

</div>

Hi,

@roaminggamer works great for me. Awesome stuff!

-dev

---

<div class="post-metadata">

**Author:** ![cyberparkstudios](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/a6a055/32.png) [@cyberparkstudios](https://forums.solar2d.com/u/cyberparkstudios)\
**Post date:** [March 21, 2018, 12:54am UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/17 "2018-03-21T00:54:55Z")

</div>

@roaminggamer very impressive!

---

<div class="post-metadata">

**Author:** ![ymmtny](https://forums.solar2d.com/user_avatar/forums.solar2d.com/ymmtny/32/144_2.png) [@ymmtny](https://forums.solar2d.com/u/ymmtny)\
**Post date:** [March 21, 2018, 1:37am UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/18 "2018-03-21T01:37:25Z")

</div>

[http://kwiksher.com/demo/kwik-the-cat/](http://kwiksher.com/demo/kwik-the-cat/)

I published my demo book made with Kwik. 12pages 25mb of .data file.&nbsp; Perfect on chrome and Safari on Mac

---

<div class="post-metadata">

**Author:** ![sbullock](https://forums.solar2d.com/user_avatar/forums.solar2d.com/sbullock/32/252_2.png) [@sbullock](https://forums.solar2d.com/u/sbullock)\
**Post date:** [March 21, 2018, 2:06am UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/19 "2018-03-21T02:06:38Z")

</div>

@roaminggamer - your stuff rocks!

Steve

---

<div class="post-metadata">

**Author:** ![Sayhong\_s\_CTO](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/8e8cbc/32.png) [@Sayhong\_s\_CTO](https://forums.solar2d.com/u/Sayhong_s_CTO)\
**Post date:** [March 21, 2018, 2:08am UTC](https://forums.solar2d.com/t/getting-started-with-html5/149662/20 "2018-03-21T02:08:20Z")

</div>

Numeric Input Only textField has problem.

[Next page](https://forums.solar2d.com/t/getting-started-with-html5/149662.md?page=2)
