Question: USE MATLAB!!! This task is based on your completed work in Credit Task 1 (question 2) and Distinction Task 1. You will design a game
USE MATLAB!!!
This task is based on your completed work in Credit Task 1 (question 2) and Distinction Task 1. You will design a game interface in a MATLAB program named HDTask1.m. In this game, an animation should be created to display the flying trajectories of the ball shot from a fixed initial height and fixed initial velocity at release. The game player will attempt to adjust the release angle (shooting angle) of the ball to hit a board placed at the ground. Once the ball hits the board, the player will score one point. Then, the board will be randomly re-located to another position for the player to attempt another round. The specific design requirements are given below: Initial height of ball at release is fixed at 1.5 m. Initial velocity of ball at release is fixed at 4 m/s. Board length is of 0.5 m and located at height 0 horizontally. Diameter of ball is approximately one-third of the board length. The ball should be at rest on the board for at least 0.5 second once hit. The should be randomly a range by ball for board re-located within reachable the each new round. Scores should be displayed. The player could adjust the shooting angle in command window and command the action of shooting. The program should have a command for player to exit the program. The program should handle exceptions such as when player enters an invalid shooting angle, etc. The program should not crash MATLAB during running line, good reliability). You may add additional functions to your program to make it funny. This task is based on your completed work in Credit Task 1 (question 2) and Distinction Task 1. You will design a game interface in a MATLAB program named HDTask1.m. In this game, an animation should be created to display the flying trajectories of the ball shot from a fixed initial height and fixed initial velocity at release. The game player will attempt to adjust the release angle (shooting angle) of the ball to hit a board placed at the ground. Once the ball hits the board, the player will score one point. Then, the board will be randomly re-located to another position for the player to attempt another round. The specific design requirements are given below: Initial height of ball at release is fixed at 1.5 m. Initial velocity of ball at release is fixed at 4 m/s. Board length is of 0.5 m and located at height 0 horizontally. Diameter of ball is approximately one-third of the board length. The ball should be at rest on the board for at least 0.5 second once hit. The should be randomly a range by ball for board re-located within reachable the each new round. Scores should be displayed. The player could adjust the shooting angle in command window and command the action of shooting. The program should have a command for player to exit the program. The program should handle exceptions such as when player enters an invalid shooting angle, etc. The program should not crash MATLAB during running line, good reliability). You may add additional functions to your program to make it funny
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
