Getting started with HTML5

Hi,

I was testing the html5 build for my game but got a Build Error #12 with the following message in the Simulator Console:

17:02:08.755  Using custom build id from app bundle: 00000 (AppSettings.lua)

17:02:08.755  

17:02:08.755  Using custom Build Id 00000

17:02:10.111  buildWebApp: No files in app found

Also, the app’s .data output file file has zero bytes.  I am using Corona build 2018.3278.  Desktop and android builds works fine.  What’s the fix to to this problem?

Arnulfo

Would it be safe to say that this HTML 5 build can be used to create a game in Facebook Canvas? And if so, what is the best way to connect with the FB API, the FB plugin v4a or through direct JS?

Has anyone created a sample FB Canvas app using Corona HTML 5?

>>Would it be safe to say that this HTML 5 build can be used to create a game in Facebook Canvas?

I’m sure, yes.

>>And if so, what is the best way to connect with the FB API, the FB plugin v4a or through direct JS?

FB plugin v4a is not ported yet to html5. So the best way is direct JS plugin.

for exmaple, here’s https://docs.coronalabs.com/plugin/vk-direct/index.html direct JS plugin for VK Direct games.

What is VK?

Also, has anyone created a sample FB Canvas game yet with Corona?

>>What is VK?

https://en.wikipedia.org/wiki/VKontakte

>>Also, has anyone created a sample FB Canvas game yet with Corona? 

here’s one of related threads https://coronadevelopers.slack.com/messages/C8CQN6J5T

@vitaly1, I attempted to go to the coronadevelopers.slack.com link that you provided above - it will only allow me to create an account for it if I have an @coronalabs.com email address.

Everyone can join there, however you have to be invited. We automated this process here https://coronalabs.com/slack/

@vitaly1, I see references to FB instant games but no example code.

@everyone, can anyone refer me to the most simplistic FB game example of the new Corona HTML5 build? I’ve never made a Facebook App, only integration from my mobile Corona builds. So, we need someone to walk us through the full process.

@Corona, when will Corona be added to this list? https://developers.facebook.com/docs/games/instant-games/compatible-engines

@Troylyndon I have no idea how to get put on that list. I however would not want to be listed there until I see that we have successfully put apps there.

Rob

Amazing stuff guys!

Here is a little physics game I’m working on. I just pressed the html5 build button and it’s working like a charm!

http://honeyponey.fr/claw/

Funny game!

Hello everyone!

 

We’re really excited about the HTML5 builds and we want to start getting our feet wet with some of our already created mobile apps. But, there’s one thing that discourages us from starting and that is the Loading Time.

 

Just like @antonsilverGame HERE! Our apps, even an empty Corona Project, has a loading time that is significantly high (30 seconds!!!).

 

However, we just took a look at @david.ciaudo’s Game HERE! and boy, in about 3 seconds it’s up!

 

  1. Does anyone know how to reduce the loading time like in David’s Game?

  2. Is there a way to customize the loading screen?

 

Thank you,

Mars Team

I guess the main difference between those 2 game is the weight of textures.

>>Our apps, even an empty Corona Project, has a loading time that is significantly high (30 seconds!!!).

Empty html5 app size in Corona is 1MB and it loads in a few seconds.

App size in http://www.creasaur.com/lonelyknight/ is 57MB, it’s pretty big. And I’m sure it contains a lot of assets.

HTML5 builder includes all files from app folder into html5 app. So  make sure app folder does not contain unused files or use ExcludeFile filter: 

build.settings. https://docs.coronalabs.com/guide/distribution/buildSettings/index.html#excluding-files

Got it!

An empty project does load pretty fast. Especially when excluding unnecessary resources.

Thanks everyone

One question: How secure is it to have all the files online? I mean can someone just get the files and use it on their own site then?

I mean… This is a bane of HTML5 games, but really, it is same as for all browser content. Like, download Flash game and play it offline… We pack resources, and your code is compiled. Same argument can be made for Windows  & MacOS or Android games - what stopping people from getting your game and just selling it on their website.

Btw, I guess you could check the URL in your app.

Hi i want to test my app on html, not pluggin just simple test and im receiving this err, also i clicked some of your links to check if you are good and it doesnt work, what should i do?

http://renecastillotv.com/proservicios/error.png

photo screen of error

Do you have a URL where we can see the HTML5 app running?

Rob