stupid questins / Egg Breaker game

I am trying to dissect the Egg Breaker game to learn Lua/Corona. All is going well (slooowly), but I have a quick question that I can’t figure out:

Where and how is the initial “Egg Breaker” logo screen (which is in default.png) coming on to the screen? I can’t find any piece of code that explicitly loads it.

Any idea?

Thanks,

Oleg
[import]uid: 92927 topic_id: 15892 reply_id: 315892[/import]

Default.png is loaded automatically… no code needed to show it.

Raúl Beltrán
MIU Games [import]uid: 44101 topic_id: 15892 reply_id: 58768[/import]

Thanks Raul,

You mean automatically by Corona (no need for any includes or code)?? [import]uid: 92927 topic_id: 15892 reply_id: 58770[/import]

It will automatically loaded when you start the app, without any code add it. [import]uid: 7427 topic_id: 15892 reply_id: 58775[/import]

No, this is not a feature of Corona. The operating system shows Default.png while your app is loading to memory… when the program is ready the Default.png image is removed and the app shows on screen, that’s why no code or additional includes are needed. [import]uid: 44101 topic_id: 15892 reply_id: 58776[/import]

Ok, new to Android, Corona and Lua.

Waiting for delivery of my Android device and was was converting an App that I have on iPhone and iPad to Corona.

I noticed that the default.png shows on the simulator for Android devices, is this normal or is it something added by the Corona sdk? [import]uid: 8697 topic_id: 15892 reply_id: 59765[/import]

Actually this got me confused too, when I started using Corona I was also expecting to see Default.png as splash screen on Android, later I learned this is not supported by Android as you can read here:

https://developer.anscamobile.com/forum/2011/02/22/defaultpng-not-supported-android

Maybe Corona simulator shouldn’t show Default.png when the device selected in “Window > View As” is Android to avoid confusion :slight_smile:

Raúl Beltrán
MIU Games [import]uid: 44101 topic_id: 15892 reply_id: 60168[/import]

I did think that but I wanted to clarify.

I think you are right though it shouldn’t show that on the simulator on an Android device.

Chris :slight_smile: [import]uid: 8697 topic_id: 15892 reply_id: 60172[/import]