Skip to main content

OneTwoThree Number Game







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

Popular posts from this blog

Synoptic Project So far Personal & Group

So this post is just an update on the Synoptic Project so far as of right now we are onto week three of the synoptic project and so far the project that I am working is one of the ones I voted for when we were choosing which of the projects we were going to do. So for my job role in the project I am a 3d Modeler and so far I have been working on models that can be placed around the environment to fill up the environment so that it doesn't look empty when you are walking around the environment. So far I am enjoying the project and so far I am getting on pretty well with the task I have been given however it doesn't really have that much to it as I was just told to make some models to place in the environment so even though I know how the project needs to look and the theme of the project it is still quite hard to get the right type of models to go inside the environment. I have managed the work pretty efficiently so I am never left with nothing to do I have made sure that I ...

The 12 Principles of Animation

1: Squash and Stretch - this is how rigid or soft and object is. So an object will never just take one size so if you drop a ball from a height when it hits the floor it get squashed down and stretch out the sides of it. 2: Anticipation - An action that tells the viewer what will be happening next. So if someone is shooting a gun the anticipation of the person squeezing the trigger of the gun tells you that they are going to shoot it before the animation is even there. 3: Staging - Presenting your idea so it makes sense. This could be just how the area around the objects so in the film Monster House every house has either a picket fence or a wall however the monster house itself has no wall or fence which gives it a sort of feeling of dread and then house looking all dark. 4: Straight Ahead and Pose to Pose animating - Straight ahead animation is the process of animating each frame in order. Then you have pose to pose which is where you draw three key frames then go back to draw...

New Model/Concept Art [Loki's Helmet]

So this is my next planned model once I get both Doomhammer and Mjólnir finished and textured. So this piece being from the Marvel Cinematic Universe I need to get it to look very nice proportion wise. The helmet itself I think is going to be very tricky due to the amount of overlapping layers and as well as some unusual features. Those being the horns on the helmet which I think the only hard part for those is when they will curl back in towards the helmet. In this version of the helmet I will be adding a little something from the comics and that being a blue gem that in the comes he always had in his crown. I drew both a front facing and a side view for a all round basic look at the helmet in which it will help me make it easier to get the shape done correctly. I would be doing the back of the helmet however with it being very plain just from the side and the front view will suffice for what I need to get this helmet modeled correctly. After all of the modeling I will need to...