scratchfoundation / scratch-blocks

Scratch Blocks is a library for building creative computing interfaces.
https://scratch.mit.edu/developers
Apache License 2.0
2.58k stars 1.37k forks source link

Add "device orientation" extension #2013

Open filips123 opened 4 years ago

filips123 commented 4 years ago

Proposed Changes

Add extension for detecting the device orientation (gyroscope, compass, accelerometer). This could be done with DeviceMotionEvent and DeviceOrientationEvent API.

Reason for Changes

This would be useful if the project needs better support for phones. For example, instead of using a keyboard to move/rotate/control things on the computer, you could use phone orientation to do this. In combination with #2012, this would allow better support for mobile projects.

This was already requested here.

varshneydevansh commented 1 year ago

Hi @filips123, can I work on this feature?

Back in 2014, I created my first game with a project same like this, but it was by Microsoft. So, recently, I started exploring my old game, which lead me to Google/Blockly and ultimately here.

Upon, linking on here I remember I even explored it in my college days. I would be happy to contribute to projects like these, which are similar to what bought me the very first happiness of creating something from code.

filips123 commented 1 year ago

Sure, but maybe first ask maintainers of this repository if they would actually want this feature...