Skip to content

Commit

Permalink
more game development tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryMichie committed Jul 18, 2024
1 parent 470abef commit 0c794be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/src/manual/-Game Development Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ while(counter < 5);
as we had done with our while loop, the code would have only counted to 4, since the counter gets updated after it speaks its current value.

#### For Loops
One of the most common types of loops is something similar to our counter example from earlier in this chapter.
One of the most-used types of loop is something similar to our counter example from earlier in this chapter.

There are a lot of lines here which for loops can compress into just one line; they make code easier to write as well as read later on.

Expand Down Expand Up @@ -618,6 +618,7 @@ void main(){
wait(1000);
}
}
```

This example will yield the same results as the previous one, but it does it in a way which is more concise. Pretty code is very important for your sanity!

Expand Down

0 comments on commit 0c794be

Please sign in to comment.