a-b-street / a-b-street/abstreet

Represent people inside buildings better using procedural generation

未關閉
#127 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
design-needed good first issue
主要語言
Rust
星號
8.2k
分支
380
PR 合併指標
30 天內沒有已合併 PR

描述

When you click a building with people inside, they currently appear, but their arrangement is a bit silly (and sometimes leaks outside the building). It'd be fun to improve this, and it's pretty self-contained. Code is at https://github.com/dabreegster/abstreet/blob/3eecdeddff70bbca2fb36f6e1bb0ef634fe01cf1/game/src/info/building.rs#L182. Some ideas:

1) From the building outline, procedurally generate a floor plan
2) Move people around inside the building slowly to represent activity inside. This should be a very cheap calculation, not a full-blown simulation or anything requiring storing any state. Ideally you take as input (sim time, person ID, the building) and come up with a position.
3) Maybe allow mousing over and clicking people inside buildings. At least one person during user-testing was surprised you couldn't.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。