ollie / highway

A game, where you can drive on a lonely road, alone...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning
=======
This game is not finished!

Installation
============
$ git clone git://github.com/ollie/highway.git
$ cd highway
$ bundle install

Running the game
================
$ ruby init.rb --help
Options:
  --map, -m <s>:   Which map to load? Defaults to map/001.txt. (Default: maps/001.txt)
  --pos, -p <s>:   Start at which position? For example "19,29" starts at row 19 column 29.
     --help, -h:   Show this message

$ ruby init.rb                                 # Start from the beginning
$ ruby init.rb -m maps/002.txt                 # Start in level 2
$ ruby init.rb --map=maps/002.txt              # Same thing
$ ruby init.rb -p 10,20                        # Start from the beginning on row 10 column 20
$ ruby init.rb --pos=10,20                     # Same thing
$ ruby init.rb -m maps/002.txt -p 15,10        # Start in level 2 on row 15, column 20
$ ruby init.rb --map=maps/002.txt --pos=15,10  # Same thing

Note: GitHub breaks the ASCII image.
┌─┬──────────────────────────────────────────┐
│ │                 Level 1                  │
│ │012345678901234567890123456789012345678901│
├─┼──────────────────────────────────────────┤
│0│       │                                  │
│1│       │                                  │
│2│       │                                  │
│3│       │                                  │
│4│       │                                  │
│5│       │                                  │
│6│       │                     ┌────────────│
│7│       │                     │            │
│8│       │                     │            │
│9│       │                     │            │
│0│       └────────▒────────────┤            │
│1│                             │            │
│2│                             │            │
│3│                             │            │
│4│                             │            │
│5│                             ▓            │
│6│                             │            │
│7│                             │            │
│8│                             │            │
│9│                             │            │
└─┴──────────────────────────────────────────┘
Fuel: 100 %
Position: [15, 29]
Which way to go? [wsadq]:

TODO
====
Add meta info to maps
 * So they know about each other.
 * Define starting position.
Refactor ugly code.
Use Curses?
Print legend?

Maps
====
x - Road
S - Fuel station

About

A game, where you can drive on a lonely road, alone...


Languages

Language:Ruby 100.0%