1. I've learnt how to code in using tools and techniques
2. Ive learnt how to make my own game
3. I've learnt how to use codings in several ways
4. I've learnt a lot in this activity
Game Tool Command | Game Tool | Javascript Code | Technique - What does the tool do? |
Move Forward
|
moveForward();
moveForward(); |
The move forward tool enables the object or character to move forward
| |
Move forward
|
moveForward();
moveForward(); moveForward(); |
The move forward tool enables your character to move forward 3x to its targets.
| |
Move forward
Turn Right
|
moveForward();
moveForward(); turnRight(); moveForward(); |
Move forward twice
The turn right tool enables the character to change directions when used.
Move forward once
| |
Move forward
Turn Left
Turn RIght
|
moveForward();
turnLeft(); moveForward(); turnRight(); moveForward(); |
Move forward
The turn left tool enables the character to turn left when used.
Move forward the turn right and then move forward again
| |
Turn right
Move forward
Turn left
Move forward
Move forward
Move forward
Turn left
Move forward
|
turnRight();
moveForward(); turnLeft(); moveForward(); moveForward(); moveForward(); turnLeft(); moveForward(); |
Turn right then move forward, then turn left, then move foward 3x, turn left and one more forward
| |
Repeat five times do: Move forward
|
for (var count = 0; count < 5; count++) {
moveForward(); } |
Repeat five times do tool enables you to fuse that tool with another tool and when done that tool moves 5 times.
| |
Turn right
Repeat five times do: move forward
|
turnRight();
for (var count = 0; count < 5; count++) { moveForward(); } |
Turn right then use the repeat five times do tool and fuse that with the move forward tool
| |
Move forward
Turn left
Repeat 5 times do: Move forward
|
moveForward();
moveForward(); moveForward(); moveForward(); turnLeft(); for (var count = 0; count < 5; count++) { moveForward(); } |
Move forward 4x then use the turn left tool and then finally use the repeat times do tool and fuse that with the move forward
| |
Repeat 3 times do: Move forward 2x and turn right
|
*
|
for (var count = 0; count < 3; count++) {
moveForward(); moveForward(); turnRight(); } |
Use te repeat 3 times do tool and fuse that with move forwar 2x tool and turn right.
|
Repeat until target do: Move foward
|
while (notFinished()) {
moveForward(); } |
Use the repeat until target do tool and fuse that with move forward
| |
Repeat until target do: move forward 2x turn left
|
while (notFinished()) {
moveForward(); moveForward(); turnLeft(); } |
Use the repeat untill target do tool and fuse that with move forward 2x tool and turn left tool
| |
Repeat until target do: move forward, turn left, move forward, tunr ru=ight
|
while (notFinished()) {
moveForward(); turnLeft(); moveForward(); turnRight(); } |
Use repeat untill target do and fuse that with move forward, turn left and then again move forward and then turn right.
| |
Repeat until taget do: turn right, move forward, turn left, move forwar
|
while (notFinished()) {
turnRight(); moveForward(); turnLeft(); moveForward(); } |
Use the repeat until target do tool and fuse that with turn right, move forward, turn left and the move forward tool.
| |
Repeat until target do: move forward, if path: to the left:do, turn right
|
while (notFinished()) {
moveForward(); if (isPathLeft()) { turnLeft(); } } |
Use the repeat untill target do tool and then fuse with the move tool, then use the if path to the left do too and fuse with the turn left tool.
| |
Repeat until target do:move forward, if path to the right do: turn right
|
while (notFinished()) {
moveForward(); if (isPathRight()) { turnRight(); } } |
Use the until target do tool and then fuse that with the move forward tool, then use the if path to the right do tool and fuse that with the turn right tool.
| |
Repeat until target do: move forward, if path to the left do: turn left
|
while (notFinished()) {
moveForward(); if (isPathLeft()) { turnLeft(); } } |
Use the repeat target do tool ad fuse that with themove forward tool, then use tee if the path ti the left too and fuse that wuth turn left.
| |
Repeat until target do: move forward, If path to the right: turn right
|
while (notFinished()) {
moveForward(); if (isPathRight()) { turnRight(); } } |
Use the repat until target do, then fuse that with the move forward, then use if path to the right snd then fuse that with the turn right.
| |
Repeat until do: move foward, If path ahead do:move forward, else: turn left
|
while (notFinished()) {
moveForward(); if (isPathForward()) { moveForward(); } else { turnLeft(); } } |
Use the repet until target do the fuse that with move forward, then use the if path ahead do else tool and then fuse that with move forward and turn left tool.
| |
Repeat until target do: move forward, of path ahead do: Move forwrd, else: turn left
|
while (notFinished()) {
if (isPathForward()) { moveForward(); } else { turnRight(); } } |
Use the repeat until target do tool and then fuse that with if path ahead do else tool and then fuse that with the moe forward and the turn right tool.
| |
Repeat until target do: if path ahead do: move forward, else: if path to the right do: turn right: else: tiurn left
|
while (notFinished()) {
if (isPathForward()) { moveForward(); } else { if (isPathRight()) { turnRight(); } else { turnLeft(); } } } |
Use the repeat until target do tool and fuse that with the if path ahead do else tool and then fuse that with move forward tool and the if path to the right do else tool and then fuse that with the turn right and turn left tool.
|