The setting of a video game depends entirely on which game you are playing.
Each title establishes its own world, time period, and environment, so there is no single answer—it varies from game to game based on the story each one tells.