Written in C and using allegro library.