ewrogers/sgdk-skills

sgdk-localization

Prepare SGDK games for translated text with stable message IDs, accented or custom glyphs, font budgets, safe substitutions and translated layout checks.

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/ewrogers/sgdk-skills --skill sgdk-localization

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

SGDK Localization

Keep translations readable in the source project, then validate their glyphs, substitutions and screen layouts before building the ROM. SGDK provides tile and text drawing, not a Unicode decoder, translation catalog or plural engine. Preserve the game's chosen UI, fonts, languages and creative direction.

Start with the languages and screens

Find existing catalogs, fonts, save settings and text drawing before adding another system. Establish the required languages, character repertoire, user-entered names, maximum substitutions and actual text boxes. A small Latin repertoire, Japanese subset and shaped right-to-left script need different rendering work; do not promise them all from a byte-to-glyph conversion.

normalization, placeholders, plurals, fallback and saved preferences.

custom mappings, font banks and SGDK's actual text behavior.

wrapping/paging, runtime names/numbers and checks at each test layer.

conversation, inventory and name grid, plus an offline catalog compiler.

Keep the contracts explicit

Use stable message/language IDs and keep translated prose separate from game logic. Name substitutions instead of constructing sentences by concatenating English word fragments. Check placeholder agreement and bound runtime values. Do not use a translation as a sprintf format string.

Count rendered glyphs or measured advances, not source UTF-8 bytes. Normalize authoring text consistently; reject missing glyphs and unexpected controls. An unsupported character must produce a useful build error or a deliberately chosen fallback, not a random VRAM tile.

Budget font pattern bytes separately from text bytes in ROM, RAM scratch, tilemaps, palettes and transfers. Show actual glyph/atlas counts and the reservation they use. The Lab's byte codec and 192-tile font reservation are example choices, not hardware limits or required game architecture.

Prove the longest cases

Check every locale with the longest allowed names/numbers, all plural variants, explicit line breaks, narrow boxes and maximum pages. Exercise language changes inside menus/dialogue, stale-text clearing and unsupported saved language IDs. Keep missing translations visible in validation; report intentional fallback.

Use ewrogers/sgdk:latest, pulled before validation, and verify unfamiliar APIs against its headers/source. The references were checked with SGDK 2.11 and GCC 16.2.0. Compile the actual resources/adapters and test both optimized and debug behavior. Host or M68000 checks cannot judge translation quality, reading comfort or physical-console video. Ask for native-speaker review where needed.

Other installed skills are optional: sgdk-ui for general menus/fonts, sgdk-dialogue for conversation flow, sgdk-save for campaign storage and sgdk-testing for regression automation. This skill works independently.

タスクに関連する項目

同じリポジトリから

関連する Skills

すべての Skills
ewrogers
コミュニティ

sgdk-ai

Implement enemy behavior in SGDK games with patrol/chase/attack states, sight cones, target selection, bounded pathfinding and staggered updates. Use when enemies see through walls, get stuck, switch targets erratically, return stale paths or cause frame spikes while searching.

導入数
1
GitHub Stars
0
更新日
10月20日
ewrogers
コミュニティ

sgdk-assets

Prepare, import and troubleshoot Mega Drive graphics, palettes, spritesheets, tiles, maps, fonts and audio resources with SGDK ResComp in Docker. Use for .res files, palette or tile budgets, broken imports, sprite cutting and asset pipeline changes.

導入数
1
GitHub Stars
0
更新日
10月20日
ewrogers
コミュニティ

sgdk-best-practices

Write or review SGDK C for defined arithmetic, clear module boundaries, resource lifetimes, safe queued transfers and interrupt sharing. Use for implementation quality and project code organization, rather than toolchain setup, game design or performance profiling alone.

導入数
1
GitHub Stars
0
更新日
10月20日
ewrogers
コミュニティ

sgdk-cartridge

Plan and implement large SGDK cartridges with Sega/SSF bank switching, FAR resources, pinned shared code and audio, and safe SRAM access. Use when a ROM exceeds the linear address window, stage assets live in separate banks, a FAR pointer becomes invalid, or saving interferes with banked content.

導入数
1
GitHub Stars
0
更新日
10月20日