Commit Graph

5605 Commits

Author SHA1 Message Date
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
af5811c33c Lift Cached to widgetry 2020-12-26 14:38:43 -08:00
Dustin Carlino
c3f211ccfd Make it easier to explore a category of amenities. Highlight the buildings, move panels. #393 2020-12-26 13:31:24 -08:00
Dustin Carlino
cff51a46ea Don't draw paths to places >15 mins away. #393 2020-12-24 16:38:40 -08:00
Dustin Carlino
248b922810 Customize walking speed a bit. #393 2020-12-24 16:36:31 -08:00
Dustin Carlino
8beb2d9215 Terminate search for walking after 15 mins, to speed things up. #393 2020-12-24 16:25:50 -08:00
Dustin Carlino
3c27255479 15 min tool: Optionally don't allow walking on shoulders. #393 2020-12-24 15:52:00 -08:00
Bruce
3be45b8221
Add a Variable phase (#433)
* Add a Variable phase

Variable provides a min duration, a delay duration, and an additional duration. The maximum cycle time is min + additional. Once min has been exhausted, if there is demand, the cycle is extended by delay until there isn't any demand or the additional duration has been consumed.

#295
2020-12-24 12:33:47 -08:00
Dustin Carlino
e24b941719 Filling out project history for the last few months 2020-12-23 23:06:04 -08:00
Dustin Carlino
0a25d92e53 Include the intersection geometry in the shared-row export for 3D Street integration 2020-12-22 14:31:12 -08:00
Dustin Carlino
14f692fc39 Turn more code in the importer into config. Ideally we just have code
for all the custom extra import data. #326

Verified there are no changes when importing the affected cities (except
for renaming the original OSM input file for Leeds to match the
geofabrik source)

Woops, and fix updater uploading with the compressed_size_bytes change.
2020-12-22 13:38:29 -08:00
Dustin Carlino
a52777cca4 Fix /data/trip-time-lower-bound API. It was using the full length of the
first and last lane, which is usually not true, and thus over-estimating
time. #392
2020-12-22 10:22:25 -08:00
Dustin Carlino
0fc0b8db65 Distinguish uncompressed/gzipped size in the updater tool. #377 2020-12-21 15:32:09 -08:00
Dustin Carlino
14fad05634 Link to patched Windows build that disables audio. #430 2020-12-21 13:34:38 -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
d0995f5b77 New release, with 15-minute Santa! 2020-12-21 08:03:06 -08:00
Dustin Carlino
b2dcf93b68 Fix links, add trailer [rebuild] [release] 2020-12-20 15:02:12 -08:00
Dustin Carlino
afb04b0c7e Improve the pages for the two 15 min projects... 2020-12-20 14:00:19 -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
be589f7ef4 Switch A/B Street over to the new web loader with a progress bar. Initializing the .wasm may take a little longer, but it's not noticeable, and the progress bar for the large upfront download is really helpful. #377 2020-12-20 11:07:03 -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
34c45e562b Use the table widget to improve 15 min amenity details. #393 2020-12-19 16:43:55 -08:00
Dustin Carlino
0bcf130b80 Lift the generic table to widgetry 2020-12-19 16:06:30 -08:00
Dustin Carlino
fdc1d4b8f9 Add a legend to the 15 min tool. #393 2020-12-19 15:39:35 -08:00
Dustin Carlino
df5b8c07eb Estimate street parking in the 15 min walkshed tool. #393 2020-12-19 15:27:13 -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
Dustin Carlino
799adbbdd4 Fix map loader on web. Remote paths wound up with an extra /, breaking
the deduping between remote and statically bundled files, which broke
one of the map loader panels with duplicate buttons.
2020-12-19 09:51:52 -08:00
Dustin Carlino
3966f10f17 Hunt for more music 2020-12-18 17:19:05 -08:00
Dustin Carlino
77fcd04402 Different music per level 2020-12-18 16:26:39 -08:00
Dustin Carlino
31426db26a Label stores 2020-12-18 15:53:08 -08:00
Dustin Carlino
05f4eca10f Doc tweaks 2020-12-18 15:10:05 -08:00
Dustin Carlino
2823c04338 Finalization flurry...
- Tune colors in the experiment
- Regenerate maps again -- I forgot that the parcel data gets joined in
  a later importer step.
- Add some of the new maps as levels
2020-12-18 14:24:45 -08:00
Dustin Carlino
2baa0fa094 Update links to all the deployed web stuff 2020-12-18 13:02:36 -08:00
Dustin Carlino
23dea95da3 Also deploy the OSM viewer and 15 min tool to the web 2020-12-18 12:36:19 -08:00
Dustin Carlino
9da8fa8e98 Add a section to the book to give details on all of the side projects spun out of A/B Street proper. 2020-12-18 12:16:13 -08:00
Dustin Carlino
0b8c86e2c8 Adjust the threshold for what counts as a straight vs right turn from 10
degrees to 30 degrees. It works around the issue in #428, but it doesn't
solve the root cause there, so the unit test is also adjusted to provide
a way to solve the harder problem.

Regenerated all maps accordingly. Many traffic signals tended to
improve, with a straight turn marked protected, instead of permitted as
a "right turn."
2020-12-18 12:06:16 -08:00
Dustin Carlino
ee0d73847e Add more small Seattle maps for the experiment -- and who knows, maybe also useful for traffic sim
And unbreak the importer, cargo check doesn't build with features! Argh.
2020-12-18 11:00:15 -08:00
Dustin Carlino
631b164cf8 Add a warning when low on time or blood sugar 2020-12-17 15:50:29 -08:00
Dustin Carlino
57ea1b898d Work on Filip's feedback from playtesting:
- larger / more obvious timer
- make it more clear you have to upzone before starting a level
- hide the upzone panel entirely at first
- swap vehicle/upzone panel, so the meters don't suddenly jump position
  when starting the game
- explain upzoning better
2020-12-17 15:09:09 -08:00
Dustin Carlino
d917008f2e Lift SimpleState to widgetry, since it doesn't depend on any details of
the App at all. Use it in the experiment a bit.
2020-12-17 12:23:57 -08:00
Dustin Carlino
c256c5ebee Get a small unit testable repro of #428 2020-12-17 11:11:17 -08:00
Dustin Carlino
42d833ec3f Return an error when a GET param in an API call is missing, instead of crashing 2020-12-17 10:33:49 -08:00
Dustin Carlino
477b14e17d Tune vehicles, levels a little. 2020-12-17 10:26:21 -08:00
Dustin Carlino
e13dd74ab4 Only consider it a store if it sells something edible or quaffable...
and reduce some of the vehicle parameters to make it easier to tune.
2020-12-16 17:57:27 -08:00
Dustin Carlino
3ef1e03279 Quieter music unless actively playing 2020-12-16 17:22:34 -08:00