Home / App Templates / Android / Games / Sport
Ball Kicker - Android Game Source CodeBall Kicker - Android Game Source Code
Ball Kicker is a casual game, where you have to touch the ball, to increase the score. Average rating of 5.0 based on 2 votesHome / App Templates / Android / Games / Sport
Ball Kicker - Android Game Source Code
Ball Kicker is a casual game, where you have to touch the ball, to increase the score. Average rating of 5.05 Support questions or comments
Please login or create an account to post a question or comment.
-
Aug 15, 2019Arne PurchasedHi,
I would just like to seek assistance on how I can extract just the game itself without Google and Ads integration?
Any help would be appreciated.
Thanks! -
Aug 15, 2019Arne PurchasedTo give more context, I already have an existing app and I would just like to add and integrate this game module into my own. Thanks
-
Feb 6, 2017Harish1 PurchasedRodrigo,
I want to add achievements in leaderboard. How do I achieve this? -
Feb 7, 2017tutstecmobile AuthorHello Harish1,
Unfortunately, this code doesn't have achievements implemented. But you can follow the google tutorial.
https://developers.google.com/games/services/android/achievements
And put all the methods that you create on Source Code/android/src/com/tutstecmobile/AndroidLaucher.java.
After that you just add this new method on the interface that connects the android Project with the core Project. That is located on
Source Code/core/src/com/tutstecmobile/utils/ActionResolver.java
Now you can access the method that you created on the AndroidLaucher.java using
Main.actionResolver.youNewMethod();
Best Regards -
Feb 11, 2017Harish1 PurchasedHi Rodrigo ,
Tried adding achievements, having issues. kindly check the mail, i am attaching the code.
Thanks.
-
Jan 24, 2017Harish1 PurchasedI would also like to keep the ball 1 inch above the ground when the player starts the game and should end falling on the ground. How do I achieve this?
-
Jan 25, 2017tutstecmobile AuthorHello Harish1,
To change the initial position of the ball, all you have to do is to go to the PlayState.java. That is located on Source Code/core/src/com/tutstecmobile/states/PlayState.java. Then you go to the line 48, That is this one:
ball = new Ball(world, 200, Main.assetManager.groundTexture.getHeight());
The 200 is the horizontal position and the Main.assetManager.groundTexture.getHeight() is the vertical position. So, to start the ball 1 inch above the ground, you have to change the line to:
ball = new Ball(world, 200, Main.assetManager.groundTexture.getHeight()+100);
Now let's keep the ball in the air. In order to do that you have to remove the gravity, go to the line 44 at the PlayState.java:
world = new World(new Vector2(0, -9f), true);
Change to
world = new World(new Vector2(0, 0), true);
Then go to the line 118, there you will find a if statement, this if statement controls what happens after the first touch, so we have to set the gravity again, to set the gravity again you have to put this line after the if statement
world.setGravity(new Vector2(0, -9f));
If you have any more questions, just let me know.
Best Regards -
Jan 25, 2017Harish1 PurchasedBrilliant. It works. Thanks you.
-
Jan 24, 2017Harish1 PurchasedI would also like to know how can I start with one image of football upon start and change to another football image when the user touches the first time.
- View 3 more replies
-
Jan 28, 2017Harish1 PurchasedI tried thread.sleep(3000), but it did not work as it is showing error. I also read, it pauses the application; It kills your battery, prevents normal system tasks from running properly, slows down other programs or stops them completely, makes the device unresponsive, and can even cause it to get hot in your hands. Is there any other way to do it?
-
Jan 30, 2017tutstecmobile AuthorI sent you a private message with the solution. Because I wrote too much of the code.
Best Regards -
Feb 4, 2017Harish1 PurchasedThanks for your support.
-
Jan 22, 2017Harish1 PurchasedUpon changing the icon size from default to 192X192 pixels, the ball does not respond to touch. Please help.
-
Jan 23, 2017tutstecmobile AuthorHello Harish1,
The problem is that you change the size of the ball and didn't change the density of the ball. So the ball was so heavy that it barely left the floor. To fix this issue to go "Source Code/core/src/com/tutstecmobile/sprites/Ball.java" and at the line 86, you will see
fixtureDef.density = 0.5f;
Try to change the 0.5f to 0.1f, and see if you like the result.
If you have any more questions, just let me know.
Best Regards -
Jan 24, 2017Harish1 PurchasedThanks.
Information
Category | App Templates / Android / Games / Sport |
First release | 16 January 2017 |
Last update | 16 January 2017 |
Files included | .html, .apk, .java, .xml |
Operating Systems | Android 4.0, Android 5.0, Android 6.0 |
Tags | Java, admob, fun, soccer, addictive, casual, APK, sport, ads, skill, ball, ad, android studio, kick, libgdx |