Coder Social home page Coder Social logo

open_sets's Introduction

OPEN_Sets Build Status

The "Sets" game project.

  1. Phaser
  2. Typescript
  3. Gulp
  4. Jasmine (unit tests) + Karma (test runner)
  5. Electron

File Structure

OPEN_Sets/
 |
 ├──src/                                * our source files for the game and the logic
 |   ├──index.html                      * where we start our Phaser game
 │   ├──app.js                          * the Electron main 'process' script
 │   ├──config.js                       * file that contains our game's configuration parameters
 │   │ 
 │   ├──scripts/                        
 │   │   ├──definitions/                * folder that holds the typescript definition files (d.ts) for the js libraries we use
 │   │   ├──helpers/                    * folder that holds the helpers: GameState is a singleton that holds the game's state 
 │   │   ├──models/                     * folder that holds our models
 │   │   ├──services/                   * folder that holds the services for the game logic and management services for the Phaser states
 │   │   ├──states/                     * folder that holds our game's Phaser states
 │   │   └──Game.ts                     * our Phaser game file
 │   │        
 │   ├──tests/                          * folder that holds the tests for the services
 │   │        
 │   ├──css/                            * our stylesheets are here
 │   │     
 │   └──assets/                         * folder that holds the assets
 │       ├──animations/                 * animation atlases are stored here
 │       ├──images/                     * images are stored here
 │       ├──pairs/                      * images of the pairs are stored here
 │       ├──pointers/                   * pointer images are stored here
 │       ├──sounds/                     * sounds are stored here  
 │       ├──final-animation.json        * file that contains information for the frames of the final game animation 
 │       ├──happy-animations.json       * file that contains all the happy animations for the game
 │       └──pairs.json                  * file that contains all the pairs for the game
 │        
 ├──bower.json                          * what bower uses to install phaser
 ├──gulpfile.js                         * gulp file with the core tasks
 ├──karma.conf.js                       * config for the karma test runner
 ├──tslint.json                         * typescript lint config
 ├──tsconfig.json                       * config that gulp build task uses for typescript
 ├──tsconfig.spec.json                  * config that gulp test task uses for typescript
 ├──typings.json                        * our typings manager
 └──package.json                        * what npm uses to manage it's dependencies

Getting Started

Installation

  • fork this repo
  • clone your fork
  • npm install to install all dependencies

Running the app

npm start

Running the unit tests

npm test:coverage

Packing the Electron app

  • uncomment the electron build:uncomment sections from the index.html
  • comment the build:remove scripts block from the index.html
npm run pack

open_sets's People

Contributors

despotovska avatar dnoveska avatar dragica avatar ebarabanovska avatar eljesaz avatar sumarsky avatar taurusmk avatar

Watchers

 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.