simple unity games to make

Simple Unity Games to Make

By Amanda Hernandez
AD

Are you new to game development and eager to dive into the world of Unity? You're in luck! Unity, a powerful and user-friendly game engine, is an excellent platform to start creating simple yet engaging games. This guide will walk you through some simple Unity games to make, helping you build a strong foundation in game development.

Before we begin, ensure you have Unity Hub installed on your computer. Unity Hub is a unified interface that allows you to manage your Unity projects and installations. If you haven't already, download and install Unity Hub from the official Unity website.

Creating a Simple 2D Platformer

A 2D platformer is an excellent starting point for beginners, as it involves basic mechanics and requires minimal assets. In this section, we'll create a simple 2D platformer using Unity's built-in 2D features.

AD
Making a Simple Game in Unity (Part 1) - Unity C# Tutorial
Making a Simple Game in Unity (Part 1) - Unity C# Tutorial
a fun colour matching gamee>>>
a fun colour matching gamee>>>
untitled
untitled

First, open Unity Hub and create a new 2D project. Name it "SimplePlatformer" and choose the Universal Render Pipeline template. Click "Create" to start your project.

Setting Up the Scene

In the Project window, you'll find a folder named "Scenes." Right-click on it and select "Create > Scene." Name it "Main" and double-click to open it in the editor.

Unity Camera Follow Player Tutorial
Unity Camera Follow Player Tutorial
someone is stringing together pink cups on a blue table
someone is stringing together pink cups on a blue table
21 Creative Group Games for Kids to Play Anytime, Anywhere
21 Creative Group Games for Kids to Play Anytime, Anywhere

From the Hierarchy window, delete the "Main Camera" and "Directional Light" objects. Then, go to GameObject > UI > Image to create a new UI Image. Name it "Background" and set its color to a dark gray (#4A4A4A).

Creating the Player Character

To create the player character, right-click in the Hierarchy window and select "2D Object > Sprite." Name it "Player" and import a simple 2D sprite for the player character. You can find free 2D sprites online or create your own using a graphics editor like Aseprite or Photoshop.

AD

Attach the "PlatformerCharacter2D" script to the Player object by dragging and dropping it from the Project window. This script provides basic platformer functionality, such as jumping and moving left and right. You can find this script in Unity's Standard Assets > 2D > Prefabs folder.

game making
game making
Unity Tutorial For Beginners - How To Make A Game - Part 008 - Animation
Unity Tutorial For Beginners - How To Make A Game - Part 008 - Animation
How to Make a Simple Game in Unity 3D
How to Make a Simple Game in Unity 3D
a group of young people sitting on the floor in front of a black wall with text that reads, this game is called the random
a group of young people sitting on the floor in front of a black wall with text that reads, this game is called the random
How To Plan Your Unity Game Creating A Simple Game Document Design
How To Plan Your Unity Game Creating A Simple Game Document Design
How to Make a Simple Game in Unity 3D
How to Make a Simple Game in Unity 3D

Developing a Basic Endless Runner

An endless runner is another simple game type that's easy to create and can be quite engaging. In this section, we'll develop a basic endless runner using Unity's 2D features and some C# scripting.

Create a new 2D project in Unity Hub and name it "EndlessRunner." Choose the Universal Render Pipeline template and click "Create" to start your project.

AD

Setting Up the Scene

Create a new scene named "Main" and delete the "Main Camera" and "Directional Light" objects, just like in the previous example. Create a new UI Image named "Background" and set its color to a light gray (#F5F5F5).

Unity Mobile Game Development For Beginners | Create A Simple 2D Game
Unity Mobile Game Development For Beginners | Create A Simple 2D Game
two children are working on something with green thread and glue in front of each other
two children are working on something with green thread and glue in front of each other
two children are doing crafts on the table
two children are doing crafts on the table
9 Quick Games for Large Groups | Fun Party Tips
9 Quick Games for Large Groups | Fun Party Tips
Level Design and Click to Move | Making a Simple RPG - Unity 5 Tutorial (Part 1)
Level Design and Click to Move | Making a Simple RPG - Unity 5 Tutorial (Part 1)
How to Make a 2D Game in Unity
How to Make a 2D Game in Unity
Kubes / World Builder - unity tool🌍💗
Kubes / World Builder - unity tool🌍💗
Simple Player Movement Script in Unity (Beginner Guide)
Simple Player Movement Script in Unity (Beginner Guide)
Build and Export Unity Game
Build and Export Unity Game
How to Make a Game - Unity Beginner Tutorial
How to Make a Game - Unity Beginner Tutorial
Family Olympic Games
Family Olympic Games
Timed Events - Building, Plant Growing, Daily Reward | Unity Tutorial
Timed Events - Building, Plant Growing, Daily Reward | Unity Tutorial
How to use Unity NavMesh Pathfinding! (Unity Tutorial)
How to use Unity NavMesh Pathfinding! (Unity Tutorial)
5 Games That Don’t Need Supplies
5 Games That Don’t Need Supplies

Import a simple 2D sprite for the player character and create a new C# script named "PlayerController." Attach this script to the player object and replace its contents with the following code:

```csharp using UnityEngine; public class PlayerController : MonoBehaviour { public float speed = 5.0f; private Rigidbody2D rb; private Vector2 moveInput; void Start() { rb = GetComponent (); } void Update() { moveInput = new Vector2(Input.GetAxisRaw("Horizontal"), 0); } void FixedUpdate() { rb.MovePosition(rb.position + moveInput * speed * Time.fixedDeltaTime); } } ```

This script allows the player to move left and right using the horizontal axis on the keyboard.

Creating Obstacles

To create obstacles, right-click in the Hierarchy window and select "2D Object > Sprite." Name it "Obstacle" and import a simple 2D sprite for the obstacle. Create multiple obstacles and position them along the x-axis at varying heights.

Create a new C# script named "ObstacleMover" and attach it to each obstacle. Replace its contents with the following code:

```csharp using UnityEngine; public class ObstacleMover : MonoBehaviour { public float speed = 2.0f; void Update() { transform.position += Vector3.left * speed * Time.deltaTime; } } ```

This script moves the obstacles left at a constant speed.

As you continue to explore Unity and gain experience, you can build upon these simple games to create more complex and engaging projects. Don't be afraid to experiment with new features and assets to see what you can create. Happy game development!

AD