GithubHelp home page GithubHelp logo

shockwavemk / ensemble Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jerenaux/ensemble

0.0 2.0 0.0 663 KB

An experimental collectively designed multiplayer online game

Home Page: http://www.dynetisgames.com/2017/04/20/project-ensemble/

License: MIT License

JavaScript 99.57% CSS 0.06% HTML 0.37%

ensemble's Introduction

Project Ensemble

Project Ensemble is an experiment in crowd design, where players, developers and artists collaborate to collectively design a browser-based multiplayer online game.

For a detailed description of the project, visit the website.

Tour of the code

server.js is the starting point of the Node app and is located at the root of the repository. It includes all the necessary modules and handles the interactions with the app.

Game-related code

All files related to the game itself are located in the game directory. assets contains the images, sounds, JSON files, etc. used in the game. js containts the source code, split into client and server-related code.

For the client, game.js is where the main logic is located. This file often references the Client object, which is defined in client.js and acts as the interface between the game and the server (if you contribute, please put all interactions involving Socket.io in client.js). For the server, the main logic is located in gameserver.js.

As the codebase grows, the code should be split into "classes" as much as possible, located in their own js files in the game folder. Player.js is one such example.

App-related code

"App" refers to the web page, the voting interface, the forms to suggest features and submit art, etc. The app-relate code is located in the app directory. As the app was made with AngularJS, the code is mostly distributed in terms of views (the HTML templates of what should be displayed, including index.html) and controllers (the logic that controls the behavior of the views). This organization is controlled in app.js

Running the code

You need to have Node.js and MongoDB installed, and MongoDB running. Clone the repository and type in a terminal where you cloned it: npm install and then node server.js. Then navigate to localhost:8081.

If you get an error involving compile: [(...args) => this._convertDataImages(...args)],, your Node.js is probably not up to date (check with node -v). Update it to the most recent version and it should work.

ensemble's People

Contributors

jerenaux avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.