`objectLayersAddType` does not handle Tiled's lists
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- game-dev
Research direction
Read src/engineTileLayer.js around lines 81-86 for the tile-layer type declarations and around lines 825-873 for objectLayersProperties, which currently converts Tiled property types but ignores the list type. Compare against Tiled's documented property structure so each list item's wrapped value is unwrapped into a plain JS array. Done looks like list properties come out of objectLayersProperties as arrays of unwrapped values, with the type declarations updated to match.
Written by the indexing model from the issue text.
Description
The fact that Tiled has a list property type, is neither acknowledged by the type declarations:
https://github.com/KilledByAPixel/LittleJS/blob/47bdb56e2b967a827bdaeb5d25f0c26e55d0d2d7/src/engineTileLayer.js#L81-L86
nor by objectLayersProperties, which does not convert the list to a JS array (each item is basically an object, which wraps the actual value in a property):
https://github.com/KilledByAPixel/LittleJS/blob/47bdb56e2b967a827bdaeb5d25f0c26e55d0d2d7/src/engineTileLayer.js#L825-L873
- Dominant language
- JavaScript
- Stars
- 4.4k
- Forks
- 243
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from KilledByAPixel/LittleJS
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
KilledByAPixel/LittleJS#186 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
KilledByAPixel/LittleJS#161 · 1 comment ·
-
Multiplayer support?Open
Difficulty 5/5 Over a week Newbie friendliness 18/100
KilledByAPixel/LittleJS#79 · 4 comments ·
-
Needs more tutorialsOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
KilledByAPixel/LittleJS#47 · 2 comments · 11 reactions ·
All issues in KilledByAPixel/LittleJS
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
[workshop-sync] workshop/06-install-gh-aw.md: outdated version example and gh aw init file listOpendocumentation
Difficulty 1/5 Under an hour Newbie friendliness 86/100
githubnext/gh-aw-workshop#6053 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
JuliusBrussee/caveman#1567 ·
Maintainers usually reply within 1 day
-
Add: Drishya TVOpenchannels:add check:passed
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day