From 2ff4ce1f602702aad2ba262101fc2b9601a11660 Mon Sep 17 00:00:00 2001 From: Galen Nickel Date: Fri, 19 Jan 2024 16:27:44 -0800 Subject: [PATCH] page fix errors from PR1466 (#1470) --- libs/game/animation.ts | 1 + libs/game/docs/reference/controller/dy.md | 4 ++-- libs/game/docs/reference/info/countdown.md | 8 +------- libs/game/docs/reference/scene/get-tile-location.md | 1 + libs/game/docs/reference/scene/tile-at-location-equals.md | 1 + .../game/docs/reference/scene/tile-at-location-is-wall.md | 1 + 6 files changed, 7 insertions(+), 9 deletions(-) diff --git a/libs/game/animation.ts b/libs/game/animation.ts index b545e5ad1..03e4d80d2 100644 --- a/libs/game/animation.ts +++ b/libs/game/animation.ts @@ -718,6 +718,7 @@ namespace animation { //% frames.fieldOptions.filter="!tile !dialog !background" //% weight=40 //% group="Animate" duplicateShadowOnDrag + //% help=animation/animation-frames export function _animationFrames(frames: Image[]) { return frames } diff --git a/libs/game/docs/reference/controller/dy.md b/libs/game/docs/reference/controller/dy.md index 9e5f1ec0d..d7adf1cdd 100644 --- a/libs/game/docs/reference/controller/dy.md +++ b/libs/game/docs/reference/controller/dy.md @@ -1,9 +1,9 @@ -# dx +# dy Gets the amount of vertical movement to use if an up or down key is pressed. ```sig -controller.dx(0) +controller.dy(0) ``` 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. diff --git a/libs/game/docs/reference/info/countdown.md b/libs/game/docs/reference/info/countdown.md index d3cecbd2b..bda962e38 100644 --- a/libs/game/docs/reference/info/countdown.md +++ b/libs/game/docs/reference/info/countdown.md @@ -3,15 +3,9 @@ Get the current game countdown time. ```sig -info.changeCountdownBy(0) +info.countdown() ``` -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. - -## Parameters - -* **value**: a [number](/types/number) to set the game countdown by. - ## Returns * a [number](/types/number) that is the amount of time remaining for the game countdown in seconds. diff --git a/libs/game/docs/reference/scene/get-tile-location.md b/libs/game/docs/reference/scene/get-tile-location.md index 422ec52e0..daf85d27e 100644 --- a/libs/game/docs/reference/scene/get-tile-location.md +++ b/libs/game/docs/reference/scene/get-tile-location.md @@ -50,6 +50,7 @@ forever(function () { ## See also #seealso +[location](/reference/scene/location), [set tile at](/reference/scene/set-tile-at), [place on tile](/reference/scene/place-on-tile) diff --git a/libs/game/docs/reference/scene/tile-at-location-equals.md b/libs/game/docs/reference/scene/tile-at-location-equals.md index 6009f8930..7c2627b12 100644 --- a/libs/game/docs/reference/scene/tile-at-location-equals.md +++ b/libs/game/docs/reference/scene/tile-at-location-equals.md @@ -56,6 +56,7 @@ mySprite.vy = 35 ## See also #seealso +[location](/reference/scene/location), [get tile location](/reference/scene/get-tile-location) ```jres diff --git a/libs/game/docs/reference/scene/tile-at-location-is-wall.md b/libs/game/docs/reference/scene/tile-at-location-is-wall.md index 5ec605450..6bd5cb546 100644 --- a/libs/game/docs/reference/scene/tile-at-location-is-wall.md +++ b/libs/game/docs/reference/scene/tile-at-location-is-wall.md @@ -64,6 +64,7 @@ mySprite.vx = 30 ## See also #seealso +[location](/reference/scene/location), [get tile location](/reference/scene/get-tile-location) ```jres