Skip to content

Conversation

@takaokouji
Copy link

This PR aligns the MicrobitMore extension with the standard Scratch micro:bit extension by implementing new blocks and gestures.

Changes

  • 'jumped' Gesture: Simulated by detecting a G3 acceleration followed by a FREEFALL event within 1000ms.
  • 'moved' Gesture: Updated logic to trigger on any gesture event change, matching Scratch's behavior.
  • Tilt Blocks:
    • when tilted [DIRECTION] (HAT)
    • tilted [DIRECTION]? (Boolean reporter)
    • tilt angle [DIRECTION] (Value reporter)
  • Standardization: Updated tilt directions to use any, front, back, left, and right.
  • Translations: Added full Japanese and Hiragana (ja and ja-Hira) translations for all new blocks and menu items.

Verification

  • Ran npm run lint (0 errors).
  • Manually verified block logic and simulation state tracking.

🤖 Generated with Gemini Code

Co-Authored-By: Gemini noreply@google.com

takaokouji and others added 2 commits January 17, 2026 14:29
…ension

- Added simulated 'jumped' gesture (G3 + Freefall).
- Updated 'moved' gesture logic to trigger on any gesture change.
- Added 'when tilted [DIRECTION]' HAT block.
- Added 'tilted [DIRECTION]?' boolean reporter.
- Added 'tilt angle [DIRECTION]' value reporter.
- Standardized tilt directions (any, front, back, left, right).
- Added Japanese and Hiragana translations for all new blocks and menus.

🤖 Generated with [Gemini Code](https://gemini.google.com/code)

Co-Authored-By: Gemini <noreply@google.com>
- Removed Math.max(0, ...) clamping to allow returning negative values (-1 to -179).
- This aligns with standard Scratch micro:bit extension behavior.

🤖 Generated with [Gemini Code](https://gemini.google.com/code)

Co-Authored-By: Gemini <noreply@google.com>
@takaokouji takaokouji force-pushed the fix/issue-20-align-microbit-more-blocks branch from 2540aa7 to 7e207bd Compare January 17, 2026 05:48
@takaokouji takaokouji merged commit ef78fbc into develop Jan 17, 2026
1 check passed
@takaokouji takaokouji deleted the fix/issue-20-align-microbit-more-blocks branch January 17, 2026 08:42
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