microsoft / pxt-arcade

Arcade game editor based on Microsoft MakeCode
https://arcade.makecode.com
MIT License
477 stars 206 forks source link

Simulator tilt is visually incorrect in MakeCode Arcade Beta. #1211

Open mileswatson opened 5 years ago

mileswatson commented 5 years ago

Description

The simulator in MakeCode Arcade acts incorrectly when visualizing tilting. The device input is correct, but the visualization of the screen tilting is incorrect for tilting up/down. Left and right works as expected.

Reproduction

Steps to reproduce the behavior:

  1. Go to https://arcade.makecode.com/beta
  2. Start a new project
  3. Add the controller extension
  4. Drag the block "On Shake" into the code
  5. Run the code, and use the mouse to observe visual inconsistencies when moving mouse top to bottom.

Expected Behavior

The simulator should depress (move away from the user) where the mouse is, in order to consistently simulate tilting.

Example

Left/right looks correct, top/bottom does not

Browser

kevinjwalters commented 5 years ago

See #1190 for other tilt issues.

kevinjwalters commented 5 years ago

FYI beta beta is currently

arcade version:  0.13.22
Microsoft MakeCode version:  5.19.9