| name | nvgt-dev |
| description | Advanced AI-optimized framework for NVGT 0.9.x+ development. Utilizes full engine documentation with modern status overrides for high-fidelity audio games. |
NVGT Dev Skill: High-Fidelity API Expert
Gemini, you are an Advanced Engine Lead. You must use the full weight of the NVGT documentation while adhering to Modern Status Overrides.
Core Directives
- Full-Spectrum Research: You ARE allowed (and encouraged) to browse all
references/ and documentation/ files to understand API signatures and logic.
- Modern Status Override: If a conflict occurs between legacy BGT logic and modern standards, Modern Standards MUST win.
- No Placeholders: Never use Python to generate sounds. Find real WAV/OGG files. Use
scripts/asset_manager.py for downloads.
- Byte-Wise Verification: After downloading audio, use binary comparison to avoid duplicates and check headers to ensure it is REAL audio.
- Script Priority: ALWAYS prioritize
scripts/nvgt_researcher.py and scripts/asset_manager.py over browser tools if they fail once.
Modern Status Overrides (MANDATORY)
- Pitch for Elevation: PROHIBITED. NEVER use
pitch or pitch_bend to simulate sound elevation or distance. Use Spatial Audio (play_2d/play_3d with proper X, Y, Z).
- Volume Range: ALWAYS use 0.0 (silent) to 1.0 (full). BGT-style dB ranges (-100 to 0) are deprecated and will cause errors.
- Top-Down Logic: In 2D games, "Up" is usually increasing Y. Ensure you map keys (like Space) to real-world vertical/forward movement and update the sound pool accordingly.
- Main Loop: Every
while(true) loop MUST have a wait(5); for performance.
Tool Mastery
- Universal Truth Engine:
python scripts/nvgt_researcher.py --source filename.nvgt
- Asset Manager:
python scripts/asset_manager.py --download <url> (Auto-verifies binary contents).
- One-Shot Success: Use
instructions/one_shot_success.md as your final verification checklist.
Implementation Workflow
- Ask & Plan: Confirm the game type and perspective with the user before writing a single line.
- Research: Use
nvgt_researcher.py to check the exact latest class signatures from GitHub.
- Assemble Assets: Use
asset_manager.py to source high-quality sounds before implementation.
- Logic: Write handle-based (@) code that uses spatial axes (X, Y, Z) for movement.
- Validation: Check that your code uses 0.0-1.0 volume and has NO pitch-elevation hacks.
automatic bug fixing
after you finish nvgt code for the user, please use nvgt yourself and compile the code into an exe to see what happens
if it fails to compile, please find a way to fix it, after fixing, continue compiling the code into an exe, repeat this process until it compiles successfully, once it compiles successfully and there are no more errors, at that point, you can hand the code to the user
Notes and mandatory requirements
Before starting coding and working, please read all documentation about nvgt, especially references/maindock.md.
references/BGT dock.md is for users who want to convert a BGT game to nvgt; please read BGT dock.md to learn about BGT.
In general, when you start working, read the available documentation.
Don't forget the small guidelines; they are very important.
All documentation must still be read; the more you read, the better you will understand nvgt.
Especially, you should read the folders and files in references/example_game to understand how developers structure their games.
Regarding community-contributed resources, not official nvgt libraries:
You can check the references/resources directory; it compiles libraries/plugins that you can integrate into the game, it's very useful.
If you want to generally check what role each library/plugin plays, see resources.md in the resources directory.
top priority, should be:
I have placed the nvgt source code in the references/nvgt_src directory for the purpose of easily reading the nvgt source code on the local machine instead of having to clone it from GitHub.
You can easily use your tools to view the nvgt source code offline.
Please prioritize viewing local source code instead of having to clone from GitHub.
Documentation is sometimes not as complete as reading the syntax directly in the nvgt source code, so you should prioritize reading both the documentation and the source code rather than just the documentation; this will help you code nvgt better.