1. Apparently I made mistake in my full game tutorial articles series. There were some issues, because there was unnecessary  check inside onDestroy() method inside our activity code. This is proper form (previously there was check for is game loaded flag which caused issues!) Proper form:
@Override
protected void onDestroy()
{
       super.onDestroy();
       System.exit(0);
}
I have also updated AndroidManifest.xml file, adding configChange property fixing some issues while resuming our game, which is really important.

android:configChanges="keyboard|keyboardHidden|orientation
|screenLayout|uiMode|screenSize|smallestScreenSize|mcc|mnc"
Articles part two and part seven were updated with fixes mentioned above. I have also uploaded updated source file of the project in the last article, part fifteen.  

2. Performance advice of the day: recently I noticed that many people are making the same issue, mistake related to restarting of your game/level. Many people mistakenly register many update handlers to the ENGINE instead of to the SCENE. For example FPS logger, like: 

 
 engine.registerUpdateHandler(new FPSLogger()); 

And now lets say we perform game restart (disposing game scene, and initializing it again) Conclusion? Since update handler was registered to the engine, not to the scene, and it has not been unregistered manually, while initializing our scene after restart again, another instance of update handler is registered, over and over. So we have two choices:

  • register update handlers to the scene, so you will not have to remember about un registering them while restarting your game scene.
  • or remember to unregister update handler from engine before registering the same again 


Preventing from duplicating update handlers is really important, since update handlers are executed on regular basis, it might be important performance tip.
 
Abhishek karmakar
6/26/2013 05:15:56 pm

Thanks for this update..after following your tutorial i was able to setup the game but it was going in the activity.onDestroy again and again .. causing the application to crash. adding this line
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|mcc|mnc"
android:screenOrientation="landscape">

in the manifestfile under the activity declaration removed the bug.

great work with the tutorial ..

Reply
Ciao
7/23/2013 09:07:14 am

why don't you make a tutorial about implementing admob on andengine?

Reply
diva
4/6/2016 11:46:53 pm

good articles is normally modified day-by-day and almost https://mobdrodownload.co.uk/ computer with House windows Computer itself employing BlueStacks emulator nice.

Reply
4/6/2016 11:47:57 pm

good articles is normally modified day-by-day and almost computer with House windows Computer itself employing BlueStacks emulator : nice.

Reply
4/6/2016 11:49:05 pm

good articles is normally modified day-by-day and almost computer with House windows Computer itself employing BlueStacks emulator nice.

Reply
mahi
4/7/2016 05:31:01 am

good that generate it a preferred decision: http://bluestackstutorial.com/wechat-online-login-web-client Record exceptional occasions and talk about it on your personal image stream. nice.

Reply
sagar
4/7/2016 11:07:01 pm

awsome screen of your House windows 8/7/XP equipment. http://robertisbothered.com/wechat-online-login-web Macintosh personal computer therefore you want nice.

Reply
4/7/2016 11:08:50 pm

awsome screen of your House windows 8/7/XP equipment.Macintosh personal computer therefore you want nice.

Reply
4/7/2016 11:10:11 pm

good that generate it a preferred decision:Record exceptional occasions and talk about it on your personal image stream. great.

Reply
8/23/2016 01:52:31 am

I should certainly pronounce,<a href="http://www.wolfcanarias.es">nike air max 90 baratas</a> impressed with your web site.<a href="http://www.dictaduraglobal.es">zapatillas nike air max baratas</a> I had no trouble navigating through all tabs as well as related info ended up being truly simple to do to access.

Reply
5/2/2017 03:41:11 am

It is high time that Apple updated their Maps system with iOS 11. That way, it can finally step up and pose a tough competition to Google with the help of the new drone’s technology.

Reply



Leave a Reply.

    Author

    I am 19 years old android game developer from Poland, currently live in United Kingdom.