Archery with AdMob and Leaderboard
$18.00
77 sales
Archery with AdMob and Leaderboard Review
Introduction
Are you ready to test your archery skills and compete with others worldwide? Look no further! Archery with AdMob and Leaderboard is a thrilling game that combines the classic archery experience with the excitement of online competition. Developed using pure Java in Android Studio, this game is a must-have for anyone who loves archery or is looking for a fun and challenging mobile game.
Features
The game boasts an impressive list of features that make it stand out from the crowd.
- Java native source code: The game’s code is written in pure Java, making it easy to customize and modify.
- AdMob Banner integrated: The game features a banner ad that displays at the bottom of the screen, providing a seamless and non-intrusive advertising experience.
- AdMob Interstitial integrated: In addition to the banner ad, the game also includes interstitial ads that can be displayed at strategic points throughout the game.
- Google Play Games Leaderboard integrated: The game allows players to compete with others worldwide on a global leaderboard, adding an extra layer of excitement and competition to the game.
- Clear graphics: The game’s graphics are crisp and clear, making it a pleasure to play.
- Optimized for tablets: The game is optimized for tablets, making it a great option for players who prefer a larger screen.
- Background music and sounds: The game features background music and sounds that add to the overall atmosphere and immersion.
How to Setup and Reskin
If you’re interested in setting up and reskinning the game, here are the steps you’ll need to follow:
- Install latest Android SDK: Make sure you have the latest Android SDK installed on your computer.
- Open Gradle project in Android Studio: Open the game’s Gradle project in Android Studio.
- Change Package ID, App Name, icons, graphics and sounds: Customize the game’s settings to fit your needs.
- Set up Google Play Games Services: Set up Google Play Games Services to enable online leaderboards and achievements.
- Set up AdMob ID, Google Play Games App ID and Leaderboard ID: Set up your AdMob ID, Google Play Games App ID, and Leaderboard ID.
- Build an APK file: Build an APK file and distribute it to your target audience.
Score: 5/5
Overall, Archery with AdMob and Leaderboard is an excellent game that offers a unique and engaging archery experience. The addition of AdMob and Google Play Games Leaderboard features takes the game to the next level, making it a must-have for anyone who loves archery or is looking for a fun and challenging mobile game. With its clear graphics, optimized performance, and customizable settings, this game is sure to please even the most discerning players.
User Reviews
Be the first to review “Archery with AdMob and Leaderboard”
Introduction to AdMob and Leaderboard in Archery Game Tutorial
In this tutorial, we will be adding AdMob ads and a leaderboard to our Archery game created with Unity. AdMob is a popular platform used to monetize mobile applications by displaying ads within your game. A leaderboard is a feature that allows players to compete with each other to achieve the highest score, making the game more engaging and fun.
In this tutorial, we will focus on integrating AdMob Rewarded Video Ads, Display Banner Ads, and Firebase Realtime Database Leaderboards. We will also explain how to set up Firebase and AdMob accounts and integrate them into your game.
Step 1: Setting up Firebase and AdMob Accounts
- Create a Firebase account and create a new project. https://console.firebase.google.com/
- In your Firebase project, navigate to the "Add Firebase to your web app" option and create a new web app.
- Create an AdMob account and link it to your Firebase project. https://admob.Google.com/
- Fill out the required information, and AdMob will automatically be linked to your Firebase project.
Step 2: Adding AdMob Components to Your Unity Project
- Open your Unity project and create a new Scene or open the existing scene where you want to integrate AdMob ads.
- Go to the Unity package manager and search for GoogleMobileAds.
- Once installed, click on GoogleMobileAds > Examples to get a sample project on how to use AdMob.
- Drag and drop the AdMobBanner into your scene, and customize its properties as needed. You can find more detailed instructions on AdMob components in the GoogleMobileAds package.
Step 3: Creating Ad Request
- In your code (C# script), initialize AdMob with the appropriate app ID and Ad UNIT ID.
- Request Rewarded Video Ads or Banner Ads as needed. If you want to show Ads on game start or load, use Admob RewardAdRequest.
using Google Mobile Ads;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Admob : MonoBehaviour
{
private readonly string appId = " Your App ID ";
private readonly string adUnitId = " Your Ad UNIT ID ";
private BannerAd bannerAd;
private RewardBasedVideoAd rewardVideoAd;
void Start()
{
MobileAds.Initialize(initStatus: (status) => OnInitializationComplete(status));
RequestBannerAd();
}
void RequestBannerAd()
{
bannerAd = new BannerAd(adUnitId);
bannerAd.OnLoaded += HandleBannerAdLoaded;
bannerAd.LoadAd(new AdRequest.BuildConfig());
}
void HandleBannerAdLoaded(object sender, EventArgs args)
{
MonoBehaviourUtility.ShowBanner();
}
}
Step 4: Enabling AdMob Ad Displays
- Enable Rewarded Video Ads by clicking "Ad Request" > "Reward Video Ad" > Enable in the AdMob Editor.
- Enable Banner Ads by clicking "Ad Request" > "Banner" > Enable in the AdMob Editor.
Step 5: Adding a Leaderboard to Firebase and Unity
- Create a new Firebase Realtime Database Leaderboard.
- Use the Firebase Realtime Database API to create and access your leaderboard.
- For example, to update scores:
using Firebase;
using UnityEngine;
public class ScoreHandler : MonoBehaviour
{
private FirebaseDatabase database;
private DatabaseReference leaderboard;
void Start()
{
database = FirebaseDatabase Instance;
leaderboard = database.GetReference("Leaderboards");
leaderboard.child("ArcheryGame").Push().SetValueAsync( points );
}
}
Step 6: Integrating Admob with Firebase Realtime Database
- When you set a new score in Firebase Realtime Database, increase your score.
- At the same time, the game can reward players and provide a more seamless score submission experience.
In our next tutorial, we'll dive deeper into handling data persistence and caching. Let me know if you would like me to expand more on this tutorial.
Full source code available in here.
Here is a complete settings example for configuring Archery with AdMob and Leaderboard:
AdMob Settings
In your strings.xml
file, add the following lines:
<string name="google_admob_app_id">YOUR_APP_ID</string>
<string name="google_admob_banner_ad_unit_id">YOUR_BANNER_AD_UNIT_ID</string>
<string name="google_admob_interstitial_ad_unit_id">YOUR_INTERSTITIAL_AD_UNIT_ID</string>
Replace YOUR_APP_ID
, YOUR_BANNER_AD_UNIT_ID
, and YOUR_INTERSTITIAL_AD_UNIT_ID
with your actual AdMob app ID and ad unit IDs.
In your build.gradle
file, add the following lines:
dependencies {
implementation 'com.google.android.gms:play-services-ads:21.1.0'
}
Leaderboard Settings
In your strings.xml
file, add the following lines:
<string name="leaderboard_service_api_key">YOUR_API_KEY</string>
<string name="leaderboard_service_authorization">YOUR_AUTHORIZATION</string>
<string name="leaderboard_service_username">YOUR_USERNAME</string>
<string name="leaderboard_service_password">YOUR_PASSWORD</string>
Replace YOUR_API_KEY
, YOUR_AUTHORIZATION
, YOUR_USERNAME
, and YOUR_PASSWORD
with your actual Google Play Games leaderboard service credentials.
In your AndroidManifest.xml
file, add the following lines:
<service android:name=".LeaderboardService">
<intent-filter>
<action android:name="com.google.android.gms.games.service.LEADERBOARD_SERVICE" />
</intent-filter>
</service>
Game Settings
In your strings.xml
file, add the following lines:
<string name="game_name">Your Game Name</string>
<string name="game_version">1.0</string>
<string name="leaderboard_category">Archery Leaderboard</string>
Replace Your Game Name
and 1.0
with your actual game name and version.
In your GameActivity.java
file, add the following lines:
private static final String GAME_NAME = "Your Game Name";
private static final String GAME_VERSION = "1.0";
private static final String LEADERBOARD_CATEGORY = "Archery Leaderboard";
Replace Your Game Name
and 1.0
with your actual game name and version.
Here are the features of the Archery with AdMob and Leaderboard game:
- Java native source code: The game is coded in pure Java, specifically for Android devices.
- AdMob Banner integrated: The game features an AdMob banner that can be displayed in the app.
- AdMob Interstitial integrated: The game also
There are no reviews yet.