Week 1 – The first sprint
WhatFor the first sprint for our game I was tasked to create our basic player avatar. We needed them to be able to move, shoot and aim for the main function of the game. We wanted to have a testable game as soon as possible, so this was a priority. For this I needed to make:
HowMaking the player move was not a very outstanding thing, I only needed to create a Game Object in unity and write a script for it that would calculate the velocity using the direction in what axis was inputted, and the developer determined player speed. (For example, pressing W would tell us that the player wants to go up, vertically, with the speed we have assigned to the player.) At this point we were not working in Unity Collab, so I had no access to my teams builds of the game, and since my teammate was working on the enemies for the game, I had to put off collisions for a while, and implement them when we could share our builds. I then decided to start working on the players shooting capabilities. Every time the player presses the left mouse button we instantiate a new projectile at the position of the player. Every projectile is given a velocity with the speed set by the developer and the direction of the mouse position. Although, to make sure you cannot shoot too often, we make sure that the time elapsed since the last shot is larger than our wished fire rate before instantiating a new object. WhyAs stated before, we needed a player very quickly so we could start testing around with for example, what speeds the player should move at, or how fast the projectiles should be. We wanted to have something testable as soon as possible so we could work on designing the player experience. |