Scenery placement tools: place, rotate, height, snap, multi-place and move

Open
#82 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
game-dev

Research direction

The payload names no files or tests. Start with the existing code that reads and draws placed scenery and handles cursor picking, plus the build picker (overhauled in #73) and the save format. Break the work into a first slice, such as a ghost preview with a cost and a single placement, and confirm it in a fixture park. Done means the Done-when checklist passes, with undo working. Ask the maintainer which slice to take first.

Written by the indexing model from the issue text.

Description

area:engine area:ui enhancement

Where it stands

Scenery from saved parks is read and drawn where it was placed (tile, height, quarter turn, quarter of the tile for small items), and objects can be picked under the cursor. The build picker lists scenery items (its overhaul is #73). Nothing can be placed, moved or removed yet.

Placing

  • Pick an item in the build picker; a ghost follows the cursor, green where it fits and red where it does not, with its price.
  • Click to place; keep placing the same item until cancelled (right button or Escape).
  • Rotate with a key or the wheel, in quarter turns; free rotation as an option.
  • Small items go in a quarter of the tile, as the game stores them; larger items take their full footprint.
  • Height: on the ground by default; raise or lower with a modifier key, to stack items or set them on top of others, walls and roofs.
  • Ground that bends: items such as plants and rocks follow the ground under them.

Snap and fit

  • Snap to the tile grid, to quarters, or off grid as an option.
  • Walls and roofs snap to tile edges and join up with their neighbours.
  • Path items (benches, bins, lamps, signs) go on path edges only, facing the path.
  • Items cannot go through rides, tracks or paths, unless the option to allow it is on (sandbox).
  • Only on land the park owns, unless in sandbox mode.

Many at once

  • Drag to place a line or fill an area with one item, such as walls along a run or a row of fences.
  • Scatter brush for trees, shrubs and flowers: random turns, sizes and spacing over an area, with a density setting.
  • Saved structures: place a group of items saved together, rotated as one.

Changing what is there

  • Click an item to select it; move it, turn it, raise it, change its colours, or delete it (with refund).
  • Delete one, or delete an area (the Delete menu's tools), with a filter for what to remove.
  • Eyedropper: pick an item already in the park to place more of it.
  • Undo for each placement, stroke or deletion.

Shared

  • Costs charged on placing and refunded on removing; total shown before a multi-place.
  • Placed items are saved in our own save format and feed the park's scenery rating and the guests' surroundings (see #76).

Done when

In a fixture park, items can be placed with the ghost and cost shown, turned and raised, walls run along an edge, trees scattered over an area, and items moved, recoloured and deleted, with undo working.

Dominant language
C++
Stars
4
Forks
1
Avg merge
2h 22m
Merged PRs (30d)
156

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tomast1337/RCT3PlusPlus

All issues in tomast1337/RCT3PlusPlus

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.