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

INTRODUCTION TO SOMEONE WHO'S JUST VIBING

HEY!! Look who made it to her second year of college!! Me, Nadine, I did!! Yeah, I'm even more surprised than you are.  Happy girl illustration by 94MLK_ on Twitter. Saved from Pinterest . Last year wasn't too bad, but that was up until the whole country went into quarantine and I began to fear for my college career. I was constantly on the verge of giving up on my assignments but I would like to thank my friends for not allowing that to happen. I'm so glad I get to start year two with them and hopefully we'll make it to the end together too!  Despite the stress, there are a few pieces of work from year one that I'm proud of. I liked the websites that I created for Web Development 1 and 2, the video I edited from Introduction to Digital Media mission 3 and the advertisement poster I made for Digital Photography. I hope to produce better work this year.  Personal screenshot from the index page of my web development 1 project. Personal screenshot from the index page ...

GAME IDEA RESEARCH

Runner animation by Otilija MorozaitÄ— from Dribbble . Following last week's game brainstorm , I have decided to focus on and develop my idea of creating an infinite runner game and will be thinking about three game mechanics I will include. I will be drawing inspiration from the Ghibli Studios film, "The Secret World of Arrietty" for the theme of my game.  Obstacles are implemented within games to create a challenge for the player and to make it more difficult for them to win or in the case of infinite runner games, prevent them from playing forever and becoming tremendously bored. For my game idea, I plan to scatter stones along the lanes that the player must jump over or switch lanes to avoid. There will also be twigs falling from the trees which will create shadows before hitting the ground so the player is aware and can attempt to avoid them. A feature will be applied that allows the player to move left and right. Rewards will be available to the player throughout th...

PROTOTYPE

I browsed through the Unity asset store to find a package with nature objects that I could use to set up the scene for my infinite runner game. I downloaded the Nature Starter Kit 2  and started building my scene in Unity. This was a little time consuming but I'm satisfied with the way it turned out. I upscaled the trees and bushes, keeping in my mind my initial idea of gaining inspiration from the movie "The Secret World of Arrietty." I got the character from a tutorial I have completed for this module before and positioned the camera behind it. Screenshot of my work in Unity3D. With reference to the lesson 3 Unity tutorial, I started coding by creating the PlayerController script. I used the AddForce method and allowed the player to jump by clicking the spacebar. I declared two public variables to be able to adjust the gravity and player's jump force. Looking into the player's animator controller, I applied a static running animation. I then added a jumping ani...