Making different game types

Once you grasp the basics of Unity, you’ll want to consider what kind of game you want to make and what tutorials and assets to start using to learn how to build what you want.

Some major game types

Here’s a broad overview of some types of games that you could try to make.

  • 2D: Simpler than 3D.
    • Visual Novel: Interactive branching choice story game. Best for writers and beginners. No C# experience required to use Fungus.
    • Side scrolling platformer: Easiest kind of 2D to start with.
    • Top-down action
      • Shootemup
    • Isometric 2D: Harder than regular 2D, best to do  isometric games as 3D
    • Top-down turn based
    • RPG
  • 3D
    • First person
      • First-person Platformer: Easiest to start with.
      • First-person Shooter
        • Campaign FPS: A shooter where you play a single-player campaign against AI enemies.
        • Multiplayer FPS: A shooter where you play against other players. Intermediate skill needed to do networking.
      • First-person Puzzler
      • First-person RPG
    • Third Person
  • Tabletop
    • Board game
    • Card game
    • RPG
    • War game

Interactive story choice adventure

fungus2

You can make interactive story choice adventures as complete games or use them to augment another type of game with story elements.

Interactive stories with Fungus

fungus.jpg

Fungus is a great free open source package for Unity to make stories with flowcharts.

  1. Download and install Fungus unity package into your project.
  2. Open and play some of the example scenes to see how it works.
  3. Watch the Learn Fungus video and the Fungus Documentation Tutorial Videos to get an overview of what Fungus can do.

Basics of making your first fungus story

  1. Create your own new scene.
  2. Tools menu / Fungus / Create / Flowchart.
  3. A Flowchart game object appears in your hierarchy.
  4. Click it.
  5. In the Inspector panel, click Open Flowchart Window.
  6. Click the Start block.
  7. Click the + button.
  8. Click Narrative / Say.
  9. Type a message into the Text field to make the text appear.
  10. Click Unity’s Play button to test out your game. Your text should appear.

Add branching choices

  1. Go back to your Start block in the Flowchart window.
  2. Click + twice to create 2 new blocks.
  3. Select the Start block.
  4. In the Inspector, click +.
  5. Choose Narrative / Menu.
  6. In the Inspector for the new Menu step:
    1. Change the text to what you want the menu choice to say.
    2. In Target Block, choose 1 of your 2 newly created blocks from the flowchart window.
  7. Repeat steps 3-6 to create another Menu step that goes to the other block in the flowchart.
  8. Add Narrative / Say steps to the next blocks in the Flowchart.
  9. Test your game by clicking Play.
  10. You should be able to choose either menu choice and see the narrative messages appear.

Making AI characters that move

To make friendly and enemy characters that move through the world, you’ll need to learn to write and use some basic game AI concepts.

UnitySteer

UnitySteer is a Unity version of OpenSteer open source autonomous agent steering framework. It can enable 2D and 3D characters to follow, chase and evade obstacles and characters.

  1. Download the UnitySteer package as a ZIP file.
  2. Expand the ZIP file to a folder.
  3. Drag the UnitySteer folder into your Unity project view.
  4. Create a new scene.
  5. Make a sphere and a cube object.
  6. On the sphere, drag the /UnitySteer/3D/AutonomousVehicle script.
  7. On the sphere, drag the /UnitySteer/3D/SteerToFollow script.
  8. In the SteerToFollow inspector, set the Target to be the Cube.
  9. Move the sphere to be far away from the cube.
  10. Click play and you should see the sphere chase after the cube!

screenshot-2016-10-16-16-44-09

A main menu for your game

No matter what kind of game you make, you’ll need a main menu.

Use the Unity Game Jam Menu Template to put a main menu at the start of your game and a pause menu that can return to the menu.

2D Game

Make a side-scrolling 2D platforming game

If you want to make a 2D game, start with importing the Unity default 2D assets.

screenshot-2016-10-16-14-22-05

There’s an official 2D character controller tutorial from Unity.

Here’s the short version of how to start:

  1. Make a new project in 2D mode.
  2. Assets Menu / Import / 2D / Prefabs
  3. Drag the CharacterRobotKyle prefab into the scene.
  4. Drag some horizontal platforms into the scene below your robot.
  5. Drag a SmoothFollow2D script onto the Main camera.
  6. Set the target of the SmoothFollow2D to be the character by dragging the character from the Hierarchy onto the Camera’s SmoothFollow2D component’s Target variable in the inspector.

2D Platformer Tutorial

2dplatformer.jpg

To learn more advanced 2D side scrolling concepts, do the 2D Platformer tutorial.

Make a top down 2D action game

ufo

Start with the Unity 2D UFO Tutorial project.

2D turn-based RPG roguelike

roguelike.jpg

The Unity 2D Roguelike tutorial will show you how to build a grid-based turn-based RPG style top down world with randomly generated levels.

First person shooter game

Make a basic first person game with triggers and pickups

To learn the basics of making a first-person game world, start with Gamebridge Unityversity’s FPS tutorial series:

lava

Make first-person shooting abilities

letstryfps.jpg

Start with the Let’s Try Assets package and tutorial. It will show you how to make several different shooting abilities.

Third person action game

You can start with the Unity Standard Assets / Characters / Third Person Controller prefabs.

For a more advanced and versatile character, try this script:

  1. Open PlayerControl.cs in your browser.
  2. Create a C# Script called PlayerControl.
  3. Copy the code from the pastebin page.
  4. Paste the code to replace all the code in PlayerControl.cs.
  5. Attach the PlayerControl.cs script to any simple 3D object, like a Cube. This is the Player.
  6. Attach a Rigidbody to the Player. Set the Rigidbody Constraints to Freeze rotation on X and Z.
  7. Make sure there is exactly one Camera in the game
  8. Run the game. Move as normal. Fire2 (right-click) allows Mouselook.

Tabletop Games

Card Games

Simulating card games on computer takes a bit of programming but it isn’t too hard to do.

There are a few ways to get started.

Do it from scratch with tutorials

Tutorial series on card game making

Unity List View Framework

Use Unity’s slick VR-friendly 3D animated Unity List View card framework!

Desperate Gods virtual tabletop open source Unity project

You can mod Desperate Gods with your own cards, pieces and boards.

MOBA (Multiplayer online battle arena)

So you want to make your own better League or DOTA? Here’s how:

Unity MOBA Asset Packages

If you want to implement a full networked MOBA, you would do well to start with the uMOBA package and focus on consutomizing it with characters and abilities and mechanics that make your game unique rather than wrangling with coding everything from scratch.

uMOBA (~$60)

Made by the people who made uMMO, so MOBA should be simpler than what they’ve already made.

MOBA Storm (~$55)

An alternative to uMOBA.

Unity MOBA Tutorials

If you want to build a MOBA from scratch, there are tutorials that can help walk you through the process:

How to make a MOBA in Unity – 0 – Introduction and Setup – YouTube

Video for unity moba tutorial
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s