You're most likely thinking of Zathura, the 2005 film in which two brothers find an old board game that pulls them into a space adventure. It's easy to misremember the game as a video game, since the film leans heavily on sci-fi effects.
If that's not it, the description also fits a run of 1980s and 1990s family films where a game turns out to be more than it appears. A few more details — roughly when it came out, or whether the game was a console or a board game — would narrow it down quickly.