Giter Club home page Giter Club logo

react-eva's Introduction

ReactEva

用于开发互动游戏的React解决方案

ReactEva是一个让开发同学能够在React技术体系下,利用Eva.js的游戏研发能力,开发动画、游戏类场景的框架。它可以让开发同学用熟悉的JSX和(仅支持)Hooks语法编写动画、游戏场景的代码。

ReactEva借助React的fiber机制,把React VDOM的操作映射到Eva.js的上下文中,并用Immutable的Hooks提供高性能的运行时。因Eva.js是每帧更新的,所以在ReactEva中并不需要state来驱动,唯一要做的就是改变component的属性值即可。

ReactEva还提供了,游戏结点和DOM结点混合开发的能力(需由fiber-eva/react-dom配合),目前暂提供Web环境的解决方案。

React Eva 项目开发

教学文档

React Eva 源码贡献

npm i
npm run init

调试 packages/examples

npm start

调试某个包

例如 react-eva-image

npm run start -- --package=react-eva-image

启动 playground 模式

npm run playground-dev

发布

修改项目目录 package.json 版本号

npm run build -- "--packages=*"
npm run update
npm run publish -- "--tag alpha" "--packages=*"

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.