Monorun itself doesn't need anything else but a web browser. Though to run the complete game, with the high score you'll need to have a webserver with php and mysql.
There's a config file in
/monorun/api/config.example.php copy this file to the same folder and rename it to
The following options are available in the config
STRING, The database username
STRING, The user's password
STRING, The database name
STRING, The IP or hostname to the database
STRING, if you have Google analytics or any other tracking script, add it here, it will be outputted by
falseif you want to use the generated JS cache file (
truewhen you want to develop on the code
To setup the high score you need to add this to your crontab, which will run the cron script every 10 minutes.
*/10 * * * * php monorun/api/cron.php > /dev/null 2>&1
Monorun is developed on a linux configuration that runs apache, php and mysql (So you'll need those). Apache will need to have the module
rewrite enabled and PHP must be
PHP 5.10 or higher (Sinve we use
PDO when connecting with the database).
There's a mysql dump file,
monorun/api/monorun.sql, that you need to manually import.
The game concatenates all the js files in
monorun/libs to one file, if the config flag
DEBUG is set to false a file in cache should be generated
We've developed against all modern browsers and we've tested specifically against Windows Phone 8 and Android 4.1.2 (Chrome browser). We've tried sporadically to test the game on iOS devices, but we can't say we know for sure that everything works.
Most of the code is documented inline.
Monorun has been ported to a couple of other platforms as well: