Giter Site home page Giter Site logo

glyphs's Introduction

The app should boot up just fine with NPM 4.1.1 and Node 7.8.0. Just run an npm install and then an npm run start, the app should be available at http://localhost:3000

The project is basically three things: a dictionary of glyphs from the game Ingress, a rendering engine to turn an abstract model of that glyph into a DOM canvas, and then a Node/Express app to make that DOM available in a browser.

I started out with this side project based on a frustration with the current Ingress glyph dictionaries out there. The source code I found wasn't written in a way that was open to extension or modification. so I put together a few ideas here to clarify what a glyph is and one way it can be rendered without a lot of convoluted hard coding.

The ingress-glyph-tools folder is a total rewrite of another ingress-glyph-tools library I found in the wild. I pulled the canvas rendering functionality into a completely separate class just to get a better separation of concerns and open the possibility of customizing the display of the glyph without affecting the abstract model of the glyph.

I have my old proof of concept for polygon generation on stackoverflow.

The React components to put this rendering into the DOM are located in shared/components/ and are pretty straightforward JSX components.

There's an ES5/ES6 trick happening with server.jsx/server.js that relies on running this app in dev mode npm run start and getting Babel to transpile on the fly. An actual production build would require that transpile step first, and I would look into creating a client-side bundle.

glyphs's People

Contributors

worc avatar

Watchers

James Cloos avatar  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.