Help with Class Pinball Project
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I'm having the hardest time with even getting started with this project, which tasks the student with creating a pinball game. Goal:
Create a pinball game, using MATLAB, with the following requirements:
-User inputs starting location, speed and direction
-Have 3 different bumpers (at least 1 vertical and 1 horizontal), in addition to the boundary of the board, for the ball to hit that take a percentage of energy away
-Have a score to the game that is number of bumpers hit
-Create a visual display of the ball as it move around the play area
-Add 3 additional bumpers with a different energy loss percentage, 1 of which is at a 45 degree angle
-Track energy level
-Score is calculated based on number of bumpers hit and the time the ball is moving
The game board for your game must be at least 40 elements wide and 60 elements tall (i.e. a 60x40 matrix) such that the edges reflect the ball and absorb 0.5% of the kinetic energy, as determined by Equation 1, in the ball. In this relationship the kinetic energy, KE, is proportional to the mass of the pinball, m, and the velocity, V. For the project in this analysis, the mass can be assumed to be 80 grams.
Equation 1: KE=(1/2)mV^(2)
The standard bumpers, at the C level, absorbs 1% of the kinetic energy. Bumpers added in the B and A levels can vary in energy transmission from 1.5% to 6% of the total energy. Your game should track the pinball around your game board until there is a total of 1% of the initial energy available to the 80 gram pinball.
Risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!