Hi,
I have an existing Corona SDK app and it works great. I am trying to port it to CoronaCards for Phonegap. I am facing two issues
-
The height and width of the CoronaView is not being properly set (most likely 'coz I am doing something wrong). I get the height and width using $window.screen.innerHeight/Width (am using ionic) and pass it to CoronoView, but it appears to be too small. I kinda resolved it by using a scaling factor to get the desired height and width (will not work on various devices), but since this is so basic, I guess I must be doing something wrong. Any pointers would be appreciated.
-
How do I send events from my Lua to Javascript ? I(btw, see a sendEvent in CoronaCards phonegap plugin send from Javascript to Lua which is great). My use case is that when a user finishes a level, I want to send an event to my ionic app to do something. Is it possible ?
Thanks in advance for your help !