Search Unity

[TUTORIAL] How to create Bridge Building Game -=COMPLETED=-

Discussion in 'Community Learning & Teaching' started by URocks, May 20, 2020.

  1. URocks

    URocks

    Joined:
    May 1, 2014
    Posts:
    159


    In this two-part tutorial series,
    we will be creating a 2d bridge-building game in the Unity3d game engine, where
    we need to create stable bridge for the lowest price possible and then our yellow characters will test it if it holds.

    In this first part, we will start by creating world space grid material in the shader graph. Then we will create connecting points, which will be snapping to our grid also inside the editor. Then we will prepare our sprites so they can represent our bridge bars and could be extended at any length. We will learn how to use the Dictionary collection type inside C#. Then we will create a script, which will be placing our bars on the nearest points on the grid. At the end of this first part, we will be adding maximum length option for our bars so their lengths can be limited. We will be using Unity 2019.3 and Universal render pipeline (unity urp) and C#.

    In the second part we will start by preparing our physics 2d joints and rigid bodies 2d to be always placed at the start and end of our bridge bars. Then we finally add the possibility to simulate our bridge for the first time with unity 2D physics. Then we will add an option for switching our construction materials where we can add also wooden bars to our bridge. Then we will be creating shader graph material with the material property block which can show the current load of our bridge per bar. Also, we will add some environment for our game and we will our yellow bridge testing characters and finally, we will add some budget option so we can challenge ourselves to build the cheapest bridge possible.
     

    Attached Files:

    Last edited: May 22, 2020
  2. alessandro2006

    alessandro2006

    Joined:
    Mar 16, 2020
    Posts:
    2
    Hey i'm Alessandrochannel on yt and i write you on twitter xD i'm now writing you on unity forum hahaha :)
     
    URocks likes this.