Pages

Tuesday 11 October 2016

Recap:Games-Tools and Techniques

Recap:Games-Tools and Techniques
1. I have learn't how to read and use coding properly.
2. I have learn't how to create my own game.
3. I have learn't how to explain how to use codes.
4. I have learn't new ideas and ways of coding.

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 then 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 forward 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 the repeat 3 times do tool and fuse that with move forward 2x tool and turn right.
Repeat until target do : Move forward
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, turn right
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 target do: turn right, move forward, turn left, move forward
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 the move forward tool, then use tee if the path to the left too and fuse that wth 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 target do: move forward, 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 repeat 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 Do: if path ahead do else: move forward
Screen Shot 2016-09-13 at 9.04.58 AM.png
while (notFinished()) {
 if (isPathForward()) {
   moveForward();
 } else {
   turnRight();
 }
}
Use the Repeat until target tool then fuse it with the if path ahead do else tool and then fuse it with move forward and turn right.
Repeat until do: if path ahead do else, move forward, if path ahead to the right do else, moveforward, if the path to the right do else, turn right , turn left
Screen Shot 2016-09-13 at 9.12.31 AM.png
while (notFinished()) {
 if (isPathForward()) {
   moveForward();
 } else {
   if (isPathRight()) {
     turnRight();
   } else {
     turnLeft();
   }
 }
}
Use the repeat until target do tool and fuse it with the if the path ahead do else tool and then fuse it with the move forward tool and then fuse it with the if the path ahead to the right do else tool and then fuse it with the turn right and turn left tool.