Posts

Monogatari v2.0.0.beta.7

Download Link: Monogatari-v2.0.0.beta.7.zip

Remember this is a Beta release meant for testing and bugs are expected, everything is also prone to change a lot. If you're using it to release a game, you should warn your players as chances are it will eventually break.

📰 Release Change Log

🌟 New Features

{
    'Choice': {
        'Dialog': 'y Have you already read some documentation?',
        'Timer': {
        // Time in milliseconds 
            time: 5000,
            // The function to run when the time is over
            callback: () => {
        // Get all choices being shown and that are not disabled
                const choices = monogatari.element ().find ('[data-choice]:not([disabled])');
                
                // Pick one of those options randomly
                const random = choices.get (monogatari.random (0, choices.length - 1));
                
                // Fake a click on it
                random.click ();
                
        // Promise friendly!
                return Promise.resolve ();
            }
        },
        'Yes': {
            'Text': 'Yes',
            'Do': 'jump Yes'
        },
        'No': {
            'Text': 'No',
            'Do': 'jump No'
        }
    }
}

Want to change the color of the timer-display? That's simple!

timer-display > div {
    background: '<some CSS Color>';
}

🐛 Bug Fixes

📦 Misc

How To Upgrade

If you were already using a previous release from v2.x.x, then upgrading is as simple as replacing the files in your engine directory with the new ones.

If you are planning to upgrade from a game made with the v1.4.1 release, we recommend you reading the Upgrade Guide