This post contains spoilers for Spec Ops: The Line
Defined in the broadest sense, traditionally comedies are narratives that resolve in a positive way. They are expected to result in a happy ending. The tragedy, however, is a lesson taught via witnessing the ultimate demise of an individual, a demise brought about through steadily declining circumstances. Within this broad context, modern video games could be associated more easily with comedy than they could be with tragedy.
Pac-Man (and maybe all early arcade games) is a tragedy of sorts. It is a “story” about a creature obsessed with consuming dots that will inevitably reach a bad end, since the game cannot be won, cannot be resolved. Modern video games are seldom like Pac-Man, concerned as they are with winning the game and resolving a narrative arc that represents that goal of games, “winning.” Indeed, perhaps games in general, when they take on the trappings of plot, character development, and other aspects of storytelling, are always prone towards comedy because the goal of games in general is to win. A happy outcome (for someone at least) is generally expected in games.