Skip to main content

Posts

Showing posts from April, 2024

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...

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...