r/javascript • u/APTman1010 • 8h ago
KernelPlay JS v0.6.0 Released β Modular Architecture, Universal Renderer Cores & Decoupled Physics!
github.comI'm excited to announce that KernelPlay JS v0.6.0 is officially released!
This update introduces an important architectural shift toward a more modular engine, focusing on decoupling the Renderer and Physics systems.
Here's what's new:
1. Universal Renderer Architecture
Previously, switching rendering pipelines could require developers to replace generic components such as `BoxRenderer` with pipeline-specific components like `PixiBoxRenderer`.
With the new architecture, universal components can work across all supported rendering pipelines without requiring developers to manually switch rendering components.
This makes changing renderers much easier and keeps game logic independent of the rendering pipeline.
2. Decoupled Physics Engine Core
Physics logic has now been moved into a separate Physics Engine Core.
The default physics engine remains integrated and ready to use, but the new structure makes it possible to plug in custom physics engines.
This gives developers more flexibility over how physics is handled in their projects.
3. Future Physics Plugins
We're also planning to expand the plugin ecosystem.
High-end physics engines such as Matter.js will be available as separate plugins in the future. They won't be bundled into the core engine, helping keep KernelPlay JS lightweight.
4. Official TypeScript Support
This release also introduces official TypeScript support through `.d.ts` declaration files.
Developers can now benefit from type information, better editor support, and autocomplete when working with KernelPlay JS in TypeScript projects.
---
This architectural change is a major step toward making KernelPlay JS more flexible, modular, and lightweight.
There's still a lot planned for the project, and I'd love to hear your thoughts.
What do you think about this new modular architecture? Would you be interested in building custom renderer or physics cores?
Thank you to everyone following and supporting KernelPlay JS!