Coder Social home page Coder Social logo

cyan33 / zion Goto Github PK

View Code? Open in Web Editor NEW
44.0 4.0 6.0 1.08 MB

[Deprecated] A tentative, light-weight 2D game framework based on HTML5 canvas.

Home Page: https://cyan33.github.io/zion/

License: MIT License

JavaScript 89.67% API Blueprint 10.33%
zion game-development canvas html5-canvas game-framework game-engine

zion's Introduction

zion-banner

Zion

A tentative, light-weight game engine/framework based on HTML5 Canvas game development.

Open Source Love MIT Licence

Get Started

npm install --save zion-engine
import zion from 'zion-engine';

Features

Check the document here.

Tutorial and Resources

Building A Canvas Game Engine / Framework From Scratch by Chang

Contribution

All PRs, issues and bug report are welcomed. Here are the steps to contribute:

  1. Fork and clone this repo.
  2. Make some changes.
  3. Commit, push the changes to your forked repo.
  4. Compare and make a pull request.

Sample Projects

Having trouble getting started? See the engine in action [here.

Acknowledgement

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  avatar

Watchers

 avatar  avatar  avatar  avatar

zion's Issues

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

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.

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.

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

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.