Skip to main content

Posts

How to use Unity Ads in your mobile game (2024)

If you are developing with Unity Engine and planning to publish a mobile game, including ads is a great way to monetize it and make money with it. This is quite easy to do with the Unity Ads SDK. In this post I will explain the process step by step to integrate Unity Ads into your game and start making revenue out of your development. How does Unity advertisement work? First, I'll quickly explain how everything works under the hood with Unity Ads. There are three basic steps that need to happen for an ad to show in your game: Initializing ads: this happens every time the game launches. Loading ads: this is when the ads load from the server and it happens always before showing an ad. Showing the ads: this is when the actual advertisement is shown to the user. Why is this important? Because loading an ad can take some time, just like loading a video in Youtube. If you try to load the ad right before showing it, in some cases, it can take longer than usual which could lead to skipping...
Recent posts

Drone Simulator - Programming Drone Controls

 This one is the first of the posts regarding the development of the drone simulator for Android. In this one we're covering the controls of the drone, that allow the player to move the vehicle around the world using two joysticks, resembling an actual basic drone controller. This system is divided into two parts: the joysticks that capture the input from the player and the code that moves the drone based on the input. The joysticks For the joysticks, I first thought of creating them myself. It seemed to be an easy task: design some simple sprites and program the input handling so, why not do it myself? The answer is simple: don't. We are using Unity Engine. This means we have access to the Unity Asset Store with thousands of assets created by the community, many of them free to use. If we don't have the knowledge, the budget or the time to create something, we go to the Asset Store and check if someone else has already figured it out and made it available for everyone. Mo...

Drone Simulator - Introduction

Throughout the last weeks I've been spending some time developing a mobile game I've ended up publishing in Google Play. After the first iteration of the project, I think it can be an interesting process to document and share with other beginners (just like myself) in the game development world. My idea is to publish a sequence of brief posts covering the different aspects of the game, the ideas that came to my mind and provide some code solutions that I hope can be helpful. Maybe just show the path around some of the obstacles I have encountered throughout the process, from starting with a blank Unity project to publishing a first release in Google Play. I've already had some previous experience in making games with Unity Engine but nothing very advanced. This time I wanted to give a try to programming from scratch a movement system for a drone with mobile controls. It can be something as basic as a cube moving along the x, y and z axes of a 3D world, but the interesting t...