Coder Social home page Coder Social logo

lunpus's Introduction

Hunt the Lunpus

A hand-held 7-segment display game based on the ATtiny84.

lunpus

Based on the old Hunt the Wumpus text-based computer game originally published as BASIC source code in Creative Computing. The original is based on a dodecahedron maze but I first came across it as a grid-based cave game on the TI-99/4A we had as kids.

This handheld version has been renamed Hunt the Lunpus for obvious reasons once you consider the constraints of the display ๐Ÿ˜‰

Video of the game in action!

Rules

You find yourself in a dark cave with the elusive Lunpus! You have your trusty bow and four arrows, let's see if you can defeat the Lunpus before it eats you!

There are dangers in the cave:

  • Superbats will pick you up and drop you into a random location.
  • Slime Pits are certain death if you accidently stumble upon one!
  • The Lunpus may eat you if you bother its sleep.

You can only see walls that are next to you, however the dangers

  • Blinking decimal points will warn you there is a Buperbat nearby.
  • The sound of wind will warn you there is a Slime Pit nearby.
  • The sound of snoring will warn you The Lunpus is nearby.

You only have 4 arrows, use them wisely! Once you have shot them all you lose. The Lunpus eventally finds and eats you.

Directions

  • Press ARROW to start a game.
  • Use the direction buttons (NORTH, SOUTH, EAST, WEST) to move around the cave. Walls appear as glowing segments.
  • Press ARROW to show you how many arrows you have left. Press a direction to fire one, otherwise press ARROW again to cancel.
  • Once you win (or more likely die) press ARROW again to start a new game.

Flashing the ATtiny84

Requirements

Once these are installed, wire up your ATtiny with a programmer. I use the AVR Pocket Programmer. If you use something different you will need to change settings in the Makefile.

First set the fuses to get the proper 8 MHz internal clock:

make set_fuses

Once that is successful you can flash the chip:

make ispload

The ispload command flashes the program and will also flash the EEPROM which is where all the music, text and "graphics" reside. The 8K flash memory is almost entirely taken up by the program (8146 bytes 99.4% Full) and the EEPROM is alsmot full as well (465 bytes 90.8% Full).

PCB

The pcb directory contains EasyEDA project files that define the schematic and PCB construction. Also in this directory is the latest generation of Gerber files for fabracation.

Schematic

Schematic_wumpus_2022-07-12

intro screen

License

Creative Commons License
Lunpus by Doug McInnes is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

lunpus's People

Contributors

dmcinnes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

marciopocebon

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.