← スキル一覧に戻る

test-grass
by rikiyanai
⭐ 1🍴 1📅 2026年1月20日
SKILL.md
name: test-grass description: Test the grass terrain implementation in the editor and game. Use when verifying grass/water terrain, testing material changes, or checking terrain visibility. Includes verification steps from TESTING_GUIDE.md. allowed-tools: Bash, Read
Test Grass Terrain Skill
Verifies that the grass terrain implementation is working correctly in both the editor and game.
What This Tests
The grass terrain feature includes:
- Material 1 defined as grass (green colors, grass glyphs)
- Default terrain: 12×12 grass center + 2-patch water border
- Terrain height: Above water level (0xA000 vs water at 0x8000)
- Camera position: At correct height to see terrain
Quick Test - Editor
Launch editor and verify:
./.run/asciiid
Expected output in console:
Terrain initialized: 144 grass patches, 112 water patches
Expected visual:
- Center area: GREEN grass with quote marks
"apostrophes'and backticks` - Border (outer 2 patches): BLUE-GRAY water with commas
,spaces and exclamations! - Clear boundary between grass and water
Quick Test - Game
Launch game and verify:
./.run/game
Expected:
- Same grass center + water border layout
- Terrain visible (not underwater)
- Player spawns on grass terrain
Detailed Testing Steps
See TESTING_GUIDE.md for comprehensive testing:
- Visual Verification - Check grass/water appearance
- Camera Controls - Test VIEW PITCH and YAW sliders
- Material Painting - Paint with Material 0 (water) and 1 (grass)
- New Map Test - Create new map, verify default terrain
- Console Output - Verify initialization message
- Save/Load Test - Save map, reload, verify persistence
Common Issues
All water (no grass visible):
- Terrain height might be 0 instead of 0xA000
- Check asciiid.cpp:8263 and game_app.cpp:1862
No tiles visible:
- Camera height might be mismatched
- Check asciiid.cpp:8329 (pos_z should be 0xA000)
Random colors instead of grass:
- Material 1 might not be initialized
- Check asciiid.cpp:483-516 for grass definition
Implementation Files
Key files for grass terrain:
- asciiid.cpp:483-516 - Material 1 grass definition
- asciiid.cpp:8263 - Terrain height (0xA000)
- asciiid.cpp:8266-8322 - Material initialization
- asciiid.cpp:8329 - Camera height (0xA000)
- game_app.cpp:1862 - Game terrain height
- game_app.cpp:1864-1884 - Game material init
Instructions
When the user asks to test grass terrain:
- Check if editor/game is already running
- Launch appropriate executable
- Verify console output shows "Terrain initialized: 144 grass patches, 112 water patches"
- Ask user to confirm visual appearance matches expected layout
- If issues found, check the common issues section above
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です