A game is structured form of play, usually undertaken for enjoyment and sometimes used as an educational tool.Playing games help us grow, think, and find solutions to problems.
So Today i am going to make a game for android mobile.
Note:This game will work with moblie phone having 5.5" screen and Android OS.
Step 1: Things You Will Need...
Step 2: Initial Setup......
- open android studio.
- Click on new project.
- Now put application name "Pinball" and click next.
- Select minimum SDK and click next.
- Now click on blank activity and click Next.
- Now click on finish button.
Now a window will open.Now you can see a directory/folder named "res" on top-left side.
Now copy all images of this step and put into res=>drawable folder in android studio.
Open MainActivity.java flie and delete highlight text on image.
Now open Content_Main.xml and put 3 image view in mobile show in figure or you can download just given programme and copy into Content_Main.xml file.
If you are not able to download file than you can download from here Google Drive
Now just make 4 more java classes according to shown in picture.which are named follow:
Now just copy given programme into correspondence file.
MainActivity.docx => MainActivity.java
Setting.docx => Setting.java
Note:If you are not able download files then you can download from here Google Drive
Now we have to make xml files.
so goto res=> layout and right click and goto new => layout resource file.
repet same process and make 5 xml files named:
Now just download give files and copy & paste into appropriate xml file.
Note:if you are unable to download these file you can download from here
Now make raw folder under res file as show in fig.
after making raw folder copy given mp3 file into it.
Note:if you are unable to download these file you can download from Google Drive
Step 10: Final Step
Now just connect phone to your PC and click on run application,this will install game into your mobile phone and enjoy it.
you can download given apk file.
if you have any query pls comment belw
Note:This game will work with android moblie phone having 5.5" screen.
If you liked it please don't forget to vote.