mapeditor / mapeditor/tiled

[preferences] max polygon points

Open
#155 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

I am using tiled polygons to define box2d collision detection shapes. Box2d supports a max of 8 points by default (can be changed in code, but requires hard coding a box2d header file).

I would like to suggest a preference be added to define the maximum number of points in a polygon (does not apply to polyline). This would prevent the end user from creating polygons with more than this number of points. Once the specified number of points has been reached, then the polygon will be closed.

Contributor guide

Open the contributing guide

Research direction

The issue names no source file, test, or entry point. Start by locating polygon creation and the preferences UI, then trace how tiled polygons are finalized and how polylines are handled separately. Done means a configurable point limit closes polygons at the specified count without applying that limit to polylines.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.