3.2 Linking the Network
Pre-defining the IP address of the server in the code allows users to connect when they enter the lobby. When the players enter the game, if there are not enough players then AI players fill the spaces. Each player sees the rest of their team at the start point and the goal is to paint the terrain with their teams’ colour, within the given time. Two roles are available, a brush and a soaker. The soaker takes up more paint, than the brush paints, the soaker can also pick up both teams paint. Power ups are in place to increase how much paint is painted. …show more content…
Modifying this allowed for correct painting across the floor. Moreover, another problem stopped the playes from seeing paint at all on every client, DirectX cannot use a vector3 of floats, and it needs a vector4.
3.3 Texture Manipulating
A plane model created in AutoDesk Maya was given a dynamically created texture; the UV co-ordinates of that texture were then checked against the player position. If the player was on the plane then a radius around the point of the player painted on the floor. CG shaders were used to modify the texture in real time. The score is a percentage of the texture coloured in a particular teams