A powerful, open-source, component-based 2D game engine for the web. Build games directly in your browser with our integrated editor and runtime environment.
Build games using reusable modules and components, similar to Unity's approach but designed for web development.
Create and arrange game objects in a visual scene editor with real-time property modification and instant testing.
Test your games instantly within the editor with Play Mode, no compilation or build steps required.
Comprehensive keyboard, mouse, and touch input handling with easy-to-use APIs for all input methods.
Use SpriteCode to draw your game objects and automatically generate the corresponding module code to draw them on the game objects.
Toggle fullscreen editing for distraction-free development with customizable grid and snapping tools.
Extensive guides and API documentation to help you get the most out of Dark Matter JS.
Integrated AI-powered code assistant supports ChatGPT, Gemini, and Claude to help generate modules and solve coding challenges.
Export your games as standalone HTML5 files or compressed zip files that can be hosted anywhere on the web.
Start creating games in minutes with our browser-based editor. No downloads, no setup required.
Visit our online development environment and start creating immediately:
Right click on the editor canvas and select "Add Game Object", or, at the top of the Hierarchy panel, click the "+" button and a game object will be created.
Select the newly created object, then click on the "Add Module" button in the Inspector panel. Scroll through the list of available modules and select one to add it to your game object.
Click the "Play" button at the top of the editor to test your game. Use the arrow keys to control the player ship object and see how it behaves with the added modules. Now you understand the basics of creating a game with Dark Matter JS! Explore more modules and features to build your unique game.
Click the game to play. Use the fullscreen button for an immersive experience!
Render images and animations with built-in sprite management and animation controls.
Multiple drawing modules for shapes and infinitely generated parallax backgrounds.
Smooth animations and transitions for object properties like position, rotation, and scale.
Ready-to-use keyboard controller for immediate game object control and movement.