Starting from:

$25

CSCE693-Assignment 3 Improving Existing C++ Code Solved

1.     Complete the skeleton “game_loop” project so that it executes at a frame rate of 60Hz using the functions and features available in the C++ standard library <chrono and

<thread. (Do not use SDL2 functions to measure time or delay processing.)

2.     Complete the skeleton “game_loop” project so that the Game class constructor throws an exception if something during the SDL2 initialization goes wrong.  Make sure to clean up any previous successful initialization before the exception is thrown.  Catch for a possible thrown exception in the main() function where the Game class is being instantiated. (You might consider testing your exception handling by purposely throwing an exception even if everything is ok.)

More products