Cocos2d-x v2.x - How to create Live Wallpaper for Android
Test on: Mac OS X Mavericks
Cocos2d-x v.2.2.3
Credits from:
1. http://discuss.cocos2d-x.org/t/3-2rc0-android-live-wallpaper/15460
2. http://gizmothunder.blogspot.com/2013/07/cocos2d-x-for-android-livewallpaper.html
[Pre-required]
1. http://gamedevtodied.blogspot.com/2014/09/cocos2d-x-v2x-setup-environment.html
2. this project need your c++ skill as beginner level.
[Download Project Template]
I created a project template make you easier to use more time to think about your design than configuration from blank project, you can use for your personal work, non-commercial and/or commercial without permission, cost and/or fee.
download project template: http://sh.st/Y9ksw
1. extract zip file and place folder inside your cocos project folder "cocos2d-x-2.2.3/projects/"
3. when simulator finished run and show lock screen, unlock screen and locate to launch "Settings > Display > Wallpaper > Live Wallpapers". You should see your live wallpaper on list then tap on name to open it.
5. tap on home and see your result, it's should be as below image.
[How to Modify]
1. Where you can change your wallpaper icon?.
Now it's size of width x height is 1024 x1024 of png but you can replace with your image as png file inside folder structure as you see on left panel.
2. Where you can change your wallpaper name?.
Change on second line of <string> on part of text "Your Live Wallpaper Name", replace with text you want.
3. Where you can make difference live wallpaper animation?
As i told you section pre-required, you need to have c++ skill at least beginner to understand syntax and other side as cocos2d-x api to modified in file "WallpaperScene.cpp" and "WallpaperScene.h" to change animation make your wallpaper live on.
make your life easier and take your time for other thing. :)
[Download Project Template]
Free project template: http://sh.st/Y9ksw
Test on: Mac OS X Mavericks
Cocos2d-x v.2.2.3
Credits from:
1. http://discuss.cocos2d-x.org/t/3-2rc0-android-live-wallpaper/15460
2. http://gizmothunder.blogspot.com/2013/07/cocos2d-x-for-android-livewallpaper.html
[Pre-required]
1. http://gamedevtodied.blogspot.com/2014/09/cocos2d-x-v2x-setup-environment.html
2. this project need your c++ skill as beginner level.
[Download Project Template]
I created a project template make you easier to use more time to think about your design than configuration from blank project, you can use for your personal work, non-commercial and/or commercial without permission, cost and/or fee.
download project template: http://sh.st/Y9ksw
1. extract zip file and place folder inside your cocos project folder "cocos2d-x-2.2.3/projects/"
2. import this project into your eclipse and run by right-click on project > Run As > Android Application. You will never see anything on screen because of it's not run android activity.
3. when simulator finished run and show lock screen, unlock screen and locate to launch "Settings > Display > Wallpaper > Live Wallpapers". You should see your live wallpaper on list then tap on name to open it.
4. your wallpaper name is "Your Live Wallpaper Name", tap on "Set wallpaper".
5. tap on home and see your result, it's should be as below image.
So and the lock screen.
[How to Modify]
1. Where you can change your wallpaper icon?.
Now it's size of width x height is 1024 x1024 of png but you can replace with your image as png file inside folder structure as you see on left panel.
2. Where you can change your wallpaper name?.
Change on second line of <string> on part of text "Your Live Wallpaper Name", replace with text you want.
3. Where you can make difference live wallpaper animation?
As i told you section pre-required, you need to have c++ skill at least beginner to understand syntax and other side as cocos2d-x api to modified in file "WallpaperScene.cpp" and "WallpaperScene.h" to change animation make your wallpaper live on.
make your life easier and take your time for other thing. :)
[Download Project Template]
Free project template: http://sh.st/Y9ksw
No comments:
Post a Comment