Skip to content

Android: start on the Default tileset at a readable zoom; bump to 3.6.7-7 - #9

Merged
skwidge merged 3 commits into
masterfrom
default-tileset
Oct 5, 2026
Merged

skwidge merged 3 commits into
masterfrom
default-tileset

Conversation

@skwidge

@skwidge skwidge commented Oct 5, 2026

Copy link
Copy Markdown
Owner

New players started in text (TTY) mode, and once on tiles the map was drawn at the tiles' pixel size (32px ≈ 12dp on a phone), too small to make out.

Default tileset (a5161905)

  • New config string defaultTileset: ForkFront's value stays TTY, the app sets default_32 ("Default" in Settings → Tileset).
  • Tileset.java and TilesetPreference.java use it as the fallback when the player hasn't chosen a tileset. A chosen tileset is still stored and wins.

Starting zoom (2a3b5a87)

  • New config integer defaultTileSizeDp: ForkFront's value is 0 (old behaviour), the app sets 24.
  • NHW_Map.loadZoomLevel() uses it to compute the starting zoom from screen density when there is no saved zoomLevel. Once the player zooms, the saved level is used as before.

Version 3.6.7-7 / 3677 (1df4d4cf).

Testing (Android 14 emulator, fresh installs):

  • Phone 1080×1920: first game shows Default sprites at ~63px (24dp); Settings → Tileset shows Default selected; choosing Ascii switches the map and is persisted.
  • 7" tablet 1200×1920: tiles 48px (same 24dp).
  • Zooming in, exiting and relaunching restores the saved zoom.
  • No crashes; gradlew build (with lint) passes; signed bundle shows versionCode 3677.

🤖 Generated with Claude Code

skwidge and others added 3 commits October 5, 2026 22:07
ForkFront fell back to TTY (text) when no tileset had been chosen. The
fallback is now a config string, defaultTileset, which ForkFront leaves
at TTY and the app sets to default_32. A tileset the player picks in
Settings is still stored and takes precedence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With no saved zoomLevel the map drew tiles at their pixel size, so
32px tiles were about 12dp tall on a phone and hard to make out. The
starting zoom now comes from a config integer, defaultTileSizeDp, which
ForkFront leaves at 0 (old behaviour) and the app sets to 24dp. Once the
player zooms, the saved zoomLevel is used as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@skwidge
skwidge merged commit 99eb2e5 into master Oct 5, 2026
4 checks passed
@skwidge
skwidge deleted the default-tileset branch October 5, 2026 09:20
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