スキル一覧に戻る
rikiyanai

test-grass

by rikiyanai

1🍴 1📅 2026年1月20日
GitHubで見るManusで実行

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:

  1. Visual Verification - Check grass/water appearance
  2. Camera Controls - Test VIEW PITCH and YAW sliders
  3. Material Painting - Paint with Material 0 (water) and 1 (grass)
  4. New Map Test - Create new map, verify default terrain
  5. Console Output - Verify initialization message
  6. 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:

Instructions

When the user asks to test grass terrain:

  1. Check if editor/game is already running
  2. Launch appropriate executable
  3. Verify console output shows "Terrain initialized: 144 grass patches, 112 water patches"
  4. Ask user to confirm visual appearance matches expected layout
  5. 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

レビュー

💬

レビュー機能は近日公開予定です