Skip to content

Replace crystal coins with Threadbare button coins#55

Merged
manuq merged 1 commit into
mainfrom
threadbare-button-coins
Nov 27, 2025
Merged

Replace crystal coins with Threadbare button coins#55
manuq merged 1 commit into
mainfrom
threadbare-button-coins

Conversation

@wjt
Copy link
Copy Markdown
Member

@wjt wjt commented Nov 27, 2025

Starting with the spinning button animation that Manuel drew for Threadbare, I converted the yellow version to greyscale; scaled it up to 128×128 (matching the existing coin assets in this project), and completed the 7-frame animation. (In Threadbare, the frame order is 0 1 2 3 2* 1* 0* where the *s mean the frame is flipped horizontally; but it's easier to use if it's a vanilla sprite sheet.)

Then I exported two assets:

  • button_frames.png, containing the whole animation
  • button.png, which has just the first frame

Then the coins are set to use button.png, keeping the yellow tint (i.e. modulate).

button_frames.png is not used but it's in the source tree as an easter egg to tempt learners to try to figure out how to change the coin to be animated.

It's a little bit weird that we have collectible buttons and also buttons stitched to the tiles, but for me these work better with the surrounding game than stacks of books (as used in
threadbare-origins-inkdrinker) - we can keep the nice property of being able to recolour the coins with tint/modulate.

I did however tweak the placement of some of the decorative coins in the tilemap to compensate.

@wjt wjt requested a review from a team as a code owner November 27, 2025 16:32
@wjt
Copy link
Copy Markdown
Member Author

wjt commented Nov 27, 2025

Before After
Screenshot from 2025-11-27 16-24-10 Screenshot from 2025-11-27 16-24-04

@wjt
Copy link
Copy Markdown
Member Author

wjt commented Nov 27, 2025

BTW I know that we could use AtlasTexture2D to use just the first frame of the sprite sheet as a single static sprite, but I think that's potentially a bit obscure for a new Godot user.

@github-actions
Copy link
Copy Markdown

Play this branch at https://endlessm.github.io/moddable-platformer/branches/endlessm/threadbare-button-coins.

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

@wjt wjt marked this pull request as draft November 27, 2025 16:35
Starting with the [spinning button animation that Manuel drew for
Threadbare][0], I converted the yellow version to greyscale; scaled it
up to 128×128 (matching the existing coin assets in this project), and
completed the 7-frame animation. (In Threadbare, the frame order is 0 1
2 3 2* 1* 0* where the *s mean the frame is flipped horizontally; but
it's easier to use if it's a vanilla sprite sheet.)

Then I exported two assets:

- button_frames.png, containing the whole animation
- button.png, which has just the first frame

Then the coins are set to use button.png, keeping the yellow tint (i.e.
modulate).

button_frames.png is not used but it's in the source tree as an easter
egg to tempt learners to try to figure out how to change the coin to
be animated.

It's a little bit weird that we have collectible buttons and also
buttons stitched to the tiles, but for me these work better with the
surrounding game than stacks of books (as used in
threadbare-origins-inkdrinker) - we can keep the nice property of being
able to recolour the coins with tint/modulate.

I did however tweak the placement of some of the decorative coins in the
tilemap to compensate.

[0]: https://github.com/endlessm/threadbare/blob/f687d911c26ee31fe9f31b962d45a031f3860bb0/scenes/game_elements/props/button_item/components/button.aseprite
@wjt wjt force-pushed the threadbare-button-coins branch from 715cf80 to 6e122f7 Compare November 27, 2025 16:36
@wjt
Copy link
Copy Markdown
Member Author

wjt commented Nov 27, 2025

I ran the PNGs through pngcrush. Before:

-rw-rw-r-- 1 wjt wjt 2.5K Nov 27 16:09 assets/items/button_frames.png
-rw-rw-r-- 1 wjt wjt  649 Nov 27 16:12 assets/items/button.png

After:

-rw-r--r-- 1 wjt wjt 2.0K Nov 27 16:36 assets/items/button_frames.png
-rw-r--r-- 1 wjt wjt  550 Nov 27 16:36 assets/items/button.png

Quite impressive!

@wjt wjt marked this pull request as ready for review November 27, 2025 16:37
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.

Nice easter egg! Not because I drew it (borrowing from StoryWeaver's shield by Pixel Frog)

@manuq manuq merged commit 8a13ef0 into main Nov 27, 2025
6 checks passed
@manuq manuq deleted the threadbare-button-coins branch November 27, 2025 17:24
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