Remember Numbers with AdMob and Leaderboard
$16.00
26 sales
Introduction
Remember Numbers is a LibGDX game developed in Java using Android Studio that aims to challenge your memory and quick thinking. The game is designed to train your brain by remembering random numbers and opening them in ascending order. With its difficulty increasing from 3 to 7 numbers, and a time limit to boot, Remember Numbers is a great game for those who enjoy brain teasers and mental exercises.
Features
What sets Remember Numbers apart is its rich set of features that make the gaming experience even more engaging.
- AdMob Banner and Interstitial Integrated: The game features AdMob banner and interstitial ads, which will help you earn some extra money from your app.
- Google Play Games Leaderboard Integrated: With its integration with Google Play Games, Remember Numbers allows you to compete with other players on leaderboards, adding a competitive element to the game.
- Clear Graphics: The game’s graphics are clear and well-designed, making it a pleasure to play.
- Optimized for Tablets: The game is optimized for tablets, so you can play it on your Android tablet device without any issues.
- Background Music and Sounds: The game features background music and sound effects that add to the overall gaming experience.
How to Setup and Reskin
If you’re interested in customizing the game to fit your needs, Remember Numbers provides a clear setup and reskin process:
- Install latest Android SDK: First, you need to install the latest Android SDK.
- Open Gradle Project in Android Studio: Next, open the Gradle project in Android Studio.
- Change Package ID, App Name, icons, graphics and sounds: Change the package ID, app name, icons, graphics, and sounds to fit your needs.
- Set up Google Play Games Services: Set up Google Play Games Services to enable leaderboards and other features.
- Set up AdMob ID, Google Play Games App ID, and Leaderboard ID: Set up AdMob ID, Google Play Games App ID, and Leaderboard ID to enable ad displaying and leaderboard functionality.
- Build an APK File: Finally, build an APK file to distribute the game.
Credits
Remember Numbers would not be the same without the contributions of the following:
- Some graphic elements designed by Freepik.com: The game’s graphic elements were designed by Freepik.com.
- Background Music: "Treasure Castle" (playonloop.com): The background music was licensed from playonloop.com under "Treasure Castle".
Final Score: 5/5
Overall, Remember Numbers is an engaging and challenging game that is perfect for anyone who enjoys brain teasers and memory games. With its rich set of features and ease of setup and reskinning, Remember Numbers is a great choice for game developers who want to create a game with depth and replay value.
User Reviews
Be the first to review “Remember Numbers with AdMob and Leaderboard”
Introduction
Remember Numbers is a popular mobile game that challenges users to remember and recall numbers in a specific sequence. It's a great way to test one's memory and concentration skills. By incorporating AdMob and Leaderboards into the game, you can monetize the game and encourage users to play and improve their skills. In this tutorial, we will cover the steps to integrate AdMob and Leaderboards into the Remember Numbers game.
Prerequisites
- Remember Numbers game source code
- AdMob account
- Firebase account
- Android Studio (or Xcode for iOS)
Step 1: Set up AdMob
- Create a new AdMob account if you haven't already. Go to the AdMob website and sign up for an account.
- Create a new ad unit for your app. Go to the AdMob dashboard, click on "Apps" and then click on the "Create Ad Unit" button. Fill in the required information, including your app name, ad type (banner or interstitial), and ad size (depending on your game's UI).
- Once you have created your ad unit, you will receive an ad unit ID. Note this down as you will need it later.
Step 2: Set up Firebase
- Create a new Firebase project. Go to the Firebase website and sign in with your Google account. Click on "Create a project" and follow the prompts.
- Install the Firebase SDK in your Remember Numbers game. You can do this by adding the Firebase library to your Android project (for Android) or your Xcode project (for iOS). Follow the Firebase documentation for detailed instructions.
Step 3: Set up Leaderboards
- In your Firebase project, go to the "Auth" tab and enable Google Sign-In for your app. This will allow users to authenticate and link their scores to their Google account.
- Create a new leaderboard in Firebase by going to the "Leaderboards" tab. Click on the "Create Leaderboard" button and fill in the required information, including your leaderboard title, description, and scoring mechanism.
Step 4: Integrate AdMob and Leaderboards into the Remember Numbers game
- In your Remember Numbers game code, add the AdMob and Firebase SDKs to your project. This will typically involve adding a few lines of code to your project's
build.gradle
file (for Android) orPodfile
(for iOS). - Initialize the AdMob SDK by adding the following code to your game's entry point (e.g. the main activity or view controller):
// For Android import com.google.android.gms.ads.AdView; import com.google.android.gms.ads.MobileAds;
// In the onCreate method MobileAds.initialize(this, new OnInitializationCompleteListener() { @Override public void onInitializationComplete() { AdView adView = findViewById(R.id.adView); adView.loadAd(new AdRequest.Builder().build()); } });
```swift
// For iOS
import GoogleMobileAds
// In the application(_:didFinishLaunchingWithOptions:) method
GADMobileAds.sharedInstance().startLoadingAd()
- Initialize the Firebase SDK by adding the following code to your game's entry point:
// For Android import com.google.firebase.FirebaseApp; import com.google.firebase.auth.FirebaseAuth;
// In the onCreate method FirebaseApp.initializeApp(this); FirebaseAuth.getInstance();
```swift
// For iOS
import Firebase
// In the application(_:didFinishLaunchingWithOptions:) method
FirebaseApp.configure()
- Implement the AdMob and Leaderboard code in your game's UI:
- For AdMob:
// For Android AdView adView = findViewById(R.id.adView); adView.loadAd(new AdRequest.Builder().build());
// For iOS
GADBannerView adView = [[GADBannerView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];
[GADMobileAds.sharedInstance requestView:adView];
- For Leaderboards:
// For Android FirebaseAuth firebaseAuth = FirebaseAuth.getInstance(); String userUID = firebaseAuth.getCurrentUser().getUid(); Leaderboard leaderboard = FirebaseFirestore.getInstance().collection("leaderboards").document(userUID).get();
// For iOS
FIRFirestore *firestore = [FIRFirestore firestore];
FIRDocumentReference *leaderboardReference = [firestore collectionWithPath:@"leaderboards"].document;
FIRDataSnapshot *leaderboardSnapshot = [leaderboardReference getDocument];
- Update the leaderboard score:
// For Android long score = 100; // adjust the score as needed FirebaseAuth firebaseAuth = FirebaseAuth.getInstance(); String userUID = firebaseAuth.getCurrentUser().getUid(); FirebaseFirestore db = FirebaseFirestore.getInstance(); db.collection("leaderboards").document(userUID).set(score, SetOptions.merge());
// For iOS
long score = 100; // adjust the score as needed
FIRAuth *auth = [FIRAuth auth];
FIRUser *user = [auth currentUser];
FIRFirestore *firestore = [FIRFirestore firestore];
[Firestore collectionWithPath:@"leaderboards"].document(user.uid).set([FIR.firestore_set_options(merge:true) score]);
Step 5: Test the game
Run the Remember Numbers game on a physical device or emulator and test the AdMob and Leaderboard features. Verify that ads are being displayed correctly and leaderboard scores are being updated correctly.
Conclusion
In this tutorial, we have covered the steps to integrate AdMob and Leaderboards into the Remember Numbers game. By following these steps, you can monetize your game and encourage users to play and improve their skills. Remember to replace the sample code with your own implementation and to adjust the leaderboard scoring mechanism as needed. Good luck with your game development!
Here is an example of settings configuration for Remember Numbers with AdMob and Leaderboard:
AdMob Settings
To configure AdMob, add the following settings:
<application
...
android:configChanges="orientation|keyboardHidden|screenSize"
android:hardwareAccelerated="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~6573145314" />
</application>
Leaderboard Settings
To configure Leaderboard, add the following settings:
<resources>
<integer name="leaderboard_id">1587306</integer>
<integer name="leaderboard_tablet_id">1587307</integer>
<string name="leaderboard_text">Leaderboard</string>
</resources>
Remember Numbers Settings
To configure Remember Numbers, add the following settings:
<application
...
android:largeHeap="true">
<meta-data
android:name="com.example.app.REMEMBER_NUMBERS_DB_NAME"
android:value="remember_numbers_db" />
<meta-data
android:name="com.example.app.REMEMBER_NUMBERS_DB_VERSION"
android:value="1" />
</application>
Firebase Analytics Settings
To configure Firebase Analytics, add the following settings:
<application
...
tools:node="replace">
<meta-data
android:name="com.google.firebase.analytics_Enable"
android:value="true" />
</application>
$16.00
There are no reviews yet.