this repo is a game structure that I use to build javascript games using pixi.js as renderer.
- data (states, values shared across the game)
- elements (background, bullets, enemies, etc)
- screens(instructions, main screen, etc)
- managers(game manager, screen manager, etc)
- utils(collision methods, mathematics, etc)
You need to have node.js and npm installed to run the project also you need grunt.js to run the tasks , when you are already go to install all the dependencies running.
sudo npm install
Now you need to run grunt, just go to root of the project and run
grunt
Then, you will be able to run the server with the next command
node server.js
By default you need to go to http://127.0.0.1:3000 but you can pass an specific port running.
PORT=8080 node server.js