Skip to content

Townies system#2129

Draft
manuq wants to merge 4 commits intomainfrom
townies-system
Draft

Townies system#2129
manuq wants to merge 4 commits intomainfrom
townies-system

Conversation

@manuq
Copy link
Copy Markdown
Collaborator

@manuq manuq commented Apr 17, 2026

No description provided.

manuq added 2 commits April 15, 2026 22:45
The Sokobans may be repurposed in the future. For now, add a setting so
developers can skip them with a debug setting, in project.godot or in an
override.cfg local file.

In the settings addon, add a class name so scripts can reference the settings by
the constant. For that, move the "threadbare/" prefix to the constants and add
an assertion for the prefix. Also move the comment to hint strings.
And directly resume the persisted state.

When developing, it becomes a bit tedious to reach the persisted state by
pressing keys and waiting for the transitions to happen. And starting the game
from the main scene (splash) is the only way to debug saved state.
@github-actions
Copy link
Copy Markdown

Play this branch at https://play.threadbare.game/branches/endlessm/townies-system/.

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

manuq added 2 commits April 17, 2026 21:14
Avoid changing the seed of the base random number generator, which makes the
rest of the game predictable. Instead, using its own RNG in this class.

Pass the RNG as argument to the CelShadingRecolor and
RandomTextureSpriteBehavior, which now accept one. This way, the character is
consistent with its character_seed.

Luckly, characters randomized this way stay the same, because textures and skin
colors are immediately called with the same seed as before.

Fix #2130
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