Tuesday, April 19, 2011

Unity Project 1


    Name:
    Fredson Laguna
      Timeframe:
      (Start Date to End Date): 4.9.2011 - 4.19.2011
        Project Detail - What did you do, exactly.
        For the "On Your Own" requirements I created two levels along with objective screens in between the levels that displays the number of points required to complete the level. Level 1 consists of everything that was covered in the project 1 tutorials. Level 2 contains elements created on my own.

        The enemy cubes spawn at random locations, and travel across the screen at random directions.
        To determine what direction the cubes travel, I created a Random.Range variable for the X and Y axis inside of a Start() function and assigning those variables to a transform.Translate thats inside of the Update() function so that every time the cubes spawn they constantly travel every frame at the randomly generated X,Y coordinates. To make sure that the cubes don't continue to travel once they reach the camera boundary, I created a timer so that after a fixed amount of time the cubes will be destroyed and then spawn again somewhere on the screen.

        A timer was also created for the enemy spheres so that after a certain amount of time they too would disappear and re-spawn on the screen. The spheres were given a flashing effect and to create it I used Mathf.PingPong inside of the Update() function so that it would constantly change between the randomly generated color to white. Instead of having the spheres fly across the screen I had them move in a circular motion. To create the effect I used transform.Translate and transform.Rotate inside of the Update() function. The speed of the rotation is faster than the translation so that the spheres would constantly spin in a circle. After doing so I decided to create a Random.Range for an Array that contained the two rotational directions that would decide whether the spheres rotate clockwise or counter clockwise.

        Finally, I decided to create a black version of the cube and sphere that use the same scripts as the regular cube and sphere, so they behave the same way except they give negative points instead. To do this I created a boolean variable in the inspector, which was set true or checked on for the black shapes. If, else statements were also used in conjunction to differentiate lines of code.

          Software Used:
          Unity3D
            Final Thoughts - Reflect for moment (Postmortem)
            I have learned a lot by following the tutorial and have learned even more by completing the "On Your Own" tasks. I came across a lot of errors along the way, some minor that only took minutes to figure out while others took hours and a lot of experiments. Even though I was left stumped most of the time, my frustrations and research led to new valuable knowledge.
              Break down your Time (Research, Art, Design, Coding, Playtesting)
              Research: 10+ hrs
              Art: 3-4 hrs.
              Design: 3 hrs.
              Coding: 10+ hrs
              Playtesting: 1 hr