Posts

Unity Project 4: Ball platformer game (Code Explained)

Image
'RollingBall' script allows the ball to be moved by the player using the 'W, A, S, D' keys. When any of these buttons are pressed then the ball will move in the direction that has been set in the code. When the space key is pressed, the ball jumps and again uses force of the object's Rigidbody. Moreover, the script adds force to the Rigidbody of the object making the ball a little bit more difficult to control. The value can be edited in the scene view. RollingBall script The script rotates the two cubes which look like a windmill. Transform.Rotate allows the arms to rotate around the same axis. The speed is set in the scene for the windmill. RotatingWindmill script When the ball collides with whatever object this script is attached to (invisible cube) then the word 'COLLIDED' is printed in the console. This trigger can be used for many different aspects in a game. This may include: spawning enemies, losing/gaining health, acti...

Unity Project 4: Ball platformer game

Image
Finished game displayed in the scene view. Scene view Assets Uses Rigidbody so that the ball can use physics (Gravity) therefore it doesn't fall through the ground. The 'Rolling Ball' script is attached to the ball which adds force to the ball. Ball Inspector Scene view displaying the invisible cube object which can be used as a trigger for an event. Scene view When the console prints 'COLLIDED', the ball has collided with a specific object (Invisible cube). Console Message The invisible cube that is attached to the 'Trigger' script. When an object does not have a mesh renderer, the object becomes invisible as we cannot see it due to it not having a mesh. Cube Inspector Field of view changed, so that the ball can be seen from a slightly different angle. Follow target script also attached allowing a first person type view of the ball as the camera is set to follow the ball's movement. The camera can be moved so tha...

Unity Project 3: Beer Pong Code Explained

Image
This script has been written with the purpose that when any gameobject with the tag "Cups" has collided with the ball gameobject, they are destroyed (they disappear). The 'Rotation' script allows the cannon to rotate making the game more difficult.  The script generates balls to shoot from the cannon when a key (Space is pressed).

Unity Project 3: Beer Pong

Image
I really liked this exercise as it was interesting and the game was fun to make. By pressing the space button a ball clone would fire out of the cannon hitting or missing the cups. The aim of this game was to fire the cannon so that the ball would land in the cups. Ball Pong Scene Game Play Scene Asset list Hierarchy Ball Inspector Cannon Inspector

Overcooked: Gameplay

Image
I recently played a co-op multiplayer game named 'Overcooked'. This game is a cooking simulation where players control a number of chefs in kitchens filled with various obstacles and hazards to rapidly prepare meals to specific orders under a time limit.  Overcooked title screen The menu is written in a cook book which is fits really well with the theme of this game. It allows you to play the game in different modes. This includes a campaign mode (story mode) which can be played in single player or co-op player mode and a versus mode for multiplayer mode. Other modes are also available but need to be unlocked by playing more of campaign mode. Menu Options When playing in campaign mode, at the start of every new stage you have to speak to the onion king 'quest giver' to continue the story and progress onto the next levels. Story This is the map which shows all of the levels, story points in the game which can be travelled to using the van. T...

Making a simple 2D Platformer in Unity

Image
To gain a better idea of unity and it's features when it came to designing games and levels, I decided to use one of their pre-made templates of a 2D platformer game. The code and design of the blocks was already done for me and therefore this meant that all I needed to do was place the blocks into the scene and link specific items together to make features of the game work correctly. I also decorated the scene with prefabs so that it looked more interesting. Stage where level was created When you begin, if you have died or restart the level you automatically spawn/re-spawn in this exact spot in the level. When jumping onto the moving platform, it transports you to other areas. Jumping into the helicopter spaceship teleports you to another area which I implemented. Teleportation area You are teleported to this area. If this game was developed further, a number of things could be added here. E.g. A door way (Hidden/locked), a chest, a key, a use...

App Gamification - WhatsApp: Visual Mock-Up

Image
I have created a number of visual mock-ups using Photoshop to display my full idea for gamifying this app in a simple and user-friendly way. Original WhatsApp conversation Screen The delivery report symbols have been changed so that the colour of the bubbles displays to the user whether the message has been delivered or not. The default colours would be set to green = delivered, yellow = sent, red = failed however the user is able to change the colour of the bubbles as an unlockable feature in the achievements section.  Moreover, I have changed the attachments section so that only four options are available as these are the most used features. The message box has also been changed so that it is longer, the microphone symbol button has been changed to a constant send button and the WhatsApp camera button has been removed as this seems to an unpopular feature for this application. Modified conversation screen Once the user has selected the media they wish to send ...