A GALAGA tutorial: C/libakgl engine with akbasic embedded as the enemy-behavior engine #37

Open
tachikoma wants to merge 14 commits from galaga-tutorial into main
Showing only changes of commit 47c6be58c5 - Show all commits

View File

@@ -685,9 +685,9 @@ seconds asks for fifty frames a second.
### Why `GOTO` rather than `DO ... LOOP`
A `DO ... LOOP` around the frame would read better, and it is not usable here: **a `GOTO`
that jumps out of a `FOR` or a `DO` does not release the loop's scope.** There are 32
that jumps out of a `FOR` or a `DO` does not release the loop's scope.** There are 12
scopes, so a game that leaves its main loop once per lost life stops on the
thirty-second one:
twelfth one:
```basic
N# = 0
@@ -700,7 +700,7 @@ PRINT "SURVIVED " + N#
```
```output
? 3 : PARSE ERROR Environment pool exhausted at line 3 (32 in use)
? 3 : PARSE ERROR Environment pool exhausted at line 3 (12 in use)
```