author-game-levels
Skill này làm gì
Skill này hướng dẫn agent xây dựng màn chơi cho game Three.js trên một mặt phẳng chơi duy nhất. Nó dành cho nhà thiết kế và lập trình viên game muốn mọi lộ trình, đấu trường và ánh sáng đều giúp người chơi hiểu cần làm gì.
Khi nào nên dùng
- ✓Khi bạn muốn thiết kế một màn chơi hoặc đấu trường mới cho game Three.js.
- ✓Khi một màn chơi khó hiểu và người chơi không biết phải đi đâu.
- ✓Khi bạn muốn đặt các vùng gặp địch, vật phẩm và mục tiêu rõ ràng trong màn chơi.
Liên kết skill
https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/author-game-levels/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thiết kế một màn đấu trường phẳng với lộ trình rõ ràng, một vùng gặp địch và một vật phẩm người chơi dễ với tới.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent thiết lập dữ liệu màn chơi với ID vùng ổn định, tách hình ảnh khỏi va chạm và điều hướng, rồi đặt từng không gian vào một mục đích rõ ràng. Nó kiểm tra các lượt chơi trên máy tính và di động.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Author Game Levels
Treat architecture as gameplay communication. Every route, arena, gate, prop, and light must help the player read movement, threats, objectives, or state.
Enforce one gameplay plane
Keep all collision, navigation, encounter routes, objectives, pickups, and player movement on one accessible plane.
- Do not add stairs, ramps, raised platforms, drop-offs, cliffs, bridges, ledges, pits, or vertical traversal.
- Do not change gameplay elevation for shortcuts, arenas, hazards, rewards, or visual variety.
- If visual height is requested later, keep it non-walkable background dressing. It must not alter navigation, camera occlusion, threat visibility, targetability, or player movement.
Separate level systems
Maintain explicit, independently testable layers for:
- authored level data and stable zone/anchor IDs;
- visual geometry and non-walkable background dressing;
- simplified collision geometry;
- flat navigation data and movement clearance;
- encounter, enemy, gate, reset, pickup, objective, and exit zones.
Share stable IDs and transforms between layers, but never infer collision, navigation, or encounter boundaries from decoration alone.
Lay out readable play
- Define the architectural purpose of each space: traversal, orientation, combat, recovery, reward, transition, or objective.
- Preserve clear movement, camera, and dodge corridors at the intended play distance.
- Keep threats, pickups, exits, gates, and interaction targets visible before commitment.
- Telegraph encounters through visible arena shape, approach, state change, and stable zone anchors.
- Deliberately place arenas, gates, checkpoints, retry spawns, and reset paths. Prevent soft locks, duplicate rewards, hidden re-entry, and enemies pursuing through unrelated zones.
- Use landmarks, lighting, contrast, and composition to guide without hiding hazards or making the route ambiguous.
Motivate every local light
Attach every local torch, lantern, brazier, or similar light spatially to a visible emitter. Its position, range, color, intensity, shadowing, and occlusion behavior must match what that emitter appears able to produce.
- Forbid unexplained floating local lights.
- Keep a source-to-light inventory with emitter ID, light ID, attachment transform, type, range, color/intensity, occlusion intent, enabled state, and fallback behavior.
- Move the light with a moving emitter. Disable or remove its local contribution when the emitter is disabled, hidden, destroyed, or unloaded.
- Document ambient or world lighting separately. Use it for deliberate global visibility or mood, never to fake a torch or other local source.
Validate data and geometry
- Assert that all walkable collision, navigation vertices/links, encounter anchors, gates, objectives, pickups, exits, and reset points remain on the configured gameplay plane within a small tolerance.
- Reject walkable slopes, out-of-plane links, vertical shortcuts, elevated spawn points, and level data that implies height-changing traversal.
- Check collision/nav agreement, route clearance, zone containment, deterministic gate/reset behavior, stable anchor references, and persistence of level progress.
- Validate source-to-light inventory completeness, emitter/light attachment, range/color intent, and moving or disabled emitter state transitions.
Prove traversal in the browser
Run deterministic route, collision, navigation, encounter, reset, and lighting fixtures, then traverse every critical and optional route in the repository-approved browser.
- On desktop and mobile, verify uninterrupted flat movement, dodge clearance, camera framing, threat/pickup/exit visibility, encounter telegraphs, gates, retry paths, and touch controls.
- Exercise moving and disabled emitter cases and confirm no light remains detached or unexplained.
- Inspect dense views for occlusion, console health, frame time, draw calls, memory stability, and long-session lighting cost.
- Report new failures separately from existing baseline issues.
Câu hỏi thường gặp
Có cho phép cầu thang hoặc dốc không?
Không. Skill áp dụng một mặt phẳng chơi duy nhất, không có cầu thang, dốc, bệ hay vách rơi.
Màn chơi có thể có chiều cao trong hình ảnh không?
Có, nhưng chỉ như phông nền trang trí không đi được, không thay đổi lối chơi.
Màn chơi được kiểm tra thế nào?
Skill yêu cầu chạy thử trên cả máy tính và di động.
Chi tiết
Mô tả gốc của tác giả
Author or revise readable, flat-world Three.js game levels. Use for movement and camera routes, collision and navigation, encounter zones, landmarks, objectives, pickups, motivated lighting, visibility, deterministic level data, or desktop and mobile playthrough verification.
repo: MengTo/Skills
Độ phổ biến
- Sao GitHub
- 7.2k
- Vị trí xếp hạng
- #13351
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
3d-cloth-material
7.2kGiúp agent của bạn tạo vải dệt 3D trông thật trong Three.js, với sợi dệt, ánh bóng nhẹ, nếp gấp tự nhiên, viền gấu và đường may.
3d-falling-leaves
7.2kGiúp agent của bạn thêm lá rơi chân thực vào cảnh 3D, với lá xoay tròn, trôi theo gió và được tái sử dụng khi máy quay di chuyển.
3d-four-seasons
7.2kGiúp agent của bạn thêm diện mạo xuân, hạ, thu, đông vào cảnh 3D, thay đổi cây cối, ánh sáng, bầu trời và tuyết mà không cần dựng lại cảnh.
3d-high-poly-models
7.2kGiúp agent của bạn dựng mô hình 3D chi tiết với hình dạng mượt và cạnh trông thật, rồi tạo các phiên bản nhẹ hơn chạy tốt trên web.
Skill tương tự
angular-developer
280kGiúp agent của bạn viết code Angular và tư vấn cấu trúc dự án, hữu ích khi bắt đầu dự án mới hoặc cải thiện hiệu suất.
frontend-a11y
280kGiúp agent của bạn làm cho giao diện web dễ tiếp cận với mọi người. Đảm bảo website và ứng dụng hoạt động tốt với trình đọc màn hình và điều hướng bằng bàn phím.
frontend-patterns
280kGiúp agent của bạn áp dụng các mẫu hiện đại trong phát triển frontend. Tối ưu hiệu năng, quản lý trạng thái và tuân theo thực hành tốt nhất với React và Next.js.