Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
neonerz committed Apr 15, 2022
1 parent ac4f3f3 commit a69c521
Show file tree
Hide file tree
Showing 7 changed files with 224 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# hoc2022-md
This is a project
36 changes: 36 additions & 0 deletions beams.md
Original file line number Diff line number Diff line change
@@ -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 <direction> by <number>||`` - Wonder Woman will move in that direction the specified number of blocks.
``||ww:Turn <direction>||`` - Wonder Woman will turn in the specified direction.
``||ww:Place <color> Stained Glass <direction>||`` - Place a piece of colored stained glass in the specified direction.
``||loops:repeat <number> 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
```
47 changes: 47 additions & 0 deletions crate.md
Original file line number Diff line number Diff line change
@@ -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 <direction> by <number>||`` - Wonder Woman will move in that *direction* the given *number* of blocks.
``||ww:Turn <direction>||`` - Wonder Woman will turn in the given *direction*.
``||ww:painting inside crate <direction>||`` - Return a boolean (*true* | *false*) of whether the painting is found hidden in the given *direction*.
``||ww:Break crate <direction>||`` - Instruct Wonder Woman to try and retrieve the hidden painting.
``||loops:repeat <number> times||`` - Repeat code the given *number* of times.
``||loops:while <boolean>||`` - 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 <boolean>||`` - Switches the operation of a condition. Example: *while <true>* vs. *while not <true>*

```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
```
47 changes: 47 additions & 0 deletions final.md
Original file line number Diff line number Diff line change
@@ -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 <direction> by <number>||`` - Wonder Woman will move in that *direction* the given *number* of blocks.
``||ww:Turn <direction>||`` - Wonder Woman will turn in the given *direction*.
``||ww:attendee is the thief <direction>||`` - Return a boolean (*true* | *false*) of whether the attendee is the thief or not.
``||ww:Lasso thief <direction>||`` - Causes Wonder Woman to use her lasso of truth on the thief.
``||loops:repeat <number> times||`` - Repeat code the given *number* of times.
``||loops:while <boolean>||`` - 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 <boolean>||`` - Switches the operation of a condition. Example: *while <true>* vs. *while not <true>*

```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
```
35 changes: 35 additions & 0 deletions floor.md
Original file line number Diff line number Diff line change
@@ -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 <direction> by <number>||`` - Wonder Woman will move in that *direction* the given *number* of blocks.
``||ww:Turn <direction>||`` - Wonder Woman will turn in the given *direction*.
``||loops:repeat <number> 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
```
21 changes: 21 additions & 0 deletions pxt.json
Original file line number Diff line number Diff line change
@@ -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"
}
36 changes: 36 additions & 0 deletions sneak.md
Original file line number Diff line number Diff line change
@@ -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 <direction> by <number>||`` - Wonder Woman will move in that *direction* the given *number* of blocks.
``||ww:Turn <direction>||`` - Wonder Woman will turn in the given *direction*.
``||ww:Takedown criminal <direction>||`` - Stealthily knock out the criminal in the given *direction*.
``||loops:repeat <number> 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
```

0 comments on commit a69c521

Please sign in to comment.