diff --git a/beams.md b/beams.md index 1250672..6589bca 100644 --- a/beams.md +++ b/beams.md @@ -1,14 +1,14 @@ ### @codeStart players set @s makecode 0 ### @codeStop players set @s makecode 1 -### @flyoutOnly false +### @flyoutOnly true ### @hideIteration true ### @explicitHints 1 ## Beams of Color # Beams of Color -Place stained glass over the beacons to match the color sequence needed to unlock the painting piece. +Help Wonder Women place stained glass over the beams of light to match the color sequence displayed on the wall. You'll need to tell her where to move and which colors to place. **Blocks Available:** *Place Stained Glass * - Place a piece of colored stained glass in the specified direction. @@ -16,11 +16,12 @@ Place stained glass over the beacons to match the color sequence needed to unloc *repeat times* - Repeat code the specified number of times. ```ghost -ww.placeBlock(BeamsGlass.YellowStainedGlass, Direction.Forward) -ww.moveWW(Direction.Forward, 0) -for (let index = 0; index < 4; index++) { - -} +player.onChat("run", function () { + for (let index = 0; index < 4; index++) { + ww.placeBlock(BeamsGlass.YellowStainedGlass, Direction.Forward) + ww.moveWW(Direction.Forward, 0) + } +}) ``` ```package diff --git a/crate.md b/crate.md index 5184d8a..0665e2f 100644 --- a/crate.md +++ b/crate.md @@ -1,18 +1,18 @@ ### @codeStart players set @s makecode 0 ### @codeStop players set @s makecode 1 -### @flyoutOnly false +### @flyoutOnly true ### @hideIteration true ### @explicitHints 1 ## Suspicious Crates # Suspicious Crates -Move through the boxes to find and retrieve the painting. +Help Wonder Woman navigate through the crates and find the missing painting piece. Search each one and if she finds the missing puzzle piece, have her break the box to get it. **Blocks Available:** -*Locate painting * - Return a boolean (*true* | *false*) of whether the painting is found hidden in the specified direction. -*Retrieve painting * - Instruct Wonder Woman to try and retrieve the hidden painting. +*Search crate * - Return a boolean (*true* | *false*) of whether the painting is found hidden in the specified direction. +*Break crate * - Instruct Wonder Woman to try and retrieve the hidden painting. *Move by * - Wonder Woman will move in that direction the specified number of blocks. *if / then* - Checks if a condition is *true* and then does something if so. *repeat times* - Repeat code the specified number of times. @@ -20,17 +20,18 @@ Move through the boxes to find and retrieve the painting. *not * - Switches the operation of a condition. Example: *while * vs. *while not * ```ghost -ww.retrievePainting(Direction.Forward) -ww.moveWW(Direction.Forward, 0) -if (ww.locatePainting(Direction.Forward)) { - -} -for (let index = 0; index < 4; index++) { - -} -while (!(false)) { - -} +player.onChat("run", function () { + if (ww.locatePainting(Direction.Forward)) { + ww.retrievePainting(Direction.Forward) + ww.moveWW(Direction.Forward, 0) + } + for (let index = 0; index < 4; index++) { + + } + while (!(false)) { + + } +}) ``` ```package minecraft-ww1984=github:ReWrite-Media/ww1984-ts diff --git a/final.md b/final.md index fda04f0..502a403 100644 --- a/final.md +++ b/final.md @@ -1,38 +1,37 @@ ### @codeStart players set @s makecode 0 ### @codeStop players set @s makecode 1 -### @flyoutOnly false +### @flyoutOnly true ### @hideIteration true ### @explicitHints 1 ## Hidden in Plain Sight # Hidden in Plain Sight -The final goon is hiding amongst the gala attendees. Help Wonder Woman find and apprehend him. +The criminal mastermind who orchestrated this heist has hidden among the gala attendees. Help Wonder Woman investigate each attendee to figure out which is the goon in hiding and then use the lasso of truth to find out where the final piece of the painting is. **Blocks Available:** *Move by * - Wonder Woman will move in that direction the specified number of blocks. -*Locate goon * - Return a boolean (*true* | *false*) of whether the goon is found in the specified direction. -*Apprehend goon * - Instruct Wonder Woman to apprehend the goon. +*Investigate attendee * - Return a boolean (*true* | *false*) of whether the attendee is a goon or not. +*Lasso goon * - Causes Wonder Woman to use her lasso of truth on a goon. *repeat times* - Repeat code the specified number of times. *if / then* - Checks if a condition is *true* and then does something if so. *while * - Repeated run the code while the boolean is *true*. *not * - Switches the operation of a condition. Example: *while * vs. *while not * ```ghost -ww.moveWW(Direction.Forward, 0) -ww.locateGoon(Direction.Forward) -ww.apprehendGoon(Direction.Forward) -for (let index = 0; index < 4; index++) { - -} -if () { - -} -while (true) { - -} -!(false) +player.onChat("run", function () { + ww.moveWW(Direction.Forward, 0) + for (let index = 0; index < 4; index++) { + + } + if (ww.locateGoon(Direction.Forward)) { + ww.apprehendGoon(Direction.Forward) + } + while (!(false)) { + + } +}) ``` ```package minecraft-ww1984=github:ReWrite-Media/ww1984-ts diff --git a/floor.md b/floor.md index eba73ec..b48f440 100644 --- a/floor.md +++ b/floor.md @@ -1,24 +1,26 @@ ### @codeStart players set @s makecode 0 ### @codeStop players set @s makecode 1 -### @flyoutOnly false +### @flyoutOnly true ### @hideIteration true ### @explicitHints 1 ## Dance Floor # Dance Floor -Walk the correct path of colors to open the door containing the painting. +The colors on the wall seem to match the colors on the floor. Help Wonder Woman move over the colored blocks in the same sequence as seen on the wall. That should unlock a secret door on the back wall. **Blocks Available:** *Move by * - Wonder Woman will move in that direction the specified number of blocks. *repeat times* - Repeat code the specified number of times. ```ghost -ww.moveWW(Direction.Forward, 0) -for (let index = 0; index < 4; index++) { - -} +player.onChat("run", function () { + ww.moveWW(Direction.Forward, 0) + for (let index = 0; index < 4; index++) { + + } +}) ``` ```package minecraft-ww1984=github:ReWrite-Media/ww1984-ts diff --git a/pxt.json b/pxt.json index c7f47b1..2967b3f 100644 --- a/pxt.json +++ b/pxt.json @@ -1,6 +1,6 @@ { "name": "minecraft-ww1984-md", - "version": "0.1.2", + "version": "0.2.0", "dependencies": { "core": "*", "builder": "*" @@ -10,9 +10,7 @@ "crate.md", "beams.md", "floor.md", - "sneak_1.md", - "sneak_2.md", - "sneak_3.md", + "sneak.md", "final.md" ], diff --git a/sneak_1.md b/sneak.md similarity index 55% rename from sneak_1.md rename to sneak.md index e27250d..6513215 100644 --- a/sneak_1.md +++ b/sneak.md @@ -5,20 +5,21 @@ ### @hideIteration true ### @explicitHints 1 -## Laser Sneak +## Stealth Mission -# Laser Sneak Part 1 -Help Wonder Woman navigate through the room without tripping any lasers. +# Stealth Mission +Wonder Woman needs to make her way through these rooms without tripping any alarms. If she crosses a laser, the gates will shut! Help her move through the rooms undetected. **Blocks Available:** *Move by * - Wonder Woman will move in that direction the specified number of blocks. *repeat times* - Repeat code the specified number of times. ```ghost -ww.moveWW(Direction.Forward, 0) -for (let index = 0; index < 4; index++) { - -} +player.onChat("run", function () { + for (let index = 0; index < 4; index++) { + ww.moveWW(Direction.Forward, 0) + } +}) ``` ```package minecraft-ww1984=github:ReWrite-Media/ww1984-ts diff --git a/sneak_2.md b/sneak_2.md deleted file mode 100644 index c9089ca..0000000 --- a/sneak_2.md +++ /dev/null @@ -1,25 +0,0 @@ -### @codeStart players set @s makecode 0 -### @codeStop players set @s makecode 1 - -### @flyoutOnly false -### @hideIteration true -### @explicitHints 1 - -## Laser Sneak - -# Laser Sneak Part 2 -This room is a bit more difficult. Help Wonder Woman get through this room without triggering the alarm. - -**Blocks Available:** -*Move by * - Wonder Woman will move in that direction the specified number of blocks. -*repeat times* - Repeat code the specified number of times. - -```ghost -ww.moveWW(Direction.Forward, 0) -for (let index = 0; index < 4; index++) { - -} -``` -```package -minecraft-ww1984=github:ReWrite-Media/ww1984-ts -``` diff --git a/sneak_3.md b/sneak_3.md deleted file mode 100644 index 2277716..0000000 --- a/sneak_3.md +++ /dev/null @@ -1,27 +0,0 @@ -### @codeStart players set @s makecode 0 -### @codeStop players set @s makecode 1 - -### @flyoutOnly false -### @hideIteration true -### @explicitHints 1 - -## Laser Sneak - -# Laser Sneak Part 3 -In this room Wonder Woman will need to sneak up behind the goon and get the painting piece from him. You'll still need to make sure she avoids tripping the lasers. - -**Blocks Available:** -*Move by * - Wonder Woman will move in that direction the specified number of blocks. -*Apprehend goon * - Instruct Wonder Woman to apprehend the goon. -*repeat times* - Repeat code the specified number of times. - -```ghost -ww.moveWW(Direction.Forward, 0) -ww.apprehendGoon(Direction.Forward) -for (let index = 0; index < 4; index++) { - -} -``` -```package -minecraft-ww1984=github:ReWrite-Media/ww1984-ts -```