microsoft / microsoft/arcade-platformer

Error when no tilemap is set

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

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

  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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.