In essence I’m moving initialization code from Cocos2dxActivity to my custom WallpaperService.Engine subclass. I’ve took the idea from ‘approach one’ of this blog post: Īlso I’m trying to reuse Cocos2dxHelper and Cocos2dxRenderer classes. However it should be possible to reuse the Cocos2dxGLSurfaceView class inside the WallpaperService.Engine class. The lifecycle changes a lot because instead of an Activity I must use a WallpaperService.Engine class. Now I’m trying to change the code to use it inside a live wallpaper. So far I’ve managed to create and run the default android project. That said, I’m a total newbie with Cocos2d-x. In the past I’ve developed two iOS games using Cocos2D, but now I want to switch to Cocos2d-x to use the same engine for my iOS games, Android games AND Android Live Wallpapers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |