Overview of RGBDS WebAssembly modules
developdaid/rgbds-live repository.repository·develop·Indexed 27 days ago
https://github.com/chrismaltby/gb-studioA visual retro game maker for Game Boy and Game Boy Color. This repository contains shared libraries for Electron and Node.js, including WebAssembly ports of binjgb and RGBDS. It provides a CLI for exporting .gbsproj files and building ROM, Pocket, or Web files, as well as a standalone GBS Music web application.
daid/rgbds-live repository.The src/lib directory is reserved for libraries and helpers that meet one of the following criteria:
Import Rules:
shared/lib.renderer/lib.renderer/lib using the import type syntax (e.g., import type { MyType } from "renderer/lib/renderer-lib";).The src/renderer/lib directory is reserved for libraries and helper modules that meet one of the following criteria:
shared/lib.lib using the import type syntax (e.g., import type { MyType } from "lib/main-lib";).lib directly into this directory.The src/shared/lib directory contains environment-agnostic libraries and helpers. Code in this directory is designed to be portable and can be executed in the following environments:
To maintain architectural integrity, follow these dependency rules:
lib/ or renderer/lib/ into src/shared/lib.src/shared/lib for logic that does not depend on the file system or specific Electron APIs.lib/ or renderer/lib instead.Components located in components/ui are pure view components and must adhere to the following architectural constraints:
components/ui directory.style.ts files for styled-components definitions. These files are internal to components/ui and should not be imported elsewhere; instead, provide wrapper components for external use.$) within the component implementation.To automatically reload your game in the BGB emulator every time a build succeeds, start BGB from the command line using the -watch flag pointing to your ROM file.
./bgb -watch -rom game.gbWhen using "Export ROM", GB Studio includes a .map file alongside your ROM. You can use this .map file along with the BGB output log file to generate detailed profiling statistics using the bgb_profiling_toolkit (specifically calc_statistics.py).
python calc_statistics.py debugmsg.txt game.mapApp section are higher-level components that are permitted to access the Redux store. When testing or using these components in isolation (e.g., in Storybook), they must be provided with a mock store containing the necessary data and actions.The GBS Music editor is a standalone web application. You can run it locally for development or build it for self-hosting.
Build outputs for self-hosting are placed in out/music-web.
Note: If you have recently checked out a new version, you may need to run npm run fetch-deps to ensure you have the latest GBVM and GBDK components.
en.json file in the src/lang/ directory and rename it using the standard locale code (e.g., ja.json for Japanese). Replace all English text values within the new JSON file with the translations for your target language. The project follows the Electron locale naming conventions.