Game??? OVER !!!
|
Hi, Today i am going to talk about a thing no gamer wants to see but it is a part of every game.Yes ,you guessed right it is the one screen nobody likes.Game Over. Congratulations you loose. I implemented the game over screen for our game Planet Suburbia . Every thing went fine until i recognized two days before we have our final release of the game that you cannot loose. We have four Sectors , every one of them has like 10 life’s. When every one is open and the aliens destroy your planets you loose but anyway you going to the victory screen instead for getting to the Game Over screen. And when you already loose the first sector in the beginning in the game and didn’t opened the other sectors , the sector gets black but you’re not loosing but you can’t open the other sectors anymore, so that means you are getting to a deadlock which means you cant either win or loose. So i made a fix for that issue. First i had to exactly find the problem in our code. The problem was that our planet life is defined inside of the planet class. And nowhere in the code was defined that ,if the value of the life of Sector one to four reaches zero ,that it should show the Game Over screen. But you can’t fail when all sectors are open. Yes you can loose but you can still win if three sectors are lost . But when the first sector is open and you loose. The player will go to the Game Over Screen.When the first and the second sectors are open but you loose both of them, the player will loose. If you open number one and two and three then if you loose all three , the player will loose. And the same thing is going to happen with the last sector. Have in mind that you also will go to the victory screen if you have just on of the sectors left and kill all of our enemy’s. So that was it i think this is my last post for this course in my blog. I am pretty sure that i am going to come back for the next courses but until then . I thank you for reading my posts and i wish you all good luck with your projects and have fun coding In the end there is just
|

