Thank you & Intro
Thank you for buying the Smash N Break game template. This game was developed using AndEngine. It comes with Czech, German, Spanish, Slovak, Vietnamese and Chinese translations. It’s easily customizable and re-skin-able. Game has a level editor which allows you to create and add new levels. This editor is a stand-alone part of zip file you downloaded. Just install it on your phone / tablet and you can create levels right away. After you’re finished with level pack, use the icon to share it. You get the basic idea how to play and use the game if you try it for yourself. Download it @ http://m.halmi.sk/smashnbreak.html. In case of any questions just write me an email: rootko@gmail.com
Android project
For Smash N Break project to work and compile, you need to download and extract Android NDK. Download NDK for your OS here: https://developer.android.com/ndk/downloads/index.html
Unzip it and copy NDK folder path to clipboard.
Start Android Studio and select Import Project. Find the SmashNBreak folder...
Open local.properties and change the ndk.dir variable, so it points to your NDK directory. Don't forget to escape '\' with '\\' if you're on Windows.
Before you start to customize Smash N Break’s graphics, sounds and levels to your liking, you should change some constants. Open file app\src\main\res\values\constants.xml and change values:
admob_id
|
Admob generated ID for requesting Ads
|
admob_id_interstitial
|
Admob ID for intersititial ADs
|
app_link
|
Homepage of this app
|
developer_link
|
Homepage of developer
|
email
|
Users can send emails direct from game to the developer
|
font
|
When you change the font in assets directory, change it’s filename here
|
facebook_fan_page_url
|
URL to your facebook fan page
|
Now open app\src\main\java\sk\halmi\smashnbreak\helper\Constants.java and customize following:
FLURRY_ID
|
When you use Flurry services for tracking the app, change the ID here
|
PRICE_UNLOCK_LEVEL
|
Price of unlocking level in in-game credits
|
PRICE_LIVES
|
Price of 5 lives when user fails to clear the level in in-game credits
|
INTERSTITIAL_N_LEVELS
|
Display interstitial after each N level
|
LEVELS_COUNT
|
Map of level packs and level count in that level pack. Add here new line when you add new level pack to the app\src\main\assets\levels\ directory
|
You can also experiment with the other constants in the Constants.java, just make sure you make a copy when changing things. Don’t forget to change the name of game. Do so in app\src\main\res\values\strings.xml. It’s under app_nameidentifier. Also change the name of game in translated strings.xml in values-cs, values-de and others...
Smash N Break is easily customizable and re-skin-able. All the in-game graphics files are located in folder app\src\main\assets\gfx\, all the menu graphics are located in folder app\src\main\res\drawable\, sounds and music are to be found in app\src\main\res\raw\. Just replace them with your own with the same name and appropriate resolution and you’re good to go. Your game will be looking anew in no time.
If you want to create new level packs / levels, the easiest way to do this is use the built-in (or standalone included in zip file) level editor. After each save file is created in Android device in SmashnBreak directory. Those files can be used directly in game, just put them in app\src\main\assets\levels\ directory and add them in the Constants.java as described above. If you use stand-alone editor, you can easily share the level packs via icon. Send it to your email, add it to assets folder and add it to Constants.java and new level pack will be available for your users.
If you plan to release your Smash N Break clone in the Google play store, you need to change the application ID. Open app\build.gradle and change the line applicationId 'sk.halmi.AndBreaker' to your package id.