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(); |
I pressed the ‘move forward’ button for the red angry bird to move forward.
| |
Move forward
|
moveForward();
moveForward(); moveForward(); |
In Order for the red angry bird to move forward I dragged the move forward button underneath another move forward button for it to get to its final destination.
| |
Move forward
turn right
move forward
|
moveForward();
moveForward(); turnRight(); moveForward(); |
Moving forward helps the red angry bird to move forward and then move the turn right movements enables the angry bird to turn to the right and then you put a move forward movement for it to go straight to the green pig.
| |
Move forward,
Turn left,
Move forward,
Turn right,
Move forward,
|
moveForward();
turnLeft(); moveForward(); turnRight(); moveForward(); |
This enables the angry bird to move forward, then you use the turn left movement for it to turn left, and then when you want the angry bird to move forward then you put in the move forward button then you turn right and move forward.
| |
Turn right
Move forward
Turn left
Move forward
|
turnRight();
moveForward(); turnLeft(); moveForward(); moveForward(); moveForward(); turnLeft(); moveForward(); |
You use the turn right tool first then use the move forward tool for the character to move forward, then you add in the turn left button for it to turn left, you then use 3 move forward buttons for it to step forward 3 times. Then to finish it off you then turn left and use the move forward button for it to get to the target.
| |
Repeat 5 times do,
Move forward,
|
for (var count = 0; count < 5; count++) {
moveForward(); } |
To save movements you can just use the repeat 5 times tab that will get you to move forward times.
| |
Turn right
Repeat 5 times
Move forward
|
turnRight();
for (var count = 0; count < 5; count++) { moveForward(); } |
You first turn right and then you use the repeat 5 tools, and add move forward into that tool for it to move forward 5 times.
| |
Repeat 4 times do
Move forward
Turn left
Repeat 5 times do
Move forward
|
for (var count = 0; count < 4; count++) {
moveForward(); } turnLeft(); for (var count2 = 0; count2 < 5; count2++) { moveForward(); } |
You move forward 4 times using the repeat 4 times, you can change the number of how long you want the movement to las for, you then use the turn left button once, then the repeat 5 times for it to move 5 times forward to its target.
| |
Repeat 2 times do
Move forward
Turn right
Repeat 3 times
Move forward
|
You repeatedly move forward 2 times, you then turn right, and 2x repeatedly move forward, then you use the turn right tool for it to turn right once and then repeat the forward movement 3 times.
| ||
Repeat 3 times
Move forward
Move forward
Turn right
|
for (var count = 0; count < 3; count++) {
moveForward(); moveForward(); turnRight(); } |
In this level you have to repeat these movements 3 times over and over again until you get to the target, but you add in 2 move forward button, and then to finish it off you turn right.
| |
Repeat until do
Move forward
|
while (notFinished()) {
moveForward(); } |
Repeatedly move forward until you get to the target.
| |
Repeat until do
Move forward
Move forward
Turn left
|
while (notFinished()) {
moveForward(); moveForward(); turnLeft(); } |
You move forward 2 times the turn left, and this movement will repeat until it gets to it’s target.
| |
Repeat until do
Move forward
Turn left
Move forward
Turn right
|
while (notFinished()) {
moveForward(); turnLeft(); moveForward(); turnRight(); } |
You use te repeated until it gets to its target, you first move forward, then you add in the turn left button, and then to make it go forward you add in the move forward button, and then turn right until it gets to its target and they do this continuously.
| |
Repeat until do
Turn right
Move forward
Turn left move forward
|
while (notFinished()) {
turnRight(); moveForward(); turnLeft(); moveForward(); } |
In the repeated tool you add in turn right, move forward, turn left and then move forward, these movements will repeat until the character got the target.
| |
Repeat until do
Move forward
If path to the left
Turn left
|
while (notFinished()) {
moveForward(); if (isPathLeft()) { turnLeft(); } } |
You use the repeat tool for the movements to repeat, in the repeat tool you put in move forward, and then you add if path to the left, and use the movement turn left. This will repeat until it gets to its target.
| |
Repeat until do
Move forward
If path to the right
Turn right
|
while (notFinished()) {
moveForward(); if (isPathRight()) { turnRight(); } } |
The repeated movement is also used for this level as well, move forward is place in the repeated tool first and then you add the path to the right in aswell and then the turn right tool for it to turn right, and the movements will repeat.
| |
Repeat until do
Move forward
If path to the left do
Turn left
|
while (notFinished()) {
moveForward(); if (isPathLeft()) { turnLeft(); } } |
You add the repeat button first and then you add the move forward button in the repeat tool, then you add the tool that says path to the left, and in that tool you add the turn left button which helps the character to continuously repeat these moves until it gets to it’s target.
| |
Repeat until do
Move forward
If path to the right do
Turn right
|
while (notFinished()) {
moveForward(); if (isPathRight()) { turnRight(); } } |
The tools repeats until it gets to the target. The tool that says the path to the right or to the left enables the character to move forward on it’s path. You can also put in an tool that can turn right for it to turn right and keep on moving forward.
| |
Repeat until do
If path ahead do
Move forward
Turn left
|
while (notFinished()) {
if (isPathForward()) { moveForward(); } else { turnLeft(); } } |
The repeat button makes the character repeat it;s moves over and over again.
| |
Repeat until do
If path ahead do
Move forward
Turn right
|
while (notFinished()) {
if (isPathForward()) { moveForward(); } else { turnRight(); } } |
The repeat tool helps the character continue the moves from moving forward to turning right.
| |
Repeat until do
If path ahead do
Move forward
If path to the right
Turn right
Else
Turn left
|
while (notFinished()) {
if (isPathForward()) { moveForward(); } else { if (isPathRight()) { turnRight(); } else { turnLeft(); } } } |
The right tool turns the character to the right and the move forward tool makes it move forward continuously.
|
Monday, October 10, 2016
Recap: Games - tools and techniques
I have learnt so many things like how to create a game by using tools that will enable the game to work, or for the character or object to function during the game. When I unlocked the game tools it then lead me to different codes of how these movements work.
Labels:
Coding,
Digitech,
Gaming,
Javascript
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment