RPG framework based on tmlib.js