pxt-common-packages 13.1.6 → 13.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/libs/animation/legacy.ts +2 -0
  2. package/libs/azureiot/built/debug/binary.js +461 -461
  3. package/libs/color/built/debug/binary.js +8 -8
  4. package/libs/color-sensor/built/debug/binary.js +8 -8
  5. package/libs/controller/built/debug/binary.js +7348 -7348
  6. package/libs/controller---none/built/debug/binary.js +7328 -7328
  7. package/libs/datalogger/built/debug/binary.js +63 -63
  8. package/libs/edge-connector/built/debug/binary.js +8 -8
  9. package/libs/esp32/built/debug/binary.js +462 -462
  10. package/libs/game/_locales/game-jsdoc-strings.json +1 -0
  11. package/libs/game/_locales/game-strings.json +1 -0
  12. package/libs/game/animation.ts +3 -0
  13. package/libs/game/built/debug/binary.js +7267 -7267
  14. package/libs/game/controller.ts +2 -0
  15. package/libs/game/docs/reference/sprites/sprite/follow.md +1 -0
  16. package/libs/game/docs/reference/sprites/sprite/set-kind.md +1 -1
  17. package/libs/game/docs/reference/sprites/sprite/unfollow.md +62 -0
  18. package/libs/game/particleeffects.ts +1 -0
  19. package/libs/game/scenes.ts +1 -0
  20. package/libs/game/sprite.ts +15 -0
  21. package/libs/game/sprites.ts +1 -0
  22. package/libs/game/tilemap.ts +2 -0
  23. package/libs/lcd/built/debug/binary.js +8 -8
  24. package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
  25. package/libs/lora/built/debug/binary.js +8 -8
  26. package/libs/matrix-keypad/built/debug/binary.js +8 -8
  27. package/libs/mqtt/built/debug/binary.js +176 -176
  28. package/libs/net/built/debug/binary.js +176 -176
  29. package/libs/net-game/built/debug/binary.js +8984 -8984
  30. package/libs/palette/built/debug/binary.js +7266 -7266
  31. package/libs/pixel/built/debug/binary.js +8 -8
  32. package/libs/power/built/debug/binary.js +8 -8
  33. package/libs/proximity/built/debug/binary.js +8 -8
  34. package/libs/radio/built/debug/binary.js +8 -8
  35. package/libs/radio-broadcast/built/debug/binary.js +8 -8
  36. package/libs/rotary-encoder/built/debug/binary.js +8 -8
  37. package/libs/screen/built/debug/binary.js +50 -50
  38. package/libs/servo/built/debug/binary.js +8 -8
  39. package/libs/sprite-scaling/built/debug/binary.js +7266 -7266
  40. package/libs/sprite-scaling/scaling.ts +4 -0
  41. package/libs/storyboard/built/debug/binary.js +7266 -7266
  42. package/package.json +1 -1
@@ -58,6 +58,7 @@
58
58
  "Sprite.tileHitFrom": "Get the obstacle sprite in a given direction if any",
59
59
  "Sprite.tileKindAt": "Get the tile kind in a given direction if any",
60
60
  "Sprite.tilemapLocation": "Gets the tilemap location at the center of a sprite",
61
+ "Sprite.unfollow": "Stop this sprite from following any target sprite.",
61
62
  "animation.animationPresets": "Generates a path string for preset animation",
62
63
  "animation.animationPresets|param|animationPath": "The preset path",
63
64
  "animation.runImageAnimation": "Create and run an image animation on a sprite",
@@ -98,6 +98,7 @@
98
98
  "Sprite.tilemapLocation|block": "tilemap location of $this",
99
99
  "Sprite.top@set|block": "top",
100
100
  "Sprite.top|block": "top",
101
+ "Sprite.unfollow|block": "set $sprite(myEnemy) unfollow",
101
102
  "Sprite.vx@set|block": "vx (velocity x)",
102
103
  "Sprite.vx|block": "vx (velocity x)",
103
104
  "Sprite.vy@set|block": "vy (velocity y)",
@@ -583,6 +583,7 @@ namespace animation {
583
583
  */
584
584
  //% blockId=run_image_animation
585
585
  //% block="animate $sprite=variables_get(mySprite) frames $frames=animation_editor interval (ms) $frameInterval=timePicker loop $loop=toggleOnOff"
586
+ //% sprite.defl=mySprite
586
587
  //% group="Animate"
587
588
  //% weight=100
588
589
  //% help=animation/run-image-animation
@@ -599,6 +600,7 @@ namespace animation {
599
600
  */
600
601
  //% blockId=run_movement_animation
601
602
  //% block="animate $sprite=variables_get(mySprite) with $pathString=animation_path for (ms) $duration=timePicker loop $loop=toggleOnOff"
603
+ //% sprite.defl=mySprite
602
604
  //% duration.defl=2000
603
605
  //% weight=80
604
606
  //% group="Animate"
@@ -625,6 +627,7 @@ namespace animation {
625
627
  */
626
628
  //% blockId=stop_animations
627
629
  //% block="stop %type animations on %sprite=variables_get(mySprite)"
630
+ //% sprite.defl=mySprite
628
631
  //% group="Animate"
629
632
  //% weight=60
630
633
  //% help=animation/stop-animation