Assignment 4 (16/25)


Step 1:Create a new class called AssetManager. In class I will show you how add to new methods based on what we did in Actor.h.



Step 2: Add an unordered_map to the class.


Step 3: In the constructor of the AssetManager add all the components yopuu are going to need for your scene.

Step 4: Create a object of type AssetManager in your new Scene and use it to create all the Actors you need.

For added marks try the following:

  • Extra: Turn the AssetManager into and singleton
  • Extra: Place all the actors in a container like a std::vector. Then simplify the render() to loop over all the Actor.