leimao / Drunken-Sniper

Modified 64.0 Game Implemented Using Jack Language and Run in Nand2Tetris VM Emulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drunken Sniper

Lei Mao

University of Chicago

Introduction

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.

Dependencies

Files

.
├── 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

Manual

Controls

Start Game

Space

Shoot

, , ,

What To Do

Kill enemy and don't kill friend. Enemy is solid box and friend is void box.

When You Win

You can never actually win. Kill as many enemies as you can!

When You Lose

You killed a friend, or you were killed by an enemy.

Recommendation

It is also recommended that you listen to this song while you are playing.

Usage

Compile Game

Use JackCompiler to compile the source code to vm code.

./JackCompiler.sh ../../src/

Run Game

Open VMEmulator.

./VMEmulator.sh

In 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.

References

Here is a list of other games programmed in Jack language.

To-Do List

  • Allow users to choose level of difficulties.

About

Modified 64.0 Game Implemented Using Jack Language and Run in Nand2Tetris VM Emulator


Languages

Language:HTML 67.9%Language:Shell 18.4%Language:Batchfile 13.6%