Renamed resource_init.
Add assert.
Use new function name.
Init resource manager.
Use resource manager for animated sprites.
Use resource manager for sprites.
Use a temporary variable to hold the texture.