Coder Social home page Coder Social logo

rogue_game's Introduction

Commands

Help: ‘?’: show the different commands in the info section of the display

Help ‘H’ give more detailed information about the specified command in the info section of the display.

End game ‘E’ <Y | y>: end the game

Basic Command

Move commands are the vi/vim navigation keys.

h: move left 1 space.

l: move right 1 space. Note that this is a lower case el, l, not an upper case i.

k: move up 1 space

j: move down 1 space

Move commands, processed by the Player

i: inventory -- show pack contents

c: take off/change armor

d: drop item from pack"

p: pick up item under player and put into the pack"

r : read the scroll which is item number in pack

t: take out weapon from pack

w: take out the armor which is item number in the pack and put it on

Representing Keys of the Characters

Creatures

We will have 3 kinds of monsters and a player.

‘T’: Trolls

‘S’: Snakes

‘H’: Hobgoblins

‘@’: Player

Items

")": A weapon (i.e, a sword in our game)

"]": An armor

"?": A scroll

Dungeon

The dungeon consists of Rooms and Passages. Rooms consist of

‘X’: walls (which are not traversable)

‘.’: Floors (which are traversabl)

‘#’: Passages consist of passage floors

‘+’: Passages junctions, which is where the passage floor runs into a room wall

Run the Program

To compile the code: g++ -Wall -g -std=c++11 -I /usr/local/Cellar/xerces-c/3.2.3/include/ -L /usr/local/Cellar/xerces-c/3.2.3/lib/ ./*cpp -o XMLExample -lxerces-c -lcurses

To execute the code: ./XMLExample "name of file"

rogue_game's People

Contributors

shaochiehlien avatar

Stargazers

 avatar

Watchers

James Cloos 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.