diff --git a/README.md b/README.md new file mode 100644 index 0000000..cfefd79 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# hoc2022-md +This is a project diff --git a/beams.md b/beams.md new file mode 100644 index 0000000..679f3d8 --- /dev/null +++ b/beams.md @@ -0,0 +1,36 @@ +### @codeStart players set @s makecode 0 +### @codeStop players set @s makecode 1 + +### @flyoutOnly true +### @hideIteration true +### @explicitHints 1 + +# Beams of Color + +## Step 1 +Help Wonder Woman place stained glass on top of the beams of light to match the color pattern shown on the wall. You'll need to tell her where to move and which colors to place. + +**Blocks Available:** +``||ww:Move by ||`` - Wonder Woman will move in that direction the specified number of blocks. +``||ww:Turn ||`` - Wonder Woman will turn in the specified direction. +``||ww:Place Stained Glass ||`` - Place a piece of colored stained glass in the specified direction. +``||loops:repeat times||`` - Repeat code the specified number of times. + +```ghost +player.onChat("run", function () { + for (let index = 0; index < 4; index++) { + ww.moveWW(Direction.Forward, 1) + ww.turnWW(LEFT_TURN) + ww.placeBlock(BeamsGlass.YellowStainedGlass, Direction.Forward) + } +}) +``` +```template +player.onChat("run", function () { + ww.moveWW(Direction.Forward, 3) + ww.placeBlock(BeamsGlass.LimeStainedGlass, Direction.Right) +}) +``` +```package +minecraft-ww1984=github:ReWrite-Media/ww1984-ts +``` \ No newline at end of file diff --git a/crate.md b/crate.md new file mode 100644 index 0000000..122916e --- /dev/null +++ b/crate.md @@ -0,0 +1,47 @@ +### @codeStart players set @s makecode 0 +### @codeStop players set @s makecode 1 + +### @flyoutOnly true +### @hideIteration true +### @explicitHints 1 + +# Suspicious Crates + +## Step 1 +Help Wonder Woman move 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:** +``||ww:Move by ||`` - Wonder Woman will move in that *direction* the given *number* of blocks. +``||ww:Turn ||`` - Wonder Woman will turn in the given *direction*. +``||ww:painting inside crate ||`` - Return a boolean (*true* | *false*) of whether the painting is found hidden in the given *direction*. +``||ww:Break crate ||`` - Instruct Wonder Woman to try and retrieve the hidden painting. +``||loops:repeat times||`` - Repeat code the given *number* of times. +``||loops:while ||`` - Repeatedly run the code while the boolean is *true*. +``||logic:if / then||`` - Checks if a condition is *true* and then does something if it is. +``||logic:not ||`` - Switches the operation of a condition. Example: *while * vs. *while not * + +```ghost +player.onChat("run", function () { + ww.moveWW(Direction.Forward, 1) + ww.turnWW(LEFT_TURN) + if (ww.locatePainting(Direction.Forward)) { + ww.retrievePainting(Direction.Forward) + } + for (let index = 0; index < 4; index++) { + + } + while (!(false)) { + + } +}) +``` +```template +player.onChat("run", function () { + if (ww.locatePainting(Direction.Forward)) { + + } +}) +``` +```package +minecraft-ww1984=github:ReWrite-Media/ww1984-ts +``` \ No newline at end of file diff --git a/final.md b/final.md new file mode 100644 index 0000000..3f2ba3e --- /dev/null +++ b/final.md @@ -0,0 +1,47 @@ +### @codeStart players set @s makecode 0 +### @codeStop players set @s makecode 1 + +### @flyoutOnly true +### @hideIteration true +### @explicitHints 1 + +# Hidden in Plain Sight + +## Step 1 +The criminal who planned the heist is hidden among the crowd. Help Wonder Woman check each person to figure out which is the thief in disguise and then use the lasso of truth to get the final painting piece. + +**Blocks Available:** +``||ww:Move by ||`` - Wonder Woman will move in that *direction* the given *number* of blocks. +``||ww:Turn ||`` - Wonder Woman will turn in the given *direction*. +``||ww:attendee is the thief ||`` - Return a boolean (*true* | *false*) of whether the attendee is the thief or not. +``||ww:Lasso thief ||`` - Causes Wonder Woman to use her lasso of truth on the thief. +``||loops:repeat times||`` - Repeat code the given *number* of times. +``||loops:while ||`` - Repeatedly run the code while the boolean is *true*. +``||logic:if / then||`` - Checks if a condition is *true* and then does something if it is. +``||logic:not ||`` - Switches the operation of a condition. Example: *while * vs. *while not * + +```ghost +player.onChat("run", function () { + ww.moveWW(Direction.Forward, 1) + ww.turnWW(LEFT_TURN) + for (let index = 0; index < 4; index++) { + + } + if (ww.locateGoon(Direction.Forward)) { + ww.apprehendGoon(Direction.Forward) + } + while (!(false)) { + + } +}) +``` +```template +player.onChat("run", function () { + if (ww.locateGoon(Direction.Forward)) { + + } +}) +``` +```package +minecraft-ww1984=github:ReWrite-Media/ww1984-ts +``` diff --git a/floor.md b/floor.md new file mode 100644 index 0000000..f08e61a --- /dev/null +++ b/floor.md @@ -0,0 +1,35 @@ +### @codeStart players set @s makecode 0 +### @codeStop players set @s makecode 1 + +### @flyoutOnly true +### @hideIteration true +### @explicitHints 1 + +# Dance Floor + +## Step 1 +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:** +``||ww:Move by ||`` - Wonder Woman will move in that *direction* the given *number* of blocks. +``||ww:Turn ||`` - Wonder Woman will turn in the given *direction*. +``||loops:repeat times||`` - Repeat code the given *number* of times. + +```ghost +player.onChat("run", function () { + ww.moveWW(Direction.Forward, 1) + ww.turnWW(LEFT_TURN) + for (let index = 0; index < 4; index++) { + + } +}) +``` +```template +player.onChat("run", function () { + ww.moveWW(Direction.Forward, 1) + ww.turnWW(RIGHT_TURN) +}) +``` +```package +minecraft-ww1984=github:ReWrite-Media/ww1984-ts +``` diff --git a/pxt.json b/pxt.json new file mode 100644 index 0000000..8d31267 --- /dev/null +++ b/pxt.json @@ -0,0 +1,21 @@ +{ + "name": "minecraft-hoc2022-md", + "version": "1.13.0", + "dependencies": { + "core": "*", + "builder": "*" + }, + "files": [ + "README.md", + "crate.md", + "beams.md", + "floor.md", + "sneak.md", + "final.md" + + ], + "supportedTargets": [ + "minecraft" + ], + "preferredEditor": "tsprj" +} \ No newline at end of file diff --git a/sneak.md b/sneak.md new file mode 100644 index 0000000..6598bab --- /dev/null +++ b/sneak.md @@ -0,0 +1,36 @@ +### @codeStart players set @s makecode 0 +### @codeStop players set @s makecode 1 + +### @flyoutOnly true +### @hideIteration true +### @explicitHints 1 + +# Stealth Mission + +## Step 1 +Help Wonder Woman move through the room without triggering the alarm by avoiding the lasers. She'll need to sneak behind and takedown the criminal. + +**Blocks Available:** +``||ww:Move by ||`` - Wonder Woman will move in that *direction* the given *number* of blocks. +``||ww:Turn ||`` - Wonder Woman will turn in the given *direction*. +``||ww:Takedown criminal ||`` - Stealthily knock out the criminal in the given *direction*. +``||loops:repeat times||`` - Repeat code the given *number* of times. + +```ghost +player.onChat("run", function () { + for (let index = 0; index < 4; index++) { + ww.moveWW(Direction.Forward, 1) + ww.turnWW(LEFT_TURN) + ww.takedownGoon(Direction.Forward) + } +}) +``` +```template +player.onChat("run", function () { + ww.moveWW(Direction.Forward, 1) + ww.turnWW(LEFT_TURN) +}) +``` +```package +minecraft-ww1984=github:ReWrite-Media/ww1984-ts +```