pxt-common-packages 11.1.5 → 12.0.1

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 (39) hide show
  1. package/libs/azureiot/built/debug/binary.js +461 -461
  2. package/libs/browser-events/browserEvents.ts +1 -1
  3. package/libs/browser-events/keyboard.ts +1 -1
  4. package/libs/color/built/debug/binary.js +8 -8
  5. package/libs/color-sensor/built/debug/binary.js +8 -8
  6. package/libs/controller/built/debug/binary.js +7121 -7121
  7. package/libs/controller---none/built/debug/binary.js +7101 -7101
  8. package/libs/datalogger/built/debug/binary.js +63 -63
  9. package/libs/edge-connector/built/debug/binary.js +8 -8
  10. package/libs/esp32/built/debug/binary.js +462 -462
  11. package/libs/game/_locales/game-strings.json +1 -0
  12. package/libs/game/animation.ts +1 -0
  13. package/libs/game/assetTemplates.ts +4 -0
  14. package/libs/game/built/debug/binary.js +7040 -7040
  15. package/libs/game/docs/reference/controller/dy.md +2 -2
  16. package/libs/game/docs/reference/info/countdown.md +1 -7
  17. package/libs/game/docs/reference/scene/get-tile-location.md +1 -0
  18. package/libs/game/docs/reference/scene/tile-at-location-equals.md +1 -0
  19. package/libs/game/docs/reference/scene/tile-at-location-is-wall.md +1 -0
  20. package/libs/game/tilemap.ts +2 -0
  21. package/libs/lcd/built/debug/binary.js +8 -8
  22. package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
  23. package/libs/lora/built/debug/binary.js +8 -8
  24. package/libs/matrix-keypad/built/debug/binary.js +8 -8
  25. package/libs/mqtt/built/debug/binary.js +176 -176
  26. package/libs/net/built/debug/binary.js +176 -176
  27. package/libs/net-game/built/debug/binary.js +8629 -8629
  28. package/libs/palette/built/debug/binary.js +7039 -7039
  29. package/libs/pixel/built/debug/binary.js +8 -8
  30. package/libs/power/built/debug/binary.js +8 -8
  31. package/libs/proximity/built/debug/binary.js +8 -8
  32. package/libs/radio/built/debug/binary.js +8 -8
  33. package/libs/radio-broadcast/built/debug/binary.js +8 -8
  34. package/libs/rotary-encoder/built/debug/binary.js +8 -8
  35. package/libs/screen/built/debug/binary.js +50 -50
  36. package/libs/servo/built/debug/binary.js +8 -8
  37. package/libs/sprite-scaling/built/debug/binary.js +7039 -7039
  38. package/libs/storyboard/built/debug/binary.js +7039 -7039
  39. package/package.json +2 -2
@@ -1,9 +1,9 @@
1
- # dx
1
+ # dy
2
2
 
3
3
  Gets the amount of vertical movement to use if an up or down key is pressed.
4
4
 
5
5
  ```sig
6
- controller.dx(0)
6
+ controller.dy(0)
7
7
  ```
8
8
 
9
9
  If you're controlling the location of a sprite by key pressess, you can decide how much change in position it will have when a key is pressed. This is done with _steps_. While a direction key is pressed, the movement value returned is based on if and how long the key is pressed, along with the step size you gave it. If you want fast movement, then you use a larger step size.
@@ -3,15 +3,9 @@
3
3
  Get the current game countdown time.
4
4
 
5
5
  ```sig
6
- info.changeCountdownBy(0)
6
+ info.countdown()
7
7
  ```
8
8
 
9
- The current game countdown time amount is increased by adding the change value when it is greater than zero (positive). If the change number is less than zero (negative), the game countdown is reduced by the value of the change number.
10
-
11
- ## Parameters
12
-
13
- * **value**: a [number](/types/number) to set the game countdown by.
14
-
15
9
  ## Returns
16
10
 
17
11
  * a [number](/types/number) that is the amount of time remaining for the game countdown in seconds.
@@ -50,6 +50,7 @@ forever(function () {
50
50
 
51
51
  ## See also #seealso
52
52
 
53
+ [location](/reference/scene/location),
53
54
  [set tile at](/reference/scene/set-tile-at),
54
55
  [place on tile](/reference/scene/place-on-tile)
55
56
 
@@ -56,6 +56,7 @@ mySprite.vy = 35
56
56
 
57
57
  ## See also #seealso
58
58
 
59
+ [location](/reference/scene/location),
59
60
  [get tile location](/reference/scene/get-tile-location)
60
61
 
61
62
  ```jres
@@ -64,6 +64,7 @@ mySprite.vx = 30
64
64
 
65
65
  ## See also #seealso
66
66
 
67
+ [location](/reference/scene/location),
67
68
  [get tile location](/reference/scene/get-tile-location)
68
69
 
69
70
  ```jres
@@ -1,4 +1,6 @@
1
1
  enum TileScale {
2
+ //% block="4x4"
3
+ Four = 2,
2
4
  //% block="8x8"
3
5
  Eight = 3,
4
6
  //% block="16x16"
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P48910(s) {
59
+ function _main___P48912(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___49153 = (undefined);
70
- globals._pollEventQueue___49166 = (undefined);
69
+ globals._intervals___49155 = (undefined);
70
+ globals._pollEventQueue___49168 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P48910.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"characterlcd.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P48910.continuations = [ ]
75
+ _main___P48912.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"characterlcd.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P48912.continuations = [ ]
77
77
 
78
- function _main___P48910_mk(s) {
78
+ function _main___P48912_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P48910, depth: s.depth + 1,
81
+ parent: s, fn: _main___P48912, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P48910_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P48910
91
+ return _main___P48912
92
92
  })
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P99068(s) {
59
+ function _main___P99074(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___99311 = (undefined);
70
- globals._pollEventQueue___99324 = (undefined);
69
+ globals._intervals___99317 = (undefined);
70
+ globals._pollEventQueue___99330 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P99068.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"tsl2591.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P99068.continuations = [ ]
75
+ _main___P99074.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"tsl2591.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P99074.continuations = [ ]
77
77
 
78
- function _main___P99068_mk(s) {
78
+ function _main___P99074_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P99068, depth: s.depth + 1,
81
+ parent: s, fn: _main___P99074, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P99068_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P99068
91
+ return _main___P99074
92
92
  })
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P60218(s) {
59
+ function _main___P60220(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___60461 = (undefined);
70
- globals._pollEventQueue___60474 = (undefined);
69
+ globals._intervals___60463 = (undefined);
70
+ globals._pollEventQueue___60476 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P60218.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"lora.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P60218.continuations = [ ]
75
+ _main___P60220.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"lora.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P60220.continuations = [ ]
77
77
 
78
- function _main___P60218_mk(s) {
78
+ function _main___P60220_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P60218, depth: s.depth + 1,
81
+ parent: s, fn: _main___P60220, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P60218_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P60218
91
+ return _main___P60220
92
92
  })
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P192896(s) {
59
+ function _main___P192910(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___193139 = (undefined);
70
- globals._pollEventQueue___193152 = (undefined);
69
+ globals._intervals___193153 = (undefined);
70
+ globals._pollEventQueue___193166 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P192896.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"keypad.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P192896.continuations = [ ]
75
+ _main___P192910.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"keypad.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P192910.continuations = [ ]
77
77
 
78
- function _main___P192896_mk(s) {
78
+ function _main___P192910_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P192896, depth: s.depth + 1,
81
+ parent: s, fn: _main___P192910, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P192896_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P192896
91
+ return _main___P192910
92
92
  })