Skip to main content

Tutorial 1

  

Unity Tutorial 1

We were given the plan of designing our very first 2D video game called "Ruby's Adventure" where the main character a fox travels through the land, fixing up the evil robots surrounding the map. 

Above is the image of the world I laid out and created using the sprites given through the Unity Assets Store. I first started off setting up the 2D workspace and using a PNG for the first time towards something as technical as Unity. I then created my C# script "RubyController" for the main character but before they could move I needed to first create the game world. I added the sprites along with Box Colliders 2D components so that Ruby would not run through them so I added a Box Collider on her too. 

My favorite part was actually getting the character to move, I had a bit of trouble towards the script as I had a lot f errors most of the time. It was a tough time trying to get familiar with how creating a 2D game would be and I am looking forward to the next tasks I have to do to make this game.


Comments

Popular posts from this blog

Tutorial 6

  Unity Tutorial 6 In this tutorial, I had to create a health-bar for Ruby, this was really a interesting way to learn how health-bars are made on Unity and creating one that came out really well was even better as it was in-sync with the c# script "RubyController" and "UIHealthBar" from the beginning. The use of a UI or User Interface was another experience, very difficult but helps the game stand out. Next what I had to do was create an NPC, a frog who ruby would talk to by coming up to them and pressing "X" and then a dialog box which was created using UI~ Canvas~ Text to display a message warning Ruby about the robot.  It was cool to learn how to interact with NPC's and allow them to speak to you or send a message. The method known as raycasting which is basically a collider lets this happen.

Tutorial 2

   Unity Tutorial 2: World Design For the second tutorial of the Unity tasks, after creating the tilemaps by splicing them and laying down the ground and the pavements in the games world, it was now time to decorate it. Using all the sprites provided, I laid the land out with trees, grass, metal boxes etc.  The physics system as it was suggested in the tutorials was the force of the movements from the characters within the game and controlling the gravity which pulls it down, the force applied from pushing and friction when moving on the ground. In this part, I mainly fixed the way in how Ruby moved throughout the world and what boundaries she couldn't move through. My favorite part was adding the tilemap collision, by selecting the tilemaps with water on them I was able to create a box collider without selecting them all individually and preventing Ruby from walking on water. I didn't struggle as much throughout these tasks I rather enjoyed them.

Tutorial 4

   Unity Tutorial 4 All the sprites and characters have now been added, all that was needed now is the aesthetic touch that will make this a proper well designed game. For the Tutorials 4 I started on the sprite animations towards the enemy/ the robot and this was a tough and long task. Creating a whole animation from scratch just for one of the sprites was very challenging but the outcome came out really great and the movement is perfect no lags. Getting the Ruby animation through the materials provided by the asset store was very helpful. Splicing the sprites has become a very common thing within building a 2D game, I was able to use each sprite that had the robots movement and join them together in the animator window so that the animation would get him walking up, down, left and right. Although the blend tree which would allow the robot to move in any kind of direction made this possible instead of being frozen in the one spot.