Repository navigation
Android: start on the Default tileset at a readable zoom; bump to 3.6.7-7 - #9
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)defaultTileset: ForkFront's value staysTTY, the app setsdefault_32("Default" in Settings → Tileset).Tileset.javaandTilesetPreference.javause it as the fallback when the player hasn't chosen a tileset. A chosen tileset is still stored and wins.Starting zoom (
2a3b5a87)defaultTileSizeDp: ForkFront's value is0(old behaviour), the app sets24.NHW_Map.loadZoomLevel()uses it to compute the starting zoom from screen density when there is no savedzoomLevel. Once the player zooms, the saved level is used as before.Version
3.6.7-7/3677(1df4d4cf).Testing (Android 14 emulator, fresh installs):
gradlew build(with lint) passes; signed bundle shows versionCode 3677.🤖 Generated with Claude Code