Skip to main content

Posts

Showing posts with the label drone simulator

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