How To Make Your First Android and IOS Game In Unity Today !

Опубликовано: 17 Июнь 2026
на канале: Mourad Data Scientist
76
5

Ready to dive into game development with Unity? This tutorial is perfect for complete beginners looking to build their first game from scratch! 🎮 In this step-by-step guide, I’ll show you how to create a fun, physics-based game where you launch pumpkins at targets—just like Angry Birds, but with a twist! 🎃

Github Link : https://github.com/mourad01/First-mob...
My Instagram :   / mourad_developer  



Summry :

00:00:00 - Introduction: introduces the tutorial on creating a physics-based game in Unity. He highlights the steps and objectives of the tutorial, aiming to guide both beginners and those looking to sharpen their skills.

00:00:33 - Project Setup: Mourad sets up the Unity project using Unity 6, naming the project and organizing the project structure by creating folders for sprites, scripts, and prefabs.

00:01:27 - Importing Assets: He imports high-resolution sprites into the project, including a pumpkin player and a ghost enemy, themed around Halloween, and mentions that these assets are available on his GitHub.

00:02:08 - Creating the Player: Mourad creates the first player by dragging the sprite into the scene, renaming it, and adding a Rigidbody2D and Circle Collider2D to apply physics and detect collisions.

00:02:59 - Scripting the Player: Mourad writes the first script for the player, focusing on grabbing the Rigidbody2D and checking if the player is launched. He explains setting the Rigidbody to kinematic in the Awake function to prevent it from being affected by physics initially.

00:04:07 - Launch Function: He creates a function to switch the Rigidbody to dynamic when launching the player, adding force for movement, and explains the importance of using ForceMode.Impulse for a jump-like effect.

00:05:22 - Environment Setup: Mourad switches the project to an Android platform, briefly explains setting up the environment by creating empty objects for the ground and background, and details how to properly layer the ground and background.

00:08:40 - Adding Colliders: He emphasizes the importance of adding box colliders to all ground objects to detect collisions.

00:09:22 - Prefabs and Input Handling: Mourad creates a prefab for the player and discusses the creation of a GameManager to handle player input and spawning multiple players. He describes the setup of the StartPosition and the PlayerLauncher script, which handles input detection and player launching.

00:13:50 - Camera Controller: Mourad introduces a CameraController script that follows the player smoothly, explaining how to adjust the camera’s position based on the player's movement and maintain a dynamic visual experience.

00:17:14 - Enemy Setup: Mourad adds enemies to the game, explaining how each enemy reacts to collisions with the player and gets destroyed if the impact is strong enough. He details the Enemy script that handles collision detection and enemy destruction.

00:21:26 - UI Setup: Mourad sets up the game’s UI, including a button to spawn the next player and end screens for winning or losing. He walks through the implementation of the UI elements and the GameUI script that manages UI interactions.

00:25:21 - Final Steps: He finalizes the game by ensuring all game components are correctly linked, like connecting UI buttons to their respective functions in the GameManager.

00:26:11 - Conclusion: Mourad concludes by showcasing the finished game, encouraging viewers to like, subscribe, and comment if they want to see more projects like this one.