milichain.blogg.se

Falling blocks watch out
Falling blocks watch out















Let's make some definitions so we all know what we are talking about.

falling blocks watch out

Note: it's important that our camera is at X=4.5 because this will be the center of our scene later on. If we select the Main Camera in the Hierarchy then we can set the Background Color to black, adjust the Size and the Position like shown in the following image: Please adapt accordingly if your Unity Hub looks different from the screenshots shown below. Please note that these screenshots where taken on a Windows PC with Unity Hub 2.x installed. Firstly, we choose a directory to save it in, select the 2D Unity game template and clicking Create. Project SetupĪlright, let's make our Tetris game! We will create a new Unity Project using the Unity Hub. It's important that we use at least Unity 2018.3 since it is a recent version of Unity that is widely used by thousands of developers and has everything we need for this tutorial. Newer versions should work fine as well, older versions may or may not work. Our Tetris Tutorial will use Unity 2018.3 just like the Unity 2D Pong Game tutorial. And if you didn't, don't worry about it too much.įeel free to read our easier Unity Tutorials like Unity 2D Pong Game to get used to the engine. If you know your way around Unity and heard about GameObjects, Prefabs and Transforms before, then you are ready to go.

falling blocks watch out

Our Tutorial does not require any special skills. While the game seems rather simple to implement, it still comes with quite a few challenges and will be a great exercise for beginners and experienced users working with Unity.Īs usual, everything will be explained as easy as possible so everyone can understand it.

Falling blocks watch out code#

Our clone will be just as simple, with only about 130 lines of code and two assets while retaining the simple yet highly addictive gameplay.

falling blocks watch out

Yes, the russian game that took the world by storm ever since its first playable release on the 6th of June 1984. In this Tutorial, we'll be implementing our very own Tetris clone.















Falling blocks watch out