Lei Mao
University of Chicago
Drunken Sniper is a game modified from the popular idle game 64.0. It was written in Jack Language and built from scratch. It runs on Nand2Tetris's VM Emulator.
.
├── nand2tetris
│ └── tools
│ ├── Assembler.bat
│ ├── Assembler.sh
│ ├── bin
│ ├── builtInChips
│ ├── builtInVMCode
│ ├── CPUEmulator.bat
│ ├── CPUEmulator.sh
│ ├── HardwareSimulator.bat
│ ├── HardwareSimulator.sh
│ ├── JackCompiler.bat
│ ├── JackCompiler.sh
│ ├── OS
│ ├── TextComparer.bat
│ ├── TextComparer.sh
│ ├── VMEmulator.bat
│ └── VMEmulator.sh
├── README.md
└── src
├── Arena.jack
├── Arena.vm
├── Arrow.jack
├── Arrow.vm
├── InfoBoard.jack
├── InfoBoard.vm
├── Main.jack
├── Main.vm
├── Player.jack
├── Player.vm
├── Random.jack
├── Random.vm
├── ScoreBoard.jack
├── ScoreBoard.vm
├── Target.jack
└── Target.vm
Space
←, →, ↑, ↓
Kill enemy and don't kill friend. Enemy is solid box and friend is void box.
You can never actually win. Kill as many enemies as you can!
You killed a friend, or you were killed by an enemy.
It is also recommended that you listen to this song while you are playing.
Use JackCompiler to compile the source code to vm code.
./JackCompiler.sh ../../src/Open VMEmulator.
./VMEmulator.shIn the GUI, load the game by clicking File -> Load Program -> select src folder -> click Load Program button. Click Yes on the confirmation message.
Slide the speed scroll bar to Fast and choose No animation under the Animate tab.
Click Run -> Run, or simply just press F5 to run the game.
Here is a list of other games programmed in Jack language.
- Allow users to choose level of difficulties.

