Stacker
Stacker is an arcade game where the goal is to build a stack of blocks as high as possible.
At each level, a row of blocks moves sideways and the user has to lock the blocks in place (using the SPACE key) and timing it so that it aligns with the previous level. Blocks that don't align are lost and if no blocks aligned at all, the player loses.
As the levels increase, the blocks move faster making timing even more critical.
This program was written in the Jack language for project 9 in the nand2tetris course.
Install
Download the software suite from nand2tetris. The compiler and emulator are required as Jack programs run on the Hack hardware platform.
Build & Execution
- In the command line run:
JackCompiler.bat
VMEmulator.bat
replacing .bat
with .sh
for Mac/Linux
- In the menu, goto
File > Load Program
and choose the directory containing the vm files. - Click yes in the confirmationg dialog
- In the toolbar, choose
No animation
in theAnimate
dropdown - In the toolbar, click the double right arrows (3rd icon)
- Play the game!