cyan33 / zion Goto Github PK
View Code? Open in Web Editor NEW[Deprecated] A tentative, light-weight 2D game framework based on HTML5 canvas.
Home Page: https://cyan33.github.io/zion/
License: MIT License
[Deprecated] A tentative, light-weight 2D game framework based on HTML5 canvas.
Home Page: https://cyan33.github.io/zion/
License: MIT License
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.
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
TODOs:
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
Is this library/ framework production ready :-)??
emmm, good ID.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.