Skip to content

Conversation

@takaokouji
Copy link

This PR updates the Ruby integration for the MicrobitMore extension to support the new blocks and gestures implemented in scratch-vm.

Changes

  • Ruby Generator: Added support for when_tilted, tilted?, and tilt_angle.
  • Ruby-to-Blocks Converter: Updated mappings for tilt directions and new gestures (jumped, moved).
  • Standardization: Updated direction labels to use lowercase strings (any, front, back, left, right) consistent with Scratch.
  • Integration Tests: Added test cases for the new blocks and gestures.

Note

This PR depends on the changes in smalruby/scratch-vm#93. After that PR is merged, package-lock.json in this repository should be updated to point to the latest commit of scratch-vm.

🤖 Generated with Gemini Code

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

takaokouji and others added 4 commits January 17, 2026 12:51
- Update generator for 'when_tilted', 'tilted?', and 'tilt_angle'.
- Update converter for tilt directions and 'jumped'/'moved' gestures.
- Standardize tilt direction labels to lowercase.
- Add new cases to integration tests.

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

Co-Authored-By: Gemini <noreply@google.com>
Added Ruby code snippet for the new when_tilted block to enable
autocomplete support in the Ruby editor.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Standardize block direction values to uppercase (FRONT, BACK, etc.).
- Update generator and converter for uppercase block values.
- Add and update unit tests for tilt-related blocks.
- Fix cspell configuration for FREEFALL.

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

Co-Authored-By: Gemini <noreply@google.com>
- Updated package-lock.json to reference latest scratch-vm changes
- Ensures compatibility with recent scratch-vm modifications

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

Co-Authored-By: Gemini <noreply@google.com>
@takaokouji takaokouji merged commit eda6319 into develop Jan 17, 2026
3 checks passed
@takaokouji takaokouji deleted the feature/issue-20-tilt-blocks branch January 17, 2026 09:24
github-actions bot pushed a commit that referenced this pull request Jan 17, 2026
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