One thing I didn't know about Alice 3 is that you can make your own procedures, functions, and properties in your Alice program. Note that the functions and procedures will only be visible to any class that extends to to selecting class to work with. Procedures are functions that doesn't return any value, but can provide arguments. The only thing is that is how to make your own classes like SNode extends SScene. One example is this convertBoolToString boolean: ??? . For those when working with extensions, the extension for an Alice 3 program is .a3p and an Alice 3 class file is .a3c. By the way, have fun with Alice 3.
this convertBoolToString with arguments Boolean boolean
if useCaps
if boolean
"TRUE"
else
"FALSE"
else
if boolean
"true"
else
"false"
No comments:
Post a Comment