Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add an auto-map of visited rooms

Đang mở
#24 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
accessibility, frontend

Hướng nghiên cứu

Start by reading packages/engine/src/types.ts, packages/engine/src/affordances.ts, and the noir pack map at packs/letzte-nacht-der-reichsmark/design/world.md. Then inspect apps/web/src/components/dock.ts to find the player controls and how themes and sheets are handled. The work is done when the pure helper has unit tests, the noir walkthrough map has no overlaps, unvisited rooms stay unnamed, and the accessible room list and all three themes meet the criteria.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: engine area: web priority: medium type: feature

Context

With ten or more rooms (the noir pack has eleven), players on phones lose their bearings. The engine already knows the visited rooms and the exits of each room, so a map needs no format change.

Scope

  • Engine: a pure helper (for example mapView(pack, state)) that returns the visited rooms with their names, the current room, and per visited room its listed exits (direction or custom label). Targets of exits are named only if visited; unvisited targets appear as unexplored stubs. Exits hidden by visibleWhen are not revealed.
  • Layout: deterministic placement from compass directions (north, south, east, west, diagonals, up, down); custom exits drawn as labelled links; collisions resolved deterministically without overlapping rooms.
  • Player: a map button opens a sheet with an SVG map built with DOM APIs (text as text nodes), current room highlighted, read-only in this version; themed for light, sepia and dark.
  • Accessible alternative: a list of visited rooms and their exits.

Acceptance criteria

  • After the noir pack's walkthrough the map shows all eleven rooms without overlaps.
  • Unvisited rooms are never named.
  • The helper is pure and unit-tested; the same state always produces the same layout.
  • The list alternative is reachable with a screen reader.
  • The map is legible in all three themes.

References

  • packages/engine/src/types.ts (View)
  • packages/engine/src/affordances.ts
  • packs/letzte-nacht-der-reichsmark/design/world.md (Map)
  • apps/web/src/components/dock.ts
Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
28 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nullthrone/lexvm

Tất cả issue của nullthrone/lexvm

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.