Friday, January 22, 2016

Unity Day 55 (Rogue-Like Project)

What I Did: 

     Today I worked I added 2 new variables to the game manager script which was the soda and food, and assigned the amount of food points it was worth. I then created a new script and named it Player and wrote the script which controls the player and gives it its rules.It tell the player how and when to use its animation and how to interact with objects such as walls, food and soda. It also tells the game how to deal with the current food points every time the player moves.


What I Learned:

     I learned how to create a script that allows one object to interact with an environment of objects which add or subtract variable from it.

What I'm Doing Next Day:

     Next day I will be making the enemy script which will tell the enemies how to operate.

Wednesday, January 13, 2016

Unity Day 54 (Rogue-Like Project)

What I Did:

     Today I started by coding the movement script which I named ObjectMovement which set the parameters for how the game objects wil be able to move. I then also created the script that is for making it possible for the player to be able to destroy the walls that are spawned in the level. After doing that I attached the Wall script to all of the wall prefabs 1-8, and selected the damage sprite for each of them in the scripts references to give the player a visual indicator for when the walls take damage.


What I Learned:

     I learned how to create a simple turn based moving script and how to make it so and object can be destroyed after X amount of actions.

What I'm Doing Next Day:

     Next day I will be dealing with the player animator controller to control the players animations for when I write the player script.

Tuesday, January 12, 2016

Unity Day 53 (Rogue-Like Project)

What I Did:

     Today I finished writing the game manger script. I then filled in the assets needed in the board manager from the prefabs folder. After that I created a new script and named it loader to load the game efficiently. I then prefabbed the game manager object and change the transform on the main camera to properly face the game board, and set the background to black. After that I attached the loader script to the main camera and the filled the loader scripts 1 reference slot with the game object prefab. Now the boards will randomly generate every level.




What I Learned:

     I learned how to create a randomly generating scene that will create more (hazardous objects typically) objects to spawn equal to a variable.

What I'm Doing Next Day:

     Next day I will be writing the script to allow movement.

Unity Day 52 (Rogue-Like Project)

What I Did:

     Today I started work on the first of the two scripts, which i first needed to create and name "BoardMananger" and "GameManager". I also created a new empty GameObject and named it GameManager as this will be the object that manages the game. I can tell this tutorial is intended for intermediate users as this coding session was fairly intense to follow along with, but I feel I can make this game work and will be a good final project for this coarse.


Ending of line 63 which isnt all visible was simply GameObject;

What I Learned:

     I am in progress of learning what is to be learned here and will  fill that in, in tomorrows post.

What I'm Doing Next Day:

     Next day I will be working on the game manager script.

Friday, January 8, 2016

Unity Day 51 (Rogue-Like Project)

What I Did:

     Today I started work on my first 2D project which is a Roguelike style of game. To begin with this project I started by creating the animations for the player and both enemy styles. To do this I went to the sprites folder and selected all of the sprite frames that formed one of the needed animations and dragged it onto the empty game object named player. After doing such I was then able to save the animation in the animations folder. After completing all 3 animations for the player I dragged and dropped it into the prefabs folder. I then repeated this for for both of the enemies. Then I created the tile prefabs for the floor, food, outer walls and inner walls. To do this I created an empty game object and gave it a sprite renderer component. With this component I selected I selected the first floor sprite then dragged the object into the prefabs folder. I repeated this step for all of the other sprites it took some time as where around 20-30 different sprite images to do this with.


What I Learned:

     I learned how to start to work with sprites and 2D games, and how to create animations with different sprite frames.

What I'm Doing Next Day:

     Next day I will be writing the script for generating the playing board for the game which will be random every time under certain criteria.

Wednesday, January 6, 2016

Day 50

     Today I had an issue where unity wouldn't get passed its splash screen which has happened in the passed but i was able to fix it by restarting the computer. In this case that didn't work so today I uninstalled unity and reinstalled it so hopefully that will fix it for tomorrow.

Tuesday, January 5, 2016

Unity Day 49 (Tanks Project)

What I Did:

     Today I had to quicky recap what I did since I didn't work on this project during Christmas break. I did however finally manage o finish the tanks game. After recapping all that was really left to do was finish writing the game manager script and mix audio. I did the audio mixing by creating a new audio mixer in the project files. I then docked an audio mixer on the project to work on mixing the audio. I created 3 different audio controllers under the master volume Music, SFX and driving. I then lowered the music and driving to blend in properly with the game.

Pictures of Final Product:







What I Learned:

     I Learned how to blend different sounds and music to work fluently together and make sounds unable to overpower another.

What I'm Doing Next Day:

     Next day I will begin working on the 2D rogue-like game tutorial since I have completed this game.