Game graphics

Has there ever been any attempt at a game library?
code the facts and… bam, get game.
might be neat.

Something like allegro or ncurses. It needs graphics of some sort, after all.