Skip to content

juliocanares/game-structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

this repo is a game structure that I use to build javascript games using pixi.js as renderer.

Directory Structure

  • 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)

Libraries Included

How to build

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

About

game structure to build javascript games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published