Giter Club home page Giter Club logo

zion's People

Contributors

cyan33 avatar jegood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

zion's Issues

Add target usages scenarios and more clarification in the beginning of the doc

The term "Game engine / framework" is too big and ambiguous.

Right now we are at a point where our "game engine" is only limited for certain scenarios, for example, light-weight canvas game. It doesn't support WebGL for advanced rendering techniques. And the performance benchmark is quite unclear.

So I think it quite necessary that we clarify the use scenarios as specific as possible at the very beginning, rather than just say "it's a canvas game engine". I got this feedbacks from a Chinese programmer forum, v2ex.com.

Building error: cannot resolve path

ERROR in ./src/index.js
Module not found: Error: Can't resolve './components/index' in '/Users/changyan/Documents/repos/zion/src'
 @ ./src/index.js 8:23-52
 @ multi ./src/index.js ./src/index.js ./dist/zion.js

Cannot build the network component

ERROR in ./node_modules/socket.io/lib/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/changyan/Documents/repos/zion/node_modules/socket.io/lib'
 @ ./node_modules/socket.io/lib/index.js 7:11-24 9:13-26
 @ ./src/network.js
 @ ./src/index.js
 @ multi ./src/index.js ./src/index.js ./dist/zion.js

modularization convention discussion

Along the way I'm working around with javascript packages, I noticed that it looks like the best practice is using closures instead of Class when handling modularization.

So in our game framework, I also took this approach, in which case, most of the game components like canvasUtils, drag n drop, AI, should export something like createXX(). But for some of the base class like Sprite and Particle, the intuitive way is to use class. So I think I should just mix them up.

But like you can see, everything inside the src/component folder uses class, while other modules outside uses closure.

Just to clarify things up.

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.