-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ch 12: Adapt Syntax Definitions #36
Comments
I wonder whether it should be or "" in all cases, for consistency. The parameter has to be a value, i.e., a variable or dictionary word, etc. |
How would the syntaxes become then? I'm not quite sure where the empty
|
Actually, you can LoadPicture("name") without specifying the resource file, in which case it will use the last-used resourcefile. In terms of optional arguments: PlayMusic is PlayMusic(resourcefile, songname, volume[, loop[, force]]), and (both from the library). Actually, looking at the source code, volume is also an optional argument, resulting in regular (full) volume playback. |
In "§12.3. Sound and Music", amend the syntax definitions of `PlaySound` and `PlayMusic` (see #36): * Add missing `<volume>` parameter. * Amend parameters optionality.
Ah! So the So, I've updated only the syntax definition of
I've also peeked at Probably the missing parameter was due to an older library version being used at the time the chapter was written.
So, if I've understood correctly, the I've also updated If you can confirm that everything is fine I can close the issue and mark the changes as approved. |
I think that's right, yes. (And also the part about this probably being based on an earlier library version. That would require some more archaeology to determine, but it's a good guess.) |
CHANGES.md
.$12.2
LoadPicture()
andPictureinText()
In §12.2. Pictures edited the syntax definition:
to make it consistent with the other syntax definitions:
$12.3
PlaySound()
andPlayMusic()
And, in §12.3. Sound and Music, the the syntax definition:
was edited to make it consistent with the other syntax definitions:
The text was updated successfully, but these errors were encountered: