/Lukuinto-Spring-2015

Game created in Lukuinto Student Project in Spring 2015. HTML5 game that aims to get children to read more.

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Lukuinto-Spring-2015

Game created in Lukuinto Student Project in Spring 2015. HTML5 game that aims to get children to read more. Game is created using Phaser framework.

Game consists of map screen, where the player moves forward through points. In each point there are tasks. Task consists of text and answer options. To proceed, player must answer correctly.

Our own "game campaign" is included and it is called Lukuseikkailu. Other game campaigns can be created with our editor. The editor is added as a submodule in this repository. When deployed, the editor saves the game campaigns to a database through the server server component of this project. These game campaigns are then available to select in the main menu of the game.

Building the project

Nodejs, npm, Bower and Grunt are needed. Command 'npm install' should install further dependencies for building the project based on what is added as requirements in 'package.json'. After that install globally bower and grunt with commands 'npm install -g bower' and 'npm install -g grunt-cli'. If sudo is needed then add 'sudo' to beginning of the command ;-)

After npm has installed all the requirements for building the project, use Bower to install the actual dependencies of the project with command "bower install". This installs the dependencies declared in 'bower.json'.

After installing all the dependencies, command 'grunt serve' builds the frontend (game and editor) javascript, starts server (server.js) and opens the game in browser. Command 'grunt build' builds the project into directory 'dist'. Command 'grunt prod' builds the project and minifies frontend javascript for production. This can then be deployed to webserver and opened in browser. The same Grunt task is also executed with 'grunt heroku', which is used when deploying to Heroku with a custom buildpack.