so that you can register to application lifecycle. Also on Android side, external Java classes can receive Activity lifecycle events. These additions are mostly because of upcoming plugins.
I just try it a while ago and I got an issue with my current project. Some images do not displayed on the screen. It worked fine on the previous version (2012.08.2).
I suspect that there are some issues with Bitmap, Texture, or TexturePack class, but this issue only appears on one scene. The other scenes are fine.
@zaniar it's interesting. I haven't changed anything on graphics side (except getBounds()). can you isolate the problem and send me a simple example? or can you describe more?
@zaniar it's interesting. I haven't changed anything on graphics side (except getBounds()). can you isolate the problem and send me a simple example? or can you describe more?
@zaniar is right,the position of the bitmaps is wrong.
@atilim sorry for being not informative. Currently, I don't have much time to do some experiment regarding this issue. Maybe it just like what @alexzheng mentioned, or maybe not.
After @zaniar posted this issue, I went through my apps and prototypes and could not notice anything different. So its probably some specific case.
BTW. did anyone figure out how to get app life cycle events on external classes? There is an array of Strings now in main application activity, where you probably list all external classes. I've tried providing: ExternalClass, com/giderosmobile/android/ExternalClass and com.giderosmobile.android.ExternalClass and created onCreate, onStart, etc methods inside it, but still this methods are not called.
With the previous versions, getWidth() and getHeight() had returned larger (a.k.a wrong) values than it should be (when there are children attached that sprite). Now it should return correct width/height. Maybe this is the problem. Still I'm looking at @alexzheng's example.
Comments
Nice work @atilim
BTW:
is possible more info on:
> Feature: Extended the plugin system ?
www.tntengine.com
Likes: OZApps
Will this two functions available later?
JavaVM *g_getJavaVM();
JNIEnv *g_getJNIEnv();
And most api in android needs a context for argument,so if the activity itself can be accessed directly will be very handy.
https://sites.google.com/site/xraystudiogame
I just try it a while ago and I got an issue with my current project. Some images do not displayed on the screen. It worked fine on the previous version (2012.08.2).
I suspect that there are some issues with Bitmap, Texture, or TexturePack class, but this issue only appears on one scene. The other scenes are fine.
Building the device version (I am laaazy)
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
JavaVM *g_getJavaVM();
JNIEnv *g_getJNIEnv();
seem to work fine in this version and even in previous one
https://sites.google.com/site/xraystudiogame
This happens when you setposition using the getWidth and getHeight functions.
These two function return different values.
When you call them in init and in onEnterEnd the values are different.
https://sites.google.com/site/xraystudiogame
https://sites.google.com/site/xraystudiogame
I'll let you know once I got some clues
https://sites.google.com/site/xraystudiogame
@alexzheng oh great! After I read @zaniar's post, I've spent nearly 2 hours to catch a tiny clue.
https://sites.google.com/site/xraystudiogame
BTW. did anyone figure out how to get app life cycle events on external classes?
There is an array of Strings now in main application activity, where you probably list all external classes.
I've tried providing: ExternalClass, com/giderosmobile/android/ExternalClass and com.giderosmobile.android.ExternalClass and created onCreate, onStart, etc methods inside it, but still this methods are not called.
Available now?
https://sites.google.com/site/xraystudiogame
https://sites.google.com/site/xraystudiogame
So I delayed call this in addedToStage event handler to work around.
https://sites.google.com/site/xraystudiogame
Now I just can not remember too much.
https://sites.google.com/site/xraystudiogame