Responsive Ads Here

Wednesday, April 27, 2016

Bomberman Android Game

A) File Structure 

Android projects are the projects that eventually get built into an .apk file that you install onto a device. They contain things such as application source code and resource files. Some are generated for you by default, while others should be created if required. The following directories and files comprise an Android project:



src/
Contains stub Activity file, which is stored at src/your/package/namespace/ActivityName.java. All other source code files go here as well.

bin/
Output directory of the build. This is where you can find the final .apk file and other compiled resources.

assets/
Store raw asset files. Files that you save here are compiled into an .apk file as-is, and the original filename is preserved. In this game, this directory stores fonts, images and maps of every levels

res/
Contains application resources, such as drawable files, layout files, and string values. Details below
  • anim/ - For XML files that are compiled into animation objects
  • drawable/ - For bitmap files (PNG, JPEG, or GIF), 9-Patch image files, and XML files that describe Drawable shapes or Drawable objects that contain multiple states (normal, pressed, or focused).
  • layout/ - XML files that are compiled into screen layouts (or part of a screen).
  • menu/ - For XML files that define application menus
  • raw/ - For arbitrary raw asset files. Saving asset files here instead of in the assets/ directory only differs in the way that you access them. These files are processed by aapt and must be referenced from the application using a resource identifier in the R class. In this application, this is place for media, such as MP3 or Ogg files
  • values/ - For XML files that are compiled into many kinds of resource. Unlike other resources in the res/ directory, resources written to XML files in this folder are not referenced by the file name. Instead, the XML element type controls how the resources is defined within them are placed into the R class.

AndroidManifest.xml
The control file that describes the nature of the application and each of its components. For instance, it describes: certain qualities about the activities, services, intent receivers, and content providers; what permissions are requested; what external libraries are needed; what device features are required, what API Levels are supported or required; and others.

B) Drawable Resource
Drawable resource are stored in res/drawable(hdpi,ldpi,mdpi,xhdpi,etc.) folder and some in assets folder
If you want to change icon of game, please replace ic_launcher.png in each drawablefolder with similar image-size pictures

C) String Resources
All String Resource are store in res/values/string.xml files

If you want to change the Application'name, you can change  Bom Offline to anything you want.   

D) Sounds
I've included three sounds with in this application in res/raw folder

If you'd like to change the any sound, you can copy and paste your sound to raw folder. Just remember to keep file's name similar with original file name

E) Admob
I have integrated Admob Full Screen ads. This ads will display before player go to any level, on win screen or game over screen.
Be sure import google-play-services_lib_origin in your IDE

Then replace the advertise ID in res/values/ads.xml
by your advertise ID


Link Download :
1. Apk File

 Bomberman Apk File
2. Source Code 
  Bomberman Source Code


No comments:

Post a Comment