Making and Angry Birds Clone
Show older comments
We need to create a simple variation of Angry Birds in Matlab. It must have these requirements:
-There is only one target, but you can hit it multiple times. (Again, you are welcome to change this and make it more sophisticated if you would like.)
-The sling shot and target are both on the ground, and the ground is flat.
-Player will enter magnitude and angle as numbers.
-Magnitude ranges from 0-100.
-Angle is measured counterclockwise from the right horizontal in degrees.
-Player gets 5 shots with the goal being to get the highest score possible (by hitting the target as many times as possible).
-Scoring can be done multiple ways, explained more below.
Target and Sligshot are pre loaded code that form said images. The slingshot has the bird icon already on it. What I got so far is just the skeleton and doesn't include the place where you ask for the specific cordinates and no place to keep track of score and shots, which are needed. I know this is a lot of work than needs to be done, but I just need some hints on what to do, anything will be appreciated. Thank you.
%%Skeleton
figure (2) %clf to clear figure
fprintf(Shots)
hold on
draw_slingshot(10,0,45); % Fiels.
axis ([0,100, 0, 50]);
draw_target (80,0,1,'r');
[x,h] = trajectory (45,30) %Angle and Velocity Function is already made.
plot (x,h)
hold off
Answers (0)
Categories
Find more on Board games in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!