
This is a game we got tasked to make called OneTwoThree in which the player will have to add up only using the numbers 1,2,3 to get to 30. So this is to show my improvements throughout making the game so all the times I had to change my code is being shown here.

So this first screenshot shows the first part of the code which is just allocating the number 1 key the number 1 to add up to the end amount. This part of the code helps a lot because it helps in creating the other two inputs for the game.

These two screenshots show that I managed in code in the next to input keys for the numbers 2 and 3. There are only three inputs for the game however the code still needs more to be added to it before I can get the game working.

This last screenshot of the code shows the full code that I managed to get finished earlier. The parts I have added was the timer code which will just time how long it takes you to get to the target amount in the game. As well as that I also added the "You win" and "You lose" parts of the game in the code to show up if the player goes over the target amount.

This very last screenshot shows that I have just played the game and got to the target amount without going over the sub targets. The game itself does only show up in the console as I am still wondering how I can make it show up on the screen but as you can see the timer works correctly and all the inputs towards the game work perfectly fine.
My opinion on the game is that it was quite fun to make and it has helped me alot in learning some new pieces of code. However simple the game may look the code was still very interesting to learn and put together.
Comments
Post a Comment