Skip to content

platform: Warn if TileSet doesn't have expected tiles - #85

Merged
wjt merged 1 commit into
mainfrom
wjt/platform-warn-if-tileset-doesnt-have-expected-tiles
May 7, 2026
Merged

wjt merged 1 commit into
mainfrom
wjt/platform-warn-if-tileset-doesnt-have-expected-tiles

Conversation

@wjt

@wjt wjt commented Mar 12, 2026

Copy link
Copy Markdown
Member

This is in response to a question from an educator on our Discord.

@wjt
wjt requested a review from a team as a code owner March 12, 2026 10:29
@github-actions

github-actions Bot commented Mar 12, 2026

Copy link
Copy Markdown

Play this branch at https://endlessm.github.io/moddable-platformer/branches/endlessm/wjt/platform-warn-if-tileset-doesnt-have-expected-tiles/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

Comment on lines +7 to +11
const FRAME_COORDS_ONE_WAY_LEFT := Vector2i(5, 0)
const FRAME_COORDS_ONE_WAY_MIDDLE := Vector2i(6, 0)
const FRAME_COORDS_ONE_WAY_RIGHT := Vector2i(7, 0)
const FRAME_COORDS_ONE_WAY_SINGLE := Vector2i(8, 0)
const FRAME_COORDS_SOLID := Vector2i(10, 1)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably overengineering but my other idea here was to turn these into properties that can be adjusted, and add a read-only, not-stored property for each texture that shows a preview.

@wjt
wjt merged commit 1bf012b into main May 7, 2026
4 checks passed
@wjt
wjt deleted the wjt/platform-warn-if-tileset-doesnt-have-expected-tiles branch May 7, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant