N00b trying to program score and game over functions

I’m trying to make a tetris-type game following the steps in this tutorial: https://noobtuts.com/unity/2d-tetris-game

But it ends at the basic playable build. I want to add a score tracker with a win condition and a “game over” screen, but the only tutorials I’ve found ask for me to use the Game Manager C# code and… the tutorial doesn;t leave me with one???

Am I missing something really easy here or have I hit a dead end? Can someone help? :C

I don’t think that you are missing anything really easy. Looks like that tutorial is just for making that basic game with out the extra stuff. You could implement those pretty easy with UI Text, a variable to hold the score and a few other things. If you are new to Unity and more so, new to programming in general. I would put emphasis on learning to program before you start with Unity. Unity is amazing but when I was trying to learn programming and incorporating unity in to the mix it was information overload. If you know how to program then implementing the score tracker and Game Over are pretty simple. That is just my advice since many years ago I was also learning to program.

Pretty sure one of the scripts in the tutorial would act as a game manager. Where the game dictates that the row of blocks should disappear is the most sensible starting point IMO. Figure out what triggers score to be added, and use them to add to an integer.

I almost completely agree with larswik. I do think however that you are missing a basic understanding of how programming languages work. At this time you’re following a tutorial geared towards making tetris, so it’s normal that a lot of information is left out because it would make the tutorial too hard to digest. If I had to make a suggestion that would be to do some general tutorials on programming with C Sharp. It might seem boring, but after doing a couple of those you start to see a whole different picture of how to go about things you have in your mind. Then go back to the tetris tutorial and be surprised how smooth you’ll go through it.

2 Likes