Log inGet started
World

Rice and Shine: A Sengoku Assassination Sandbox

Branchmain
Branchesmain
Commit471737b433

README.md

riceAndShine.inkMap

Draws each Rice and Shine level into navUiKit's minimap and full map as ink on washi. Once a level's contract has begun, it surveys the level from above with a grid of downward rays (Physics.castMany, a slice per frame, about 180 cells along the longer side), so every collider counts whatever its shape. Each cell is classed by its height over the ground (the commonest height): water (a collider named for water, river, moat, pond...) as a blue-grey wash, low things (0.4-1.6 m) as a pale wash, walls and sheds (1.6-3 m) as mid ink, buildings and towers (over 3 m) as full sumi. Runs of a class are merged into rectangles and handed to navUiKit as map shapes; navUiKit's own collider-box bake stands down while the ink map is in place.

  • InkMap.tick() is called by riceAndShine.hud a few times a second: surveys a level once.
  • InkMap.refresh() surveys the current level again.
  • InkMap.stats() what the last survey found (level, cell size, grid, ground height, shapes, seconds, water colliders).
  • InkMap.COLORS the four washes.