Dustin Carlino
e99def9124
Switch all error handling to anyhow. Nothing consumes our code as a
...
library yet, so this is a step forward from string errors. Manually
tested how errors show up (including the nice with_context bit).
2021-01-05 11:35:03 -08:00
Dustin Carlino
cd7dca87d7
Fix web build after rand upgrade. Unfortunately I think this has to happen in all of the binary crates individually: https://docs.rs/getrandom/0.2.1/getrandom/#indirect-dependencies
2021-01-05 11:12:03 -08:00
Dustin Carlino
bfa208ce6a
Parameterize widgetry on a way to read SVG files. This is one of the last steps to remove the dependency on abstio. #253
2021-01-04 09:53:24 -08:00
Dustin Carlino
d529ae2e5c
Upgrade usvg and rand
2021-01-04 09:19:54 -08:00
Dustin Carlino
2945913fb3
Upgrade rand
2021-01-03 19:48:03 -08:00
Dustin Carlino
5c04923dff
Split abstio crate out from abstutil. #253
...
widgetry, geom, and abstutil may wind up on crates.io in some form to
let other projects use widgetry. abstio has A/B Street-specific tricks
for reading data on native/web. Note widgetry still depends on abstio,
will figure out how to clean that up next.
2021-01-02 10:28:00 -08:00
Dustin Carlino
f6f5f49329
Add WASD alternate santa controls for someone with broken arrow keys.
2020-12-29 19:37:54 -08:00
Dustin Carlino
32a3159d19
Express AmenityType as a proper enum.
2020-12-28 12:18:29 -08:00
Dustin Carlino
f8ac0fc96b
Remember the upzoned buildings, and add a button to clear the choices. #431
2020-12-26 20:10:17 -08:00
Dustin Carlino
f24a77e995
Disable audio on Windows, and clarify the game isn't for mobile. #430 [rebuild] [release]
2020-12-21 10:25:58 -08:00
Dustin Carlino
c1de1678b7
Record the path a player takes, and display that afterward
2020-12-20 12:58:11 -08:00
Dustin Carlino
ab19696e01
Require flipping a flag in the JSON before allowing level modding. Otherwise, it'll be impossible to push out updates to the web version for anybody who's already got the local storage written.
2020-12-20 11:27:30 -08:00
Dustin Carlino
20ff5150c2
Also count intersections adjacent to bike/bus lanes as boost-worthy, so
...
it's not choppy as players boost down a long bike corridor
2020-12-19 19:58:36 -08:00
Dustin Carlino
677cf4f209
Merge the center panels into the ones on the right, which is especially helpful on high DPI screens.
2020-12-19 19:56:25 -08:00
Dustin Carlino
d434e75cfb
Filip caught a major bug -- deliveries were still different when low on energy, whoops!
2020-12-19 19:40:30 -08:00
Dustin Carlino
3009756497
Stop procrastinating on tuning...
2020-12-19 18:05:46 -08:00
Dustin Carlino
ab92a387f2
Allow modding the experiment, and fix the --dev unlock_all functionality
2020-12-19 15:12:36 -08:00
Dustin Carlino
6642c6e1a9
Rename the experiment crate in preparation for a Monday release
2020-12-19 10:01:28 -08:00