Makinom - Game Toolkit for Unity
  • Features
  • Showcase
  • Guide
    • Documentation
    • Tutorials
    • Extensions
    • API
  • Makinom 1
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get Makinom

Guide

Schematics

  • Setting the Player
  • Simple Character Controller
  • Mouse Orbit Camera
  • Random Waypoints

Breakout

  • Breakout Tutorial Introduction
  • 01 First Steps
  • 02 Player Controls
  • 03 Bricks
  • 04 Losing a Life
  • 05 UI Setup
  • 06 Sound Assignments

Space Shooter

  • Space Shooter Tutorial Introduction
  • 01 First Steps
  • 02 Player Move Controls
  • 03 Player Weapon Controls
  • 04 Hit and Destroy
  • 05 Asteroids
  • 06 Game Controller
  • 07 UI Setup
  • 08 Player’s Destruction
  • 09 Enemy Ship Mechanics
  • 10 Enemy Ship
  • 11 Moving the Background

Match 3

  • Match 3 Tutorial Introduction
  • 01 First Steps
  • 02 UI Setup
  • 03 Generating the Level
  • 04 Matching Jewels
  • 05 Destroying Jewels
  • 06 Game Controls
  • 07 Jewel Setup

Survival Shooter

  • Survival Shooter Tutorial Introduction
  • 01 First Steps
  • 02 Player Movement
  • 03 Player Shooting
  • 04 Enemy Mechanics
  • 05 Setting up the Enemies
  • 06 UI Setup
  • 07 Player’s Death
  • 08 Enemy Spawner

2D Roguelike

  • 2D Roguelike Tutorial Introduction
  • 01 First Steps
  • 02 Generating the Level
  • 03 Level Generation Machines
  • 04 Player Controls
  • 05 Walls, Food and Exit
  • 06 Game Manager and UI Setup
  • 07 Enemy Mechanics
  • 08 Game Over

2D Platformer

  • 2D Platformer Tutorial Introduction
  • 01 First Steps
  • 02 Player Movement
  • 03 Camera and Background
  • 04 Shooting Rockets
  • 05 Enemy Mechanics
  • 06 Setting up the Enemies
  • 07 Enemy Spawners
  • 08 Player Damage and Fall Remover
  • 09 Health Pickup
  • 10 Bomb Pickup
  • 11 Bomb Prefabs and Lay Bombs
  • 12 Pickup Spawner
  • 13 UI Setup
  • 14 Background Animations
  • Home
  • Guide
  • Tutorials
  • Breakout
  • 01 First Steps

01 First Steps

Table of Contents
  • Setting up the Unity Project
    • Create new Unity Project
    • Importing Resources and Makinom
  • Setting up Makinom
    • Input Keys
      • 4: Fire
      • 5: Pause
    • Game Controls
      • Base Key Settings
    • Game Settings
      • Initial Variables
    • UI System
      • UI System Settings
  • Scene Setup
    • Adding a Game Starter

A quick overview over the project and setting up the basics of the breakout game.

This game tutorial series will teach you how to create a simple breakout game. The player moves a paddle at the bottom of the level and uses a ball to destroy bricks.

In this tutorial we’ll set up the Unity project, take a quick look at the project and set up some basics in the Makinom editor.

Setting up the Unity Project #

By now you should’ve downloaded the project resources, a unitypackage file containing the assets we’ll use in this tutorial series.

Create new Unity Project #

Use the Unity Hub to create a new Unity project, make sure to use at least Unity 2019.1, best one of the LTS versions (e.g. Unity 2019.4 LTS).

The new project comes with an empty sample scene set up, we don’t really need it, so you can delete it (and the folder Assets/Scenes/) if you want.

We’ll use the Unity UI module, make sure the project contains the TextMesh Pro and Unity UI packages. They should automatically be included in a new Unity project, if not, use the package manager (Window > Package Manager) to import them.

Importing Resources and Makinom #

Next, we’ll import the project resources you’ve downloaded and the latest Makinom 2 version (or any you’ve got lying around).

The order in which you import them doesn’t matter. If you get a warning regarding script updates, confirm it to continue with the import.

The tutorial resources can be found in this folder: Assets/Tutorial Resources/

All our setup will be done in the Level 1 scene (found at Assets/Tutorial Resources/Scenes/), so you can already open it.

Setting up Makinom #

We’ll now set up some basics in the Makinom project. Open the Makinom editor (Window > Makinom) – this will create a new Makinom project at Assets/Gaming Is Love/_Data/Project.asset, in case no project has been created or opened yet.

Input Keys #

First, we’ll set up the input keys to control the game. Navigate to Base/Control > Input Keys. The default controls are already set up for us, but we’ll need another input key for firing the ball from the paddle and pausing the game.

Click on the Add button in the data list part of the editor to add new content.

4: Fire #

  • Name
    Set to Fire.
    To change texts in the text areas, click on the Edit Text button.

The input settings are defined in the already added Input ID Setting 0.

  • Input Origin
    Select Key Code.
  • Positive Key
    Select Space.
    Make sure to use the search in the popup selection to quickly find the key.

5: Pause #

  • Name
    Set to Pause.
  • Input Origin
    Select Key Code.
  • Positive Key
    Select P.

That’s it for the input keys.

Game Controls #

Now we’ll set up pausing the game. Navigate to Base/Controls > Game Controls and change the following settings.

Base Key Settings #

  • Pause Key
    Select Pause.
  • Pause Time
    Enable this setting.
    This will pause the game time.
  • Freeze Pause
    Enable this setting.
    This will set Unity’s time scale to 0, stopping everything in the game (e.g. animations).

Game Settings #

Next, we’ll set up an initial global variable to hold the player’s lives. Navigate to Game > Game Settings and change the following settings.

Initial Variables #

Click on Add Variable to add an initial variable.

  • Variable Key
    Set to lives.
  • Type
    Select Int.
  • Operator
    Select Set.
  • Float Value
    Set to 3 (Value).

Now our player will have 3 lives at the start of the game.

UI System #

We’ll use the Unity UI module – it’s best to select the UI system as one of the first things when starting a new project.

Navigate to UI > UI System and change the following setting.

UI System Settings #

  • UI System Type
    Select Unity UI.
  • Default Screen Size
    Set to X=1280, Y=720.
    You should also change the resolution of your Unity project to use the same size.
    You can find them in Edit > Project Settings… > Player, they’re available when not using fullscreen mode.

Changing the UI system will show confirmation dialogue, which we’ll accept via the Ok button.

And that’s it – click on Save Settings (and on Confirm in the following screen) to save the changes.

Scene Setup #

Finally, we’ll add Makinom to the scene. Open the Level 1 scene (found at Assets/Tutorial Resources/Scenes/).

Adding a Game Starter #

To add Makinom to the game, we’ll need a game starter. You can learn more in the game starters documentation.

Add the game starter using the scene wizard (Window > Makinom Scene Wizard). Click on Add Game Starter, select the Makinom project if it’s not already selected (found at Assets/Gaming Is Love/_Data/Project.asset) and click on Add Game Starter again. The scene wizard will create a new game object and attach the game starter to it.

Move the new game starter object out of the way, e.g. to X=-20, Y=0, Z=0.

And that’s it for now – save the scene.

The next tutorial will handle the player controls.

Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on January 5, 2021
Table of Contents
  • Setting up the Unity Project
    • Create new Unity Project
    • Importing Resources and Makinom
  • Setting up Makinom
    • Input Keys
      • 4: Fire
      • 5: Pause
    • Game Controls
      • Base Key Settings
    • Game Settings
      • Initial Variables
    • UI System
      • UI System Settings
  • Scene Setup
    • Adding a Game Starter
Sitemap
  • Features
  • Showcase
  • Guide
    • Documentation
    • Tutorials
    • Extensions
    • API
  • Makinom 1 Hub
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get Makinom
  • Contact
  • Blog
  • ORK Framework
  • gamingislove.com
Categories
  • Makinom 1 (97)
    • Tutorial (97)
      • 2D Platformer (14)
      • 2D Roguelike (8)
      • Breakout (6)
      • How-to (34)
      • Match 3 (6)
      • Schematic (4)
      • Scripting (6)
      • Space Shooter (11)
      • Survival Shooter (8)
  • News (11)
  • Release (68)
Search

© 2015 Gaming is Love e.U.

Disclosure: This site may contain affiliate links, which means I may receive a commission if you click a link and purchase something that I have recommended. While clicking these links won’t cost you any money, they will help me fund my development projects while recommending great assets!