Add win condition: all items placed -> completion state #9
Loading…
Reference in a new issue
No description provided.
Delete branch "task/4-win-condition"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
armory.gdtracks items in theitemsgroup and listens to each one'splaced_changedsignal (#3). Once the placed count equals the total, it emitslevel_completeand shows a minimalAll items placed!overlay (CanvasLayer + ColorRect + Label). Picking an item back up drops the count below total and hides the overlay again.Validated with a disposable headless SceneTree test: overlay hidden at 1/3 and 2/3,
level_completefires and overlay shows at exactly 3/3, un-placing afterward hides it again.Closes #4