When placing a building, highlight the titles under the cursor from the building footprint #37

Open
opened 2026-08-24 05:45:27 +01:00 by liamjd · 0 comments
Owner

Need to project down from the mouse cursor and identify the titles directly under the building footprint.

Highlight the tiles:

  • Tint/colour each of the tiles
  • Draw a border around the tiles matching the footprint

Calculate the slope of all the tiles under the footprint. If the slope is less than the placement threshold (is the land flat enough), the highlight should be green; red otherwise.

  • Placement threshold for slope might be 0, test how likely this is.
Need to project down from the mouse cursor and identify the titles directly under the building footprint. Highlight the tiles: - Tint/colour each of the tiles - Draw a border around the tiles matching the footprint Calculate the slope of all the tiles under the footprint. If the slope is less than the placement threshold (is the land flat enough), the highlight should be green; red otherwise. - Placement threshold for slope might be 0, test how likely this is.
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
liamjd/UntitledColonyBuilder#37
No description provided.