This is Alan Wake: American Nightmare, the downloadable sequel to Remedy's 2010 narrative game for the Xbox 360. In it, the protagonist author Alan Wake fights against his murderous doppleganger.