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

Sculpting a Character in Mudbox

So today I have been using Mudbox to sculpt a character. The character itself is a turtle with its shell on. So to start off I decided to work on his skin first and within this I was using two main tools the first being the imprint tool and the second being the smooth tool. I started off with a stamp that comes with Mudbox and I would just stamp the area I needed to give it a bumpy area on the skin. I would then smooth off the more harsh areas so it doesn't have any major jagged lines on it. After doing this for a while I started to notice that it was giving off quite a stone texture to the skin which I started to like after a while. However when it came to the feet I changed it up a little as I smoothed the toes a lot more than the other parts of the body which makes them stand out more and when it comes to texturing this guy I can add more detail to it by changing some of the colours around. Next I started on sculpting on the shell which I made look very unique as I made some v...

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...

Bump, Normal & Displacement Mapping

Bump Maps A Bump map is an older type of map that create fake detail by giving an illusion of depth on the surface of a model using a very simple lighting trick. You don't get any additional resolution added to a model as a result of bump mapping. Bump maps are typically greyscale images that are limited to 8-bits of colour information. This tells the 3D software whether it is up or down. Bump maps are great for creating tiny details on a model such as wrinkles on skin and because the detail they create is fake the silhouette of the geometry that the bump map is applied to will always be unaffected by the map. Normal Maps Normal maps can be referred to as a newer better type of bump map, as with bump maps what you need to know is that the detail they create is fake and there is no additional resolution added to the geometry. A normal map creates the illusion of depth detail on the surface like a bump map however it does it differently. A normal map uses RGB information that ...