How to Move Game Pieces via Player Input

In the previous post we made our Tetris clone pieces fall on their own. Now, we want to allow our player to tell the pieces when they are going to move left and right. In addition, they should also not be able to move the pieces left or right, outside of the play space. How can we move game pieces via player input? The first thing you should do is familiarize yourself with the commands that will be necessary to actually register player input. There are three similar commands to accomplish this. These are: Input.GetKeyDown() Input.GetKey() Input.GetKeyUp() [...]

By |2017-07-23T18:01:46+00:00July 23rd, 2017|Tetris Clone, Tutorials|0 Comments

How to Move Game Pieces Through Code

So far we have created an awesome looking user interface (UI) for our Tetris clone, so now it's time to take the plunge and write our very first script. To do this, we are going to be creating a C# script and then writing code using Monodevelop. However, if you prefer, you can also use Microsoft Visual Basic to achieve the same purpose. If you have never coded before, don't worry, everything will be explained along the way. Before we actually start coding however, let's think about what our goals are for how to move game pieces [...]

By |2017-07-23T18:21:01+00:00July 21st, 2017|Tetris Clone, Tutorials|0 Comments

How to Create a Tetris Grid

In the previous blog post we introduced our free Tetris clone and talked about how to find and import game assets. I also created a free enhanced Tetris starter pack that gives you most of the game assets you will need to get your game started. In this blog post and video, you are going to learn how to create a Tetris grid that will allow you to easily and seamlessly place and move your Tetris pieces. In this entry, we are going to take the first steps towards creating our Tetris clone, which means creating a [...]

By |2017-07-21T03:43:41+00:00July 18th, 2017|Tetris Clone, Tutorials|0 Comments

Learn to Code by Creating a Free Tetris Clone

In this series of blog posts and videos we are going to be moving step-by-step, helping you learn to code by creating a free Tetris clone. This will be a working version of the popular game that has been around for generations. Throughout these videos you will learn to code by designing this game from scratch using Unity as the game engine, and C# as the coding language.  In detail, here is what will be covered: You will create a Tetris clone that will be playable on the web or on smartphones. The game will have controls [...]

By |2017-07-23T22:52:11+00:00July 14th, 2017|Tetris Clone, Tutorials|0 Comments