Code Monkey home page Code Monkey logo

drunken-sniper's Introduction

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.

drunken-sniper's People

Contributors

leimao avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.