microsoft / microsoft/arcade-platformer
Error when no tilemap is set
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Creating a platformer sprite without before setting a tilemap results in a program error:
program error: can't access property "fields", s.tmp_0 is undefined
The same error occurs when the built in "game over win/lose" block is used.
Example:
https://makecode.com/_AUcgaddHKaqE
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by reproducing the failure with the linked MakeCode example, first without a tilemap and then with the built-in game over win/lose block. Trace the platformer extension's handling of missing tilemap state; done means both cases no longer produce the undefined-fields program error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100