Originally programmed in Scratch at https://github.com/maxdemaio/batCatcher
- Game starts
- Bat moves around randomly
- If the square touches a bat, it switches caught to true
- Game ends when you press the
0key or the bat is caught
-
Put your program in directory, say
Xxx. This would be a set of one or more Jack classes—each stored in a separate ClassName.jack text file. Along with all your program files, copy all the files from tools/OS into theXxxdirectory too (set of.vmfiles). -
Compile your program using the supplied Jack compiler. This is best done by applying the compiler to the name of the program directory (Xxx). This will cause the compiler to translate all the .jack classes to corresponding .vm files. If a compilation error is reported, debug the program and recompile the
Xxxdirectory until no error messages are issued. -
At this point the program directory should contain three sets of files: (i) your source
.jackfiles, (ii) the compiled.vmfiles, one for each of your.jackclass files, and (iii) additional.vmfiles, comprising the supplied Jack OS.