Summary from Goodreads:
Kyle Keeley is the class clown, popular with most kids, (if not the teachers), and an ardent fan of all games: board games, word games, and particularly video games. His hero, Luigi Lemoncello, the most notorious and creative gamemaker in the world, just so happens to be the genius behind the building of the new town library.
Lucky Kyle wins a coveted spot to be one of the first 12 kids in the library for an overnight of fun, food, and lots and lots of games. But when morning comes, the doors remain locked. Kyle and the other winners must solve every clue and every secret puzzle to find the hidden escape route. And the stakes are very high.