界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

rust-bevy-procedural-world-builder

rust-bevy-procedural-world-builder

【开发与工程】Build and review Bevy procedural world generation with grid resources, deterministic seeds, reachability checks, chunk or room spawning, background generation boundaries, and gameplay-safe entity materialization. Use when creating tile maps, dungeon-like spaces, mining bases, or generated levels in Rust Bevy games.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: rust-bevy-procedural-world-builder description: Build and review Bevy procedural world generation with grid resources, deterministic seeds, reachability checks, chunk or room spawning, background generation boundaries, and gameplay-safe entity materialization. Use when creating tile maps, dungeon-like spaces, mining bases, or generated levels in Rust Bevy games. license: MIT compatibility: Codex, Claude Code, and other Agent Skills-compatible clients. metadata: version: "0.1.0" displayName: Rust Bevy Procedural World Builder category: Rust tags: rust,bevy,gamedev,procedural-generation,world-building

Rust Bevy Procedural World Builder

Use this skill to turn procedural generation into a testable data pipeline: generate data first, validate it, then materialize entities safely in Bevy.

Core Workflow

  1. Represent the world as data before spawning sprites or entities.
  2. Make randomness explicit with seeds and generation parameters.
  3. Validate constraints such as bounds, reachability, spawn safety, and resource placement.
  4. Spawn Bevy entities from generated data in batches or chunks.
  5. Keep background generation isolated from Bevy world mutation.
  6. Profile generation and rendering separately before optimizing.

Read Next

TaskLoad
Add generated rooms, terrain, or basesguidelines.md, workflows/build-procedural-world.md
Review generation data structuresreferences/procedural-world-patterns.md
Move expensive generation off the main threadreferences/procedural-world-patterns.md

Source Notes

Guidance is transformed and paraphrased from Herbert Wolverson, Advanced Hands-On Rust, especially Chapters 10 through 13 on building and optimizing a generated Mars-base game. Examples are original skeletons.

我的收藏