Skip to content

Update stall sprite sheet and registry offsets - #79

Merged
candour merged 1 commit into
mainfrom
update-stall-sprites-12607590349002178598
Apr 23, 2026
Merged

Update stall sprite sheet and registry offsets#79
candour merged 1 commit into
mainfrom
update-stall-sprites-12607590349002178598

Conversation

@candour

@candour candour commented Apr 23, 2026

Copy link
Copy Markdown
Owner

This PR replaces the stalls.png sprite sheet with a new single-column version where each stall slot is exactly 500 pixels apart. The StallRegistry in Registry.kt has been updated to use the new vertical offsets (e.g., y = index * 500 + padding) while maintaining the original sprite dimensions and internal padding for each stall.

Stalls updated:

  1. Teh Tarik (Y: 41)
  2. Chicken Rice (Y: 541)
  3. Durian (Y: 1041)
  4. Satay (Y: 1541)
  5. Ice Kachang (Y: 2041)
  6. Tray Return Uncle (Y: 3041)

The Bak Kut Teh stall (Index 5) is present in the sprite sheet but currently unused in the registry per instructions.


PR created automatically by Jules for task 12607590349002178598 started by @candour

Summary by CodeRabbit

Release Notes

  • Chores
    • Updated stall display graphics for improved visual accuracy.
    • Removed internal verification page.

- Replaced stalls.png with a new version where stalls are spaced 500px apart vertically.
- Updated IntRect coordinates in StallRegistry for all active stalls:
    - Teh Tarik (Index 0)
    - Chicken Rice (Index 1)
    - Durian (Index 2)
    - Satay (Index 3)
    - Ice Kachang (Index 4)
    - Tray Return Uncle (Index 6)
- Preserved existing sprite dimensions and internal padding within the new 500px slots.
- Skipped Index 5 (Bak Kut Teh) as requested.
- Removed placeholder note for Tray Return Uncle.

Co-authored-by: candour <4670475+candour@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@coderabbitai

coderabbitai Bot commented Apr 23, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Updated sprite texture atlas coordinates for five stall types in StallRegistry (SATAY, CHICKEN_RICE, DURIAN, ICE_KACHANG, TRAY_RETURN_UNCLE) to reference new positions in the sprite sheet. Removed the stall verification HTML report file.

Changes

Cohort / File(s) Summary
Sprite Coordinate Registry Update
app/src/main/java/com/messark/hawker/registry/Registry.kt
Updated spriteRect values for five stall types to point to new texture atlas rectangles; removed placeholder comment for TRAY_RETURN_UNCLE.
HTML Report Removal
stall_verification/index.html
Removed entire stall verification report page containing table with stall names, coordinate data, and sprite image references.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Update stall sprite sheet and registry offsets' accurately and concisely summarizes the main change: updating the sprite sheet and corresponding registry offsets for stall coordinates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-stall-sprites-12607590349002178598

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown

Build Successful! 🚀

Download APK

Note: This link will be removed when the PR is closed.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
app/src/main/java/com/messark/hawker/registry/Registry.kt (1)

325-405: Consider extracting sprite slot stride/padding constants.

These hardcoded Y values are correct now, but defining shared constants (e.g., slot stride/padding) would make future atlas updates safer and clearer.

♻️ Suggested refactor
 object StallRegistry {
+    private const val STALL_SLOT_STRIDE_Y = 500
+    private const val STALL_BASE_PADDING_Y = 41
+
     private val definitions = mapOf(
         StallType.TEH_TARIK to StallDefinition(
@@
-            spriteRect = IntRect(14, 1541, 322, 1951),
+            spriteRect = IntRect(14, STALL_BASE_PADDING_Y + 3 * STALL_SLOT_STRIDE_Y, 322, 1951),
@@
-            spriteRect = IntRect(22, 541, 330, 971)
+            spriteRect = IntRect(22, STALL_BASE_PADDING_Y + 1 * STALL_SLOT_STRIDE_Y, 330, 971)
@@
-            spriteRect = IntRect(33, 1041, 341, 1398),
+            spriteRect = IntRect(33, STALL_BASE_PADDING_Y + 2 * STALL_SLOT_STRIDE_Y, 341, 1398),
@@
-            spriteRect = IntRect(14, 2041, 322, 2471),
+            spriteRect = IntRect(14, STALL_BASE_PADDING_Y + 4 * STALL_SLOT_STRIDE_Y, 322, 2471),
@@
-            spriteRect = IntRect(14, 3041, 322, 3471),
+            // Slot index 5 intentionally unused (Bak Kut Teh)
+            spriteRect = IntRect(14, STALL_BASE_PADDING_Y + 6 * STALL_SLOT_STRIDE_Y, 322, 3471),

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c643c474-1a2b-4fbb-8054-e449cde7f3ab

📥 Commits

Reviewing files that changed from the base of the PR and between 84c1bb3 and 1072ef6.

⛔ Files ignored due to path filters (5)
  • app/src/main/res/drawable-nodpi/stalls.png is excluded by !**/*.png
  • stall_verification/chicken_rice.png is excluded by !**/*.png
  • stall_verification/ice_kachang.png is excluded by !**/*.png
  • stall_verification/satay.png is excluded by !**/*.png
  • stall_verification/teh_tarik.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • app/src/main/java/com/messark/hawker/registry/Registry.kt
  • stall_verification/index.html
💤 Files with no reviewable changes (1)
  • stall_verification/index.html

@candour
candour merged commit 6876d22 into main Apr 23, 2026
3 checks passed
@candour
candour deleted the update-stall-sprites-12607590349002178598 branch April 23, 2026 10:51
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