C++ Program project
Budget: $10 – $30 USD
Take the police-car program and have the car move not side-ways but in a figure 8.
For full-credit,
Take our Allegro Dev C++ police car code and have the car go in a figure-8 (use the middle point of the 800-by-800 window,
namely the point < 400,400 > as the center of the figure-8 (AKA Leminiscate, the radius is 200 pixels,
and have the car move in a figure-8 path around the center. The path is a lemniscate (but, if problematic, then approximate a lemniscate).
Hint: Ref: https://en.wikipedia.org/wiki/Lemniscate https://en.wikipedia.org/wiki/Infinity_symbol
Partial credit counts.
For non-full credit,
If you give-up on the figure-8, then just do a circle motion and keep looping. While somewhat easier, it really is minimally easier (if you use some tricks on the lemniscate).
The more realism , the more credit ... (like smooth motion gets more credit than jerky motion).
Make sure it runs in Allegro in Dev C++.
For full-credit,
Take our Allegro Dev C++ police car code and have the car go in a figure-8 (use the middle point of the 800-by-800 window,
namely the point < 400,400 > as the center of the figure-8 (AKA Leminiscate, the radius is 200 pixels,
and have the car move in a figure-8 path around the center. The path is a lemniscate (but, if problematic, then approximate a lemniscate).
Hint: Ref: https://en.wikipedia.org/wiki/Lemniscate https://en.wikipedia.org/wiki/Infinity_symbol
Partial credit counts.
For non-full credit,
If you give-up on the figure-8, then just do a circle motion and keep looping. While somewhat easier, it really is minimally easier (if you use some tricks on the lemniscate).
The more realism , the more credit ... (like smooth motion gets more credit than jerky motion).
Make sure it runs in Allegro in Dev C++.