Using the provided Bomber Belts Unity Project, write your own AI Script for the character to play the game. Your script will be used on a character while another classmate’s script will be used on the opposing character. Please refer to the information below on how and where to write the code. 1. Download the Bomber Belts 2014 Project from Moodle 2. Open the Scene named Menu inside of the Assets folder 3. Locate the file inside of the Assets / Resources / AI Scripts folder a. This is the script you will modify to create your AI algorithm b. Refer to the information below on available functions to call c. You may also use the script to see an example implementation 5. To test your script, simply run the Menu screen and select your script. All of the functionality for moving your character, sending bombs, and positional/state information of the belts and bombs have been written for you inside other scripts. You can access those functions by using the variable that is already declared and initialized for you inside of the file. Below is a complete list of function

available in the AI script file:

1. Start()
The Start() function is called before the first frame update and is used for initialization. You can use this function to set up any initial variables or states for your AI script.

2. Update()
The Update() function is called once per frame and is the main loop of your AI script. You can use this function to update the behavior of your character based on the current game state.

3. Move(Vector2 direction)
The Move() function allows your character to move in a specified direction. You can pass a Vector2 parameter to specify the direction of movement. The values for x and y in the Vector2 can range from -1 to 1, with negative values indicating movement in the opposite direction.

4. PlantBomb()
The PlantBomb() function allows your character to plant a bomb at their current location. This can be useful for strategic purposes or to attack other players.

5. GetBelts()
The GetBelts() function returns an array of all the belt objects in the game. You can use this function to retrieve information about the belts, such as their positions and states.

6. GetBombs()
The GetBombs() function returns an array of all the bomb objects in the game. You can use this function to retrieve information about the bombs, such as their positions and states.

7. GetOpponentPosition()
The GetOpponentPosition() function returns the current position of the opponent character. You can use this function to calculate the distance between your character and the opponent, or to determine the best strategy for attacking or avoiding the opponent.

8. GetOpponentState()
The GetOpponentState() function returns the current state of the opponent character. This can be useful for determining the opponent’s behavior and adjusting your character’s strategy accordingly.

These are the main functions that you can use in your AI script to control the behavior of your character in the Bomber Belts Unity game. You can combine these functions with conditional statements, loops, and other programming concepts to create complex and intelligent AI algorithms.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer