Pages

Tuesday 11 October 2016

Recap:Games- Tools and Techniques

Recap: Gams- Tools and Techniques

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
Screen Shot 2016-09-06 at 9.13.58 AM.png
moveForward();
moveForward();
moveForward();
The move forward tool enables your character to move forward 3x to its targets.
Move forward
Turn Right
Screen Shot 2016-09-06 at 9.16.37 AM.png
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
Screen Shot 2016-09-06 at 9.18.48 AM.png
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
Screen Shot 2016-09-06 at 9.23.08 AM.png
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
Screen Shot 2016-09-06 at 9.31.07 AM.png
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
Screen Shot 2016-09-06 at 9.34.43 AM.png
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
Screen Shot 2016-09-06 at 9.44.29 AM.png

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
*Screen Shot 2016-09-06 at 10.09.53 AM.png
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
Screen Shot 2016-09-06 at 10.04.21 AM.png
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
Screen Shot 2016-09-06 at 10.13.24 AM.png
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
Screen Shot 2016-09-06 at 10.18.43 AM.png
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
Screen Shot 2016-09-06 at 10.23.15 AM.png
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
Screen Shot 2016-09-07 at 1.46.10 PM.png
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
Screen Shot 2016-09-07 at 1.51.59 PM.png
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
Screen Shot 2016-09-07 at 1.55.36 PM.png
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
Screen Shot 2016-09-07 at 2.01.12 PM.png
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
Screen Shot 2016-09-07 at 2.05.57 PM.png
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
Screen Shot 2016-09-13 at 9.07.16 AM.png
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
Screen Shot 2016-09-13 at 9.12.42 AM.png
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.