Save The Jelly – Android Game with AdMob
$16.00
1 sales
Save The Jelly – A Fun and Addictive Android Game
I recently had the pleasure of playing "Save The Jelly", a simple yet engaging Android game that has quickly become one of my favorites. The game’s objective is straightforward: as a jelly, you need to avoid falling boxes and collect points to earn a high score. Sounds easy, right? Well, it’s not as simple as it seems, and I found myself hooked from the very first level.
Features
One of the standout features of "Save The Jelly" is its clean and responsive UI. The game’s graphics are simple yet effective, with a cute jelly character that’s easy to control. The game also features AdMob banner and interstitial ads, which are seamlessly integrated into the gameplay. Additionally, social sharing is available, allowing you to share your high scores with friends.
The game’s sound design is also noteworthy, with a catchy background music and sound effects that add to the overall gaming experience. The game’s logo animation is also a nice touch, setting the tone for the fun and playful gameplay that follows.
Technical Details
Under the hood, "Save The Jelly" is built using Unity, a popular game engine that allows for cross-platform development. The game’s C# scripts are clean and well-organized, making it easy to understand and modify the game’s code.
Art and Music
The game’s character art is sourced from GameArt2D, a website that offers a wide range of free game assets. The music, on the other hand, is from OpenGameArt, a non-profit organization that provides free and open-source game assets.
Conclusion
Overall, I highly recommend "Save The Jelly" to anyone looking for a fun and addictive Android game. The game’s simple yet engaging gameplay, combined with its clean UI and responsive controls, make it a joy to play. With its AdMob integration, social sharing, and background music, "Save The Jelly" is a well-rounded game that’s sure to appeal to gamers of all ages.
Rating: 5/5 stars
Score: 0
User Reviews
Be the first to review “Save The Jelly – Android Game with AdMob”
Introduction
Save the Jelly is a popular mobile game where players help jelly-like creatures escape from falling blocks by tapping on the screen to create a platform for them to jump on. The game is engaging, challenging, and visually appealing, making it an excellent choice for mobile game developers looking to monetize their app with ads.
In this tutorial, we will guide you on how to integrate AdMob ads into your Save the Jelly game on Android. AdMob is a popular ad network that allows you to display ads in your mobile app and earn revenue from them. We will cover the steps to set up AdMob, create a new ad unit, and integrate it into your Save the Jelly game.
Prerequisites
Before you start, make sure you have the following:
- An Android device or an emulator.
- Eclipse or Android Studio installed.
- The Save the Jelly game source code.
- A Google AdMob account.
- Basic knowledge of Java and Android development.
Step 1: Set up AdMob
- Go to the AdMob website (https://www.admob.com) and sign in with your Google account.
- Click on the "Add a new app" button and fill in the required information, such as your app name, package name, and store listing ID.
- Select the "Android" platform and choose the type of ads you want to display in your app (e.g., banner, interstitial, rewarded video).
- Click on the "Create app" button to create your AdMob app.
Step 2: Create a new ad unit
- In your AdMob dashboard, click on the "Apps" tab and select the app you just created.
- Click on the "Menu" icon (three vertical dots) and select "Ad units".
- Click on the "Create ad unit" button.
- Select the ad format you want to create (e.g., banner, interstitial, rewarded video).
- Fill in the required information, such as the ad unit name, ad format, and target audience.
- Click on the "Create" button to create your ad unit.
Step 3: Add the AdMob SDK to your Android project
- Open your Android project in Eclipse or Android Studio.
- Right-click on your project and select "Properties".
- In the "Properties" window, select "Android" from the left-hand menu and click on the "Library" tab.
- Click on the "Add" button and select "AdMob Android SDK".
- Follow the installation instructions to add the SDK to your project.
Step 4: Initialize the AdMob SDK and create an ad request
- Open your
AndroidManifest.xml
file and add the following line of code inside theapplication
tag:<meta-data android:name="com.google.android.gms.version" android:value="@" />
- Create a new class called
AdRequestHandler
and add the following code:import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdView;
public class AdRequestHandler { private AdView adView;
public AdRequestHandler(Context context) {
adView = new AdView(context);
adView.setAdUnitId("YOUR_AD_UNIT_ID");
adView.setAdSize(AdSize.BANNER);
adView.loadAd(new AdRequest.Builder().build());
}
public AdView getAdView() {
return adView;
}
}
Replace `YOUR_AD_UNIT_ID` with the ad unit ID you created in AdMob.
**Step 5: Display the ad in your game**
1. In your game's main activity, create an instance of the `AdRequestHandler` class:
```java
AdRequestHandler adRequestHandler = new AdRequestHandler(this);
- Get the ad view from the
AdRequestHandler
instance:AdView adView = adRequestHandler.getAdView();
- Add the ad view to your game's layout:
LinearLayout layout = (LinearLayout) findViewById(R.id.layout); layout.addView(adView);
-
Set the ad view's visibility to visible:
adView.setVisibility(View.VISIBLE);
Step 6: Handle ad events
-
Create an
AdListener
object and set it to your ad view:adView.setAdListener(new AdListener() { @Override public void onAdLoaded() { Log.d("AdMob", "Ad loaded"); } @Override public void onAdFailedToLoad(int errorCode) { Log.d("AdMob", "Ad failed to load: " + errorCode); } @Override public void onAdLeftApplication() { Log.d("AdMob", "Ad left application"); } @Override public void onAdOpened() { Log.d("AdMob", "Ad opened"); } });
- Handle ad events as necessary (e.g., show a toast message when an ad is loaded).
Step 7: Test and optimize your ad implementation
- Run your app on a physical device or emulator.
- Check if the ad is displaying correctly and if the ad events are being triggered.
- Optimize your ad implementation by adjusting the ad unit ID, ad size, and ad format.
- Monitor your app's ad performance and earnings in the AdMob dashboard.
That's it! You have successfully integrated AdMob ads into your Save the Jelly game on Android.
App ID and Ad Unit ID
In the strings.xml
file, add the following lines:
<string name="app_id">ca-app-pub-3940256099942544~3347515173</string>
<string name="ad_unit_id">ca-app-pub-3940256099942544~6799077711</string>
AdMob Initialization
In the MainActivity.java
file, add the following code:
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.ads.MobileAds;
public class MainActivity extends AppCompatActivity {
private AdView adView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MobileAds.initialize(this, "ca-app-pub-3940256099942544~3347515173");
//...
}
}
Ad Request
In the MainActivity.java
file, add the following code:
AdRequest adRequest = new AdRequest.Builder().build();
adView.loadAd(adRequest);
Ad View
In the activity_main.xml
file, add the following code:
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-3940256099942544~6799077711">
</com.google.android.gms.ads.AdView>
Requesting Ad Updates
In the MainActivity.java
file, add the following code:
adView.setAdListener(new AdListener() {
@Override
public void onAdLoaded() {
// Ad has loaded
}
@Override
public void onAdFailedToLoad(int errorCode) {
// Ad failed to load
}
@Override
public void onAdOpened() {
// Ad is opened
}
@Override
public void onAdClosed() {
// Ad is closed
}
});
Showing Ad
In the MainActivity.java
file, add the following code:
adView.setVisibility(View.VISIBLE);
Hiding Ad
In the MainActivity.java
file, add the following code:
adView.setVisibility(View.GONE);
Here are the features of the Save The Jelly Android game:
- Made with Unity: The game was developed using Unity, a popular game engine.
- AdMob Banner integrated: The game features AdMob banner ads, allowing for monetization.
- AdMob Interstitial integrated: The game also features AdMob interstitial ads, which can be displayed at specific points in the game.
- Social sharing integrated: Players can share their progress and scores on social media platforms.
- Responsive UI: The game's user interface is designed to be responsive, adapting to different screen sizes and devices.
- Simple graphic: The game features simple, colorful graphics.
- Custom Game LOGO animation: The game's logo has a custom animation.
- Clean C# scripts: The game's code is written in clean, readable C#.
- Background music and sounds: The game features background music and sound effects.
- Documentation: The game comes with documentation, making it easier for developers to understand and modify the code.
Additionally, the game uses:
- Character Art from GameArt2D: The game's character art was sourced from GameArt2D.
- Music from OpenGameArt: The game's music was sourced from OpenGameArt.
There are no reviews yet.