Discussion on Avoid the Spikes - Android Arcade Game

40 comments found.

Hey how can I change the background of the game instead of a color can I upload an image?

Hi,this is not included in the code. You need to add your own code in maingame.java line 863 to add a background to menu:
 if (state == MENU) {
//here
or to line 885 to add a background to the gameplay:
       else if (state == GAMEPLAY || state == RESTART || state == GAMEOVER) {
//here

Hi, please can i make the entire game an activity of a native android app. ? So that the game starts when i start that activity.

Hi, The main activity is currently MainGame. Just call that to run the game.

Hello, When you designed the game. Did you use Android Studio? and what was used for the Layout for the xml? I do not see a layout. Thanks in advance..

Hi, Yes the app was designed in Android Studio. I didn’t use any xml Layout file in the game. I’m using Canvas to draw everything.

its not work with last version .. i cant import the code to android studio.. can u help me ! Error:(43, 0) Gradle DSL method not found: ‘buildTypes()’ Possible causes:

Error:failed to find target android-10 : C:\Users\Kelani\AppData\Local\Android\sdk2 Install missing platform(s) and sync project

Hi, Your problem most probably, is that you don’t have the required Android sdks installed. Click on the “Install missing platform(s) and sync project” suggested by Android studio to install them.

If that doesn’t solve it.

In Basegameutils/build.gradle, replace:
    compile 'com.android.support:support-v4:22.2.0'
    compile 'com.google.android.gms:play-services:7.5.0'
with:
    compile 'com.android.support:support-v4:22.2.+'
    compile 'com.google.android.gms:play-services:7.5.+'

Just replace the 0 with +.

pleas fix your code and then upload here .. i’m waiting your solution

Just replied to your other comment

My friend , I’ve picked these pictures to see the problems that I face and initially be in the import file of the game , to the problem of the gradle, The solution presented by the not succeed I beg you to give me help

https://www.dropbox.com/sh/5pnafxwhtelkvta/AADXEb9MjIyeISGmteqMlvZKa?dl=0

Hi, You’re on the right path. The problem is that you don’t have the right Android sdk installed. I don’t know why its asking for Android 10, however. Use the SDK Manager (the little green android icon with the download arrow, near the ’?’ icon) to download and install the Android SDK 22 manually.

Already i have sdk 22 .. I was tested the code on another laptop and another android studio and Eclipse .. And the code not run .. Pleas fix the code and re upload the folder again

Hi, Unfortunately I can’t solve the problem from my side. The problem isn’t in the package itself. The code requires an Android SDK version that is not installed on your system. I’m still not sure why the error is asking for Android-10. Try installing Android 10 SDK and see if that solves the problem.

Feel free to get back to me if the error persists and I’ll help you solve it as best as I can.

Thanks

Hi ..Thank you for support and I have one more question :)

How can I change the name of the game on the start page

Just open strings.xml and change the name of the game from there

Hi bro .. Can I change chracter speed ex. After 100 score speedUp from 10 to 12 ! And how ?

This is not included in the package. However you can add it easily. In maingame.java line 334 add:
 if(score>100){
                    character.speedy = screen.ScreenHeight() * 0.001f * Configuration.CHARACTER_SPEED_UP*2;//modify the *2
                }

Thank you very much

Hi Developers at Adem Kara,

We detected that at least one APK version in your recent upload isn’t using Android Pay correctly. Including APK version(s) 3 in your submission could cause your app to be rejected for violating our Payments policy.

If you’d like to use Android Pay in your app, please follow these steps:

Remove any digital content from your app. To use Android Pay, your app must only sell physical goods or services. Make sure your app is compliant with all policies listed in the Developer Program Policies. Remember that additional enforcement could occur if there are further policy issues with your apps. Sign in to your Developer Console and submit the app. Make sure to increment the version number of the APK. If you’d like to use another payment method in your app, please follow these steps to remove Android Pay from your manifest:

Remove <meta-data android:name=”com.google.android.gms.wallet.api.enabled” android:value=”true”/> from your manifest. Sign in to your Developer Console and submit the app. Make sure to increment the version number of the APK. Policy issue: Android Pay or other alternative payment mechanisms to Google Play’s in-app billing service are only permitted for the following:

Android Pay For physical goods or services, such as movie tickets. Other alternative payment mechanisms to Google Play’s in-app billing service For physical goods or services, such as movie tickets, or a publication where the price also includes a hard copy subscription. For digital goods that may be downloaded to devices and used outside of the app, such as songs that can be played on other music players. Donations to 527 designated tax exempt organizations are also permitted. If you’ve reviewed the policy and feel this rejection may have been in error, please reach out to our policy support team. One of my colleagues will get back to you within 2 business days.

I appreciate your support of Google Play!

Best,

Eddie

Google Play Review Team

What is this error?

Hi, for support please send me a pm message or comment using an account that purchased the App.

I got this email today after publishing the game about some policies

After review, mario jump, com.kelani.mario, has been suspended and removed from Google Play as a policy strike because it violates the impersonation policy

can you please guide me in that matter

Hi, Did you name the app Mario? I think that is the problem. ‘Mario’ might be trademarked by nintendo.

Hi ..I change everything .. Although it i received this email.. Hi Developers at kelani.tec,

After review, Mayro Jump, com.myApp.mayrojump, has been suspended and removed from Google Play as a policy strike because it violates the impersonation policy.

Next Steps

Read through the Impersonation article for more details and examples of policy violations. Make sure your app is compliant with the Impersonation and Intellectual Property policy and all other policies listed in the Developer Program Policies. Remember additional enforcement could occur if there are further policy issues with your apps. Sign in to your Developer Console and submit the policy compliant app using a new package name and a new app name. What if I have permission to use the content?

Contact our support team to provide a justification for its use. Justification may include providing proof that you are authorized to use the content in your app or some other legal justification.

Additional suspensions of any nature may result in the termination of your developer account, and investigation and possible termination of related Google accounts. If your account is terminated, payments will cease and Google may recover the proceeds of any past sales and/or the cost of any associated fees (such as chargebacks and transaction fees) from you.

If you’ve reviewed the policy and feel this suspension may have been in error, please reach out to our policy support team. One of my colleagues will get back to you within 2 business days.

Regards,

The Google Play Review Team

Hi, I can’t tell exactly what is the reason from this email. If you wish that I take a closer look, feel free to send me an email (melvin@neurondigital.com) with the apk file, app description and app title that you used on google play.

Usually, app suspensions on google play arise because of keywords used in the description or title.

hi thanks for the great game and great idea ! i have 2 question and if you could answer it would be awesome. You know i want to do something with the coins so : 1.how can i use coins so they can buy different characters with the coins and 2.(more importent) i want to do something cool with the game.in the configuration we have CHARACTER_SPEED_UP = 10 and also CHARACTER_SPEED_SIDE = 10.what if we add 3 game levels.in which these speeds would be different from each other.for example in easy mode it is set to 9.in normal it is set to 11 and in hard it is set to for example 14 and so on. could you please help me to do that thank you so so much again best wishes

For support comments please use an account that purchased the item.

Hey, nice code, nice job man! I have a question:

How to decrease or increase collision distance with obstacle?

Hi,

The collisions between the character and the obstacles are being handled in maingame.java line 380:
 //handle collision of obstacles with character
                    if (character.CollidedWith(current_obstacle)) {
                        if (!game_over) {
                            character.fall();
                            character.speedx = -character.speedx;
                            StartGameOverCountDown();
                        }
                    }

The easiest way, without changing anything else is modifiying the character image. Just add a bit of transparent border around it such that it is bigger than it looks(using illustrator/photoshop). Then in character.java line 24 you can make the image apear larger on screen by changing the 0.12f to a larger number.

super(new Sprite(BitmapFactory.decodeResource(screen.getResources(), R.drawable.character), screen.ScreenWidth() * 0.12f), 0, 0, screen, true);

Hope this helps.

I noticed that game has framerate issues in demo, if you fix it i am going to buy :)

Hi,

Just seen it. That’s how it looks on my side. The app has built in fps calculation in debug mode (which can be enabled via code). It works at around 30fps. The app uses canvas to display the graphics. so, I’m afraid that is the maximum fps that can be reached. For more fps one needs to use OpenGl. I find it quite good however with 30fps.

Then ok ( still sad with fps when focused in spikes) , are you going to add character store (coin) feature soon?

In the future I was thinking of updating the app with in app purchases and a store to buy new characters. I have some other things to do however, before I update it. Thanks for the interest. If you wish to buy an app with in-app purchases and upgrades, take a look at these 2:

https://codecanyon.net/item/plane-crash-follow-the-line-game/17548922

or:

https://codecanyon.net/item/bubble-pop-a-bubble-shooter-game/17443251

hi , i wat ask you, i can’t run the app

error : The version of Gradle you connect to does not support that method. To resolve the problem you can change/upgrade the target version of Gradle you connect to. Alternatively, you can ignore this exception and read other information from the model.

ok i will try this :) thank’s man

i try this but the game crached , can you help me plz , i want make an image in back

Hi, what is the error?

If the image is large, it will give you an out of memory exception. Aim for a .jpg (not png) with a size less than 62KB, with a resolution of 720×1280px

Please check your mail :) i have questions to you (about top score bug in your demo app)

Just replied, thanks!

tony4u

tony4u Purchased

Hi, i want to buy jewel and avoid the spikes app but my friend told that avoid the spikes game is asking privacy policy while uploading to google playstore Example :Your app has an apk with version code 21 that requests the following permission(s): android.permission.GET_ACCOUNTS. Apps using these permissions in an APK are required to have a privacy policy set

If i purchase i can face the same problem while uploading to playstore.

I thank you very much for your support.

no problem :)

Can You please Help me to add a background to main menu iff thats possible

by
by
by
by
by
by