This is my work I did for digitech last term. In this table of work, we played learning games to try and figure out the tools and techniques needed for gaming. We then wrote down what had had learnt on the table. Hope you enjoy!
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
| |
In run
Move Forward
|
moveForward();
moveForward(); |
The move forward tool enables the object or character to move forward
| |
When run
Move forward
|
moveForward();
moveForward(); moveForward(); |
The move forward tool enables the object or character to move forward, and turn right
| |
When run
Move forward
Turn Right
|
moveForward();
moveForward(); turnRight(); moveForward(); |
The move forward tool enables the object or character to move forward
The Right tool enables the object or character to move right
| |
When run
Move forward
Turn Left
Move Forward
Turn Right
Move Forward
|
moveForward();
turnLeft(); moveForward(); turnRight(); moveForward(); |
The move forward tool enables the object or character to move forward
The left tool enables the object or character to move left
| |
When run
Turn Right
Move Forward
Turn Left
Move Forward
Move Forward
Turn Left
Move Forward
|
turnRight();
moveForward(); turnLeft(); moveForward(); moveForward(); moveForward(); turnLeft(); moveForward(); |
The repeat tool enables the object or character to repeat the forward movement tool
| |
When run
Repeat 5 times - Move Forward
|
for (var count = 0; count < 5; count++) {
moveForward(); } |
The right tool turns the object or character facing right of a repeat of forward movement 5 times
| |
When Run
Turn Right
Repeat 5 times - Move Forward
|
turnRight();
for (var count = 0; count < 5; count++) { moveForward(); } |
The move forward tool allows the object or character to move forward with the left tool also allowing the object to turn left. Repeating the forward movement makes the object/character to move forward 5 times
| |
When Run
Move Forward
Turn Left
Repeat 5 Times - Move Forward
|
moveForward();
moveForward(); moveForward(); moveForward(); turnLeft(); for (var count = 0; count < 5; count++) { moveForward(); } |
The repeat tool it allows movement to be repeated 3 times
| |
When Run
Repeat 3 times - move forward - turn right
|
for (var count = 0; count < 3; count++) {
moveForward(); moveForward(); turnRight(); } |
The technique enables the object/character to repeat the move forward tool until the target is hit
| |
When Run
Repeat until pig Reached - Move Forward
|
while (notFinished()) {
moveForward(); } |
The technique enables the object/character to repeat the move forward tool and turning left tool to hit the target
| |
When Run
Repeat Until Pig Reached - Move forward
|
while (notFinished()) {
moveForward(); moveForward(); turnLeft(); } |
The technique enables the object/character to repeat the move forward tool and turning left tool also right tool
| |
When run
Repeat UNtil Pig Reached - Move forward, Turn left, turn right
|
while (notFinished()) {
moveForward(); turnLeft(); moveForward(); turnRight(); } |
The technique enables the object/character to repeat the move forward tool and turning left tool also right tool
| |
Repeat until done
Turn Right
Move Forward
Turn Left
|
while (notFinished()) {
turnRight(); moveForward(); turnLeft(); moveForward(); } |
The technique enables the object or character to repeat the following path and tool.
If path to the left enables the object or character to always take the path to the left and keep moving forward with the move forward tool
| |
Repeat until done
Move forward
iF path to the left do
Turn left
|
while (notFinished()) {
moveForward(); moveForward(); if (isPathLeft()) { turnLeft(); moveForward(); while (notFinished()) { executionInfo.checkTimeout(); if (executionInfo.isTerminated()){return;} moveForward(); } } } |
The technique enables the object/character to move forward to repeat until the target is reached.
If path to the right enables the object to take the path to the right always turning right.
Move forward tools enables the object or character to move forward
| |
Repeat until done
Move forward
If path to the right do
Turn right
|
while (notFinished()) {
moveForward(); if (isPathRight()) { turnRight(); } } |
The repeat until technique allows the tools you have put into, to repeat until the target is hit.
Move forward tools enables the object or character to move forward.
If path to the left allows the object or character to always take the path to left and the turn left tools to turn left
| |
Repeat until do
Move forward
If path to the left
Turn left
|
while (notFinished()) {
moveForward(); if (isPathLeft()) { turnLeft(); } } |
Repeat until target is hit enables the tools to repeat until the target is hit
If path to the right allows the object/character to take the path to the right with the turn right tool to turn right
| |
Repeat until do
Move forward
If path to the right do
Turn right
|
while (notFinished()) {
moveForward(); if (isPathRight()) { turnRight(); } } |
Repeat until target is hit enables the tools to repeat until the target is hit
If path ahead enables the object/character with move forward tool to keep moving forward ahead of the path turning left with the turn left tool
| |
Repeat until do
If path ahead do else
Move foward
Turn left
|
while (notFinished()) {
if (isPathForward()) { moveForward(); } else { turnLeft(); } } |
Repeat until target is hit enables the tools to repeat until the target is hit
If path ahead enables the object/character with move forward tool to keep moving forward ahead of the path turning right with the turn right tool
| |
Repeat until target
Move forward
Turn right
|
while (notFinished()) {
if (isPathForward()) { moveForward(); } else { turnRight(); } } |
Repeat until target is hit enables the tools to repeat until the target is hit
If path ahead enables the object/character with move forward tool to keep moving forward ahead of the path
If path to the right enables the object/character to take the object to the right path with the tools, turn right turning right and turn left turning left.
| |
Repeat until target
Move forward
Turn right
|
while (notFinished()) {
if (isPathForward()) { moveForward(); } else { turnRight(); } } |
The repeat tool enables the object or character to repeat the forward movement tool
| |
Repeat until target
Move forward
Turn right
Turn left
|
while (notFinished()) {
if (isPathForward()) { moveForward(); } else { if (isPathRight()) { turnRight(); } else { turnLeft(); } } } |
The right tool turns the object or character facing right of a repeat of forward movement 5 times
|