📎 Webclip
Introducing Replay: a cross-platform JS game engine inspired by React
Replay is presented as a new open-source library for creating games. The post says it applies ideas from React to game development, especially in the way it handles state and rendering through a declarative API, and points readers to the documentation for setup and deployment.
Reading notes#
- The author says Replay is a new open-source library for creating games.
- Replay is described as taking ideas and concepts from React and bringing them to game development.
- The example shows a sprite with init, loop, and render methods.
- init returns the initial state.
- loop returns new state at 60 fps.
- render draws a circle based on the current state.
- The docs cover setup for a new JavaScript or TypeScript project.
- The library can be deployed to the web or iOS.
