Skip to content

Platform: Use TileSet for texture#52

Merged
manuq merged 1 commit intomainfrom
platform-tileset-texture
Nov 25, 2025
Merged

Platform: Use TileSet for texture#52
manuq merged 1 commit intomainfrom
platform-tileset-texture

Conversation

@wjt
Copy link
Copy Markdown
Member

@wjt wjt commented Nov 25, 2025

Previously the texture could only be changed by modifying the code.

I am working on re-skinning the game to use tiles that are very visually different to the current set (Threadbare's pixel art rather than Kenney's anti-aliased art), and want to allow learners to choose the old style.

Since the script works by hardcoding tile coordinates within the texture, I think it makes sense to have it accept a TileSet rather than a texture. But I'm open to persuasion here!

Previously the texture could only be changed by modifying the code.

I am working on re-skinning the game to use tiles that are very visually
different to the current set (Threadbare's pixel art rather than
Kenney's anti-aliased art), and want to allow learners to choose the old
style.

Since the script works by hardcoding tile coordinates within the
texture, I think it makes sense to have it accept a TileSet rather than
a texture. But I'm open to persuasion here!
@wjt wjt requested a review from a team as a code owner November 25, 2025 10:57
@github-actions
Copy link
Copy Markdown

Play this branch at https://endlessm.github.io/moddable-platformer/branches/endlessm/platform-tileset-texture.

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

Copy link
Copy Markdown
Contributor

@manuq manuq left a comment

Choose a reason for hiding this comment

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

Much better!

@manuq manuq merged commit 2397ffd into main Nov 25, 2025
6 checks passed
@manuq manuq deleted the platform-tileset-texture branch November 25, 2025 11:03
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.

2 participants