2019-04-10 22:48:46 +03:00
|
|
|
# A/B Street Instructions
|
|
|
|
|
2019-04-29 06:22:42 +03:00
|
|
|
General disclaimer: This is a very rough demo. The user interface is clunky, and
|
|
|
|
gameplay is not cohesively tied together yet. Please email
|
2019-09-19 20:42:16 +03:00
|
|
|
<dabreegster@gmail.com> or file a Github issue if you hit problems.
|
2019-04-12 21:38:25 +03:00
|
|
|
|
2019-04-17 02:06:45 +03:00
|
|
|
## Installing the game
|
|
|
|
|
2019-04-19 19:46:28 +03:00
|
|
|
The easiest method is to use pre-built binaries. Check
|
|
|
|
https://github.com/dabreegster/abstreet/releases for the latest version, though
|
|
|
|
I'll try to keep these links up-to-date:
|
|
|
|
|
2019-08-27 03:46:03 +03:00
|
|
|
- Linux:
|
|
|
|
https://github.com/dabreegster/abstreet/releases/download/v0.1.9/abstreet_linux.zip
|
2019-04-19 19:46:28 +03:00
|
|
|
- Windows:
|
2019-08-27 03:46:03 +03:00
|
|
|
https://github.com/dabreegster/abstreet/releases/download/v0.1.9/abstreet_windows.zip
|
|
|
|
- Mac (old; I don't have regular access to a Mac to compile):
|
2019-06-07 23:26:35 +03:00
|
|
|
https://github.com/dabreegster/abstreet/releases/download/v0.1.6/abstreet_mac.zip
|
2019-04-18 00:49:51 +03:00
|
|
|
|
|
|
|
### Compiling from source
|
|
|
|
|
|
|
|
To build, you need a Linux-like environment with `bash`, `wget`, `unzip`, etc.
|
|
|
|
You also `osmosis` for the import script. At runtime if you want to use the
|
|
|
|
screen-capture plugin, you need `scrot`.
|
|
|
|
|
2019-09-19 20:42:16 +03:00
|
|
|
1. Install Rust, at least 1.37. https://www.rust-lang.org/tools/install
|
2019-04-18 00:49:51 +03:00
|
|
|
|
|
|
|
2. Download the repository:
|
|
|
|
`git clone https://github.com/dabreegster/abstreet.git`
|
|
|
|
|
|
|
|
3. Download all input data and build maps. Compilation times will be very slow
|
2019-09-19 21:44:52 +03:00
|
|
|
the first time.
|
|
|
|
`cd abstreet; ./import.sh && ./precompute.sh --release --disable_psrc_scenarios`.
|
|
|
|
Alternatively, you could seed the entire `data` directory from this
|
2019-09-21 18:22:28 +03:00
|
|
|
[9/21/2019 copy](https://drive.google.com/open?id=1tpHuojh1e14ZQLBhjLWf_rB6dLKy-hV7).
|
2019-04-18 00:49:51 +03:00
|
|
|
|
|
|
|
If you build from source, you won't have the convenient launcher scripts
|
|
|
|
referenced below. Instead:
|
|
|
|
|
|
|
|
```
|
2019-09-07 23:09:09 +03:00
|
|
|
cd game
|
2019-04-29 06:22:42 +03:00
|
|
|
cargo run --release
|
2019-04-18 00:49:51 +03:00
|
|
|
```
|
2019-04-17 02:06:45 +03:00
|
|
|
|
|
|
|
## Running the game
|
|
|
|
|
2019-04-22 03:45:53 +03:00
|
|
|
Start the game by running `play_abstreet.sh` or `play_abstreet.bat`. On Windows,
|
2019-04-12 21:38:25 +03:00
|
|
|
you'll probably get a warning about running software from an unknown publisher.
|
|
|
|
|
|
|
|
General controls:
|
|
|
|
|
|
|
|
- Click and drag to move
|
|
|
|
- Scroll wheel or touchpad to zoom
|
2019-04-29 06:22:42 +03:00
|
|
|
- Follow on-screen controls otherwise. You can also try hovering over an object
|
|
|
|
and right-clicking to see more actions. (These controls will show up more
|
|
|
|
clearly soon.)
|
2019-04-10 22:48:46 +03:00
|
|
|
|
|
|
|
## Data source licensing
|
|
|
|
|
|
|
|
A/B Street binary releases contain pre-built maps that combine data from:
|
|
|
|
|
|
|
|
- OpenStreetMap (https://www.openstreetmap.org/copyright)
|
|
|
|
- King County metro
|
|
|
|
(https://www.kingcounty.gov/depts/transportation/metro/travel-options/bus/app-center/terms-of-use.aspx)
|
|
|
|
- City of Seattle GIS program
|
|
|
|
(https://www.opendatacommons.org/licenses/pddl/1.0/)
|
|
|
|
- https://github.com/seattleio/seattle-boundaries-data
|
|
|
|
(https://creativecommons.org/publicdomain/zero/1.0/)
|
|
|
|
- DejaVuSans.ttf (https://dejavu-fonts.github.io/License.html)
|
2019-06-25 23:01:32 +03:00
|
|
|
- Puget Sound Regional Council
|
|
|
|
(https://www.psrc.org/activity-based-travel-model-soundcast)
|
2019-09-11 01:44:07 +03:00
|
|
|
- http://www.textures4photoshop.com for textures
|