Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Getting started with HTML5
Started by Rob Miracle Mar 20 2018 08:08 AM

- - - - -
170 replies to this topic
[TOPIC CONTROLS]
« Page 7 of 7 5 6 7
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#151

vitaly1

[GLOBAL: userInfoPane.html]
vitaly1
  • Contributor

  • 212 posts
  • Corona SDK

'zoomEven' is not implemented yet. Hoping it will be soon.



[TOPIC: post.html]
#152

sens84

[GLOBAL: userInfoPane.html]
sens84
  • Observer

  • 18 posts
  • Corona SDK

'zoomEven' is not implemented yet. Hoping it will be soon.

It is very bad news for me.

Are "zoomStretch" and "adaptive" also not implemented yet ?



[TOPIC: post.html]
#153

vitaly1

[GLOBAL: userInfoPane.html]
vitaly1
  • Contributor

  • 212 posts
  • Corona SDK

this time only "letterbox" is implemented; it scales the content area to fill the screen while preserving the same aspect ratio. 



[TOPIC: post.html]
#154

sens84

[GLOBAL: userInfoPane.html]
sens84
  • Observer

  • 18 posts
  • Corona SDK

'zoomEven' is not implemented yet. Hoping it will be soon.

Hello.

 

Are "zoomEven" not implemented yet ?



[TOPIC: post.html]
#155

vitaly1

[GLOBAL: userInfoPane.html]
vitaly1
  • Contributor

  • 212 posts
  • Corona SDK

no yet



[TOPIC: post.html]
#156

sens84

[GLOBAL: userInfoPane.html]
sens84
  • Observer

  • 18 posts
  • Corona SDK

'zoomEven' is not implemented yet. Hoping it will be soon.

Hello.

 

Is "zoomEven" still not implemented?



[TOPIC: post.html]
#157

vitaly1

[GLOBAL: userInfoPane.html]
vitaly1
  • Contributor

  • 212 posts
  • Corona SDK

working on that



[TOPIC: post.html]
#158

vitaly1

[GLOBAL: userInfoPane.html]
vitaly1
  • Contributor

  • 212 posts
  • Corona SDK

"zoomEven" implementation will come with daily build #3452.



[TOPIC: post.html]
#159

sens84

[GLOBAL: userInfoPane.html]
sens84
  • Observer

  • 18 posts
  • Corona SDK

"zoomEven" implementation will come with daily build #3452.

Thank you very much



[TOPIC: post.html]
#160

sens84

[GLOBAL: userInfoPane.html]
sens84
  • Observer

  • 18 posts
  • Corona SDK

I draw a large image on the screen. (840x3385 pixels) In html5 it draws about 4-5 seconds
At this time, the game freezes.
How can I draw large images asynchronously?



[TOPIC: post.html]
#161

dmarques42

[GLOBAL: userInfoPane.html]
dmarques42
  • Enthusiast

  • 62 posts
  • Corona SDK

This is brilliant, works fine for me, with the odd quirk now and then that I have to track down. But well done!

 

There is one thing I cannot figure out how to do -- send a file to a browser. I have an app where the user 'plays' it, and they get a summary. I want them to be able to save the summary (which I convert to html for the app version and send to Dropbox). But I cannot figure out how to do anything that would allow a download in an html5 app except using a mailto link, which is not a good idea on a public server. 

 

Is there any way to send a file or a large string to the browser from an html5 app? I can write a file to the usual directories, but cannot bring it back to load into a url or a webview.



[TOPIC: post.html]
#162

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Corona Geek

  • 1,051 posts
  • Corona Staff

Hey! Glad it works for you. About “sending back to browser” you can do a small JavaScript plugin, following a tutorial: https://coronalabs.com/blog/2019/02/06/adding-speech-recognition-to-html5-apps/

[TOPIC: post.html]
#163

dmarques42

[GLOBAL: userInfoPane.html]
dmarques42
  • Enthusiast

  • 62 posts
  • Corona SDK

Thank you, I think that will do nicely. I assumed it would be something going through js, but did not realize the connection to js was that simple. Thanks, well done!



[TOPIC: post.html]
#164

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Corona Geek

  • 1,051 posts
  • Corona Staff

Thank you for kind words.

[TOPIC: post.html]
#165

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 811 posts
  • Corona SDK

This is great!  I'm just now getting to play around with HTML builds and I'd love to see a working sample that shows module integration and all the other cool stuff from here: https://docs.coronalabs.com/guide/html5/plugins/index.html



                    
                    

[TOPIC: post.html]
#166

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Corona Geek

  • 1,051 posts
  • Corona Staff

Link above has a sample plugin: https://coronalabs.com/blog/2019/02/06/adding-speech-recognition-to-html5-apps/

[TOPIC: post.html]
#167

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 811 posts
  • Corona SDK

Wait. . . so essentially all I do is give my lua modules a .js extension and the JavaScript Module Loader loads them in HTML5?



[TOPIC: post.html]
#168

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Corona Geek

  • 1,051 posts
  • Corona Staff

Uh... I'm not sure what you meant, but you can use javascript from your Corona (lua) game. To do that you would have to put JavaScript object with specific name into specifically named file and include it as part of your Corona project. Then you would be able to import it as it were a Lua module. See docs & example for details.


  • sporkfin likes this

[TOPIC: post.html]
#169

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 811 posts
  • Corona SDK

I'm finding my way now, thanks for the demos and docs - it's helpful to see the actual files.  My projects without modules work fine and now I'm trying to adjust a few larger projects to be suitable for HTML builds.



[TOPIC: post.html]
#170

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 811 posts
  • Corona SDK

OK, I'm having success now and I want to say thank you to the Corona engineers who made HTML builds a reality.  Once I identified the particular parts of my apps that weren't "HTML5 friendly" I found the process of making HTML builds as seamless as making all the other build types Corona supports. 

 

Wow, I'm delighted.  Go Corona!



[TOPIC: post.html]
#171

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 811 posts
  • Corona SDK

Any tips for using sounds in HTML builds?  I'm getting unreliable results with audio (particularly streaming) and wondering if there are some best practices that I'm unaware of.  I've tried both WAV's and MP3's.  Am I missing something?




[topic_controls]
« Page 7 of 7 5 6 7
 
[/topic_controls]