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. 


We now have a sophisticated spawning system. The game will spawn players depending on the number of the players in a match. The spawning algorithm will start to number both runners and bulldogs. It will then spread out the players depending on their assigned numbers on each side of the map. 

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.


The image below shows the game scene from the perspective of both runners and the bulldogs after the spawning and placements are done.

Comments

Popular posts from this blog

Ninth week - Animations & Jammo