Skip to main content

UNITY TUTORIAL 01

This week I completed the first few sets of tutorials to create a 2D game. I had to update Unity then downloaded and imported the assets I needed for Ruby's 2D Adventure. I learned how to import an image of the character, Ruby, and turn it into a sprite. I created a script called RubyController. I applied the code that would allow Ruby to move horizontally and vertically using the arrow keys. I also adjusted the speed so Ruby would move faster. 

I learned that a tilemap is a grid and that it can be extremely helpful in drawing my game world. I created my own tilemap and first tile. I assigned a sprite to this first tile which I imported from my downloads. I learned how to use the tile palette and painted my first tile onto my tilemap. I adjusted the pixels per unit of the tile so it would fit to the grid square. 

I accessed the environment folder which contained a few tilesets that I would use to paint my game world. I started by changing the pixels per unit of each tileset and changed the sprite mode to "multiple". I then went into the sprite editor and sliced each tileset into 9 tiles. I added all tilesets to the tile palette and painted my tilemap. 

Screenshot of my progress in Unity.

Comments

Popular posts from this blog

UNITY TUTORIAL 04

Various devices illustration from Freepik . This week I completed the final set of tutorials to create a simple animal feeding game. I learned how to make animals spawn on their own rather than having to click "S" to do so. This involved creating a custom function and moving the if-statement under "void Update" to this new function. I also learned how to make the animals spawn after a certain timeframe. I learned how to add box colliders to the animals and how to edit the size of these box colliders. Moreover, I was taught how to make the animals and pizza disappear when they came in contact with each other. I added an else-if-statement that triggers a "Game Over" message when an animal surpasses the player without being fed.  Following this, I completed a challenge in which I had to correct a game similar to the one in the previous tutorials. The final product should allow the player to spawn dogs to catch falling coloured balls. The dogs were initially a...

TECH TASK: CHEEZBURGER

 Meme created using the Cheezburger website. Image from Cheezburger site.