Use rot.js event queue and add simple game timer support.