RogueLib is an ActionScript 3 library for developing roguelikes and other text-based games. The library is distantly based on the C library named libtcod (http://doryen.eptalys.net/libtcod/).