Eight Week (Project is continued after submitting the other course)
The project was continued after a long break because I had to work on another university course. The topic of this week is spawn points.
The figure below shows how the spawns will look like at the beginning of a round. The bulldogs(red) will be spawned at one side of the map and the runners(white) on the opposite side. When the countdown ends the round begins.
The image below illustrates how the algorithm would spawn a team of 3 bulldogs and a team of 6 runners. The grey 'X' illustrates the point zero of value Vector3(0,0,0). There will be no players spawned on the 'X' (point zero). The first odd numbered player (1) will be spawned 1(meter) * spacing constant (C) to the right of the 'X'. The second player who is now even numbered (2) will be spawned to the left side of the 'X' with a distance of -1(meter) * spacing constant (C). The third player with an odd number (3) will now be spawned to the right of the 'X' with a distance of 2(meter) * spacing constant (C). This loop will continue until all the players are placed and then the game will start.
Comments
Post a Comment