Commit Graph

5741 Commits

Author SHA1 Message Date
Dustin Carlino
524f42ab61 Make the title screen more legible, add full credits. [rebuild] 2020-12-15 13:43:33 -08:00
Dustin Carlino
54eee6d3e4 Clarify instructions on the level prep screen and mark the start. 2020-12-15 12:45:08 -08:00
Tobias
551d28b3df
Update new_city.md (#427)
"will will" => "will"
2020-12-15 12:38:26 -08:00
Dustin Carlino
16392a461f Refactor: GeomBatch::load_svg directly takes EventCtx or GfxCtx. The prerender struct should ultimately not be exposed outside of widgetry. 2020-12-15 11:44:58 -08:00
Dustin Carlino
02dd3613cd Refactor: Rename txt.render_to_batch to txt.render_autocropped, and make
it take EventCtx or GfxCtx
2020-12-15 11:35:40 -08:00
Dustin Carlino
524ea30faa Fix inactive button style, by applying layouting hints in isolation and
then drawing the resulting batch. Before, the layouting hints caused the
inactive "buttons" to stretch out horizontally.
2020-12-15 11:08:00 -08:00
Dustin Carlino
271c1f5a4e More clear upzoning UI 2020-12-15 10:49:36 -08:00
Dustin Carlino
5aecff3b9e Regularly import Salzburg. #366 2020-12-15 06:02:06 -08:00
Michael Kirk
375e0caeb8
integrate census scenario (#426)
#424
2020-12-14 20:27:57 -08:00
Michael Kirk
8b9b3ce2b1
census areas import (#425)
#424
2020-12-14 17:48:47 -08:00
Dustin Carlino
3c2c3cda5a Output lane width as feet in the Streetmix export, not meters.
Also few unrelated tiny wording changes in the experiment
2020-12-14 16:13:32 -08:00
Dustin Carlino
f6db70b0e5 Nicer panel for picking a vehicle before a level 2020-12-14 16:02:18 -08:00
Dustin Carlino
4d057cb74f Improve the out-of-energy arrow:
- point to the driveway, not the building center
- scale arrow length so it doesn't overshoot where we're supposed to go
- explicitly say to go refill from a store
2020-12-14 15:03:22 -08:00
Dustin Carlino
2abf87c1a8 More useful results screen, letting the player strategize before the next attempt 2020-12-14 09:19:32 -08:00
Dustin Carlino
67081a77ea Improve the game over transition 2020-12-13 19:49:22 -08:00
Dustin Carlino
58e705a489 new release 2020-12-13 19:06:48 -08:00
Dustin Carlino
32f7b840e7 Try caching builds again on mac [rebuild] [release] 2020-12-13 16:50:14 -08:00
Dustin Carlino
aead2e3058 Don't animate the sprite while not moving [rebuild] 2020-12-13 16:12:26 -08:00
Dustin Carlino
edd3e11f75 Count the number of people in the isochrone. #393 2020-12-13 13:34:19 -08:00
Dustin Carlino
7ffa7f73f8 - Tune sprite size
- Fix duplicate unlocked vehicles
- Tune the zoom in-game
- Distinguish goal for each level, vs max possible score
- New time left panel
2020-12-13 12:44:43 -08:00
Dustin Carlino
e180352f77 More steady boost while actively on a bike lane, and delete the remnants
of the other movement style
2020-12-13 11:23:05 -08:00
Dustin Carlino
c715c9dcc0 Track direction we're moving on the road, use to fix up angles 2020-12-13 10:55:24 -08:00
Dustin Carlino
1e9e23dfcb Actually, way simpler approach: keep the old manual movement, but when
we're on a road, just snap to the center line
2020-12-12 21:45:15 -08:00
Dustin Carlino
f42d1bbe95 Map arrow keys to an intended angle of the next road to pick 2020-12-12 21:18:17 -08:00
Dustin Carlino
de129e2e8e Improve that movement style by ordering choices by angle 2020-12-12 19:34:54 -08:00
Dustin Carlino
b3ce4f89a3 Prototype a different snap-to-the-road movement style. Temporarily
disables the other controls, very gross code, slow implementation, but
start to get the idea across.
2020-12-12 18:27:35 -08:00
Dustin Carlino
3b9246860a Upgrade winit and glutin. No noticeable changes. [rebuild] 2020-12-11 20:47:00 -08:00
Dustin Carlino
6c3bd13874 Get that title screen closer to Figma. 2020-12-11 14:15:28 -08:00
Dustin Carlino
607a8757dd Use widgetry to handle quitting things, so we don't just blow up on the
web.
2020-12-11 13:18:20 -08:00
Michael Kirk
5c09e24225
Correlate some more activities with OSM tags. (#423)
Thanks to Tom Skinner (@trskinner) for the patch!
2020-12-10 21:55:56 -08:00
Dustin Carlino
634b6ad375
Get more pieces of popdat working: (#421)
- adapt the Berlin logic for disaggregating people to buildings
- start some person -> activity -> schedule mappings
- clean up all the unused var warnings
2020-12-10 16:44:42 -08:00
Michael Kirk
d0f093d95a
fix compile error (#420) 2020-12-10 15:47:00 -08:00
Dustin Carlino
fb9635e8c8
Copy some pieces of the proletariat robot model into the new popdat pipeline: (#419)
- mode choice
- going off-map when there's no building on-map to satisfy a particular
  activity
2020-12-10 14:51:36 -08:00
Dustin Carlino
7e376de03f Start transforming an abstract schedule into a specific list of trips 2020-12-10 12:28:12 -08:00
Dustin Carlino
1510ff21c8 Allow and ignore a 3rd coordinate in KML files 2020-12-10 12:02:35 -08:00
Michael Kirk
d445ca386a
fix typo (#418) 2020-12-10 09:41:14 -08:00
Dustin Carlino
77a37f897b Wire together a UI to generate census-based scenarios 2020-12-10 09:35:50 -08:00
Dustin Carlino
f23dacbde7 Start some skeleton code for tomorrow's hackathon 2020-12-09 22:11:05 -08:00
Dustin Carlino
97a9f38e0c Fix github actions build after adding music [rebuild] 2020-12-09 18:24:47 -08:00
Dustin Carlino
dbbfe18076 Link to OSM objects from the area info panel, to help debug water polygons easily 2020-12-09 16:41:08 -08:00
Dustin Carlino
aa5010f2d0 Import part of Manhattan. Need to adjust the boundary to fix water
polygons, but this is a start.
2020-12-09 16:15:08 -08:00
Dustin Carlino
6e6e975923
There's no way it's this easy to add music... (#417) 2020-12-09 13:46:27 -08:00
Dustin Carlino
737b35f68d Document --scale_factor flag for #381 and #415 2020-12-08 14:54:42 -08:00
Dustin Carlino
87b4d1bb93 Performance optimization: don't update panels unnecessarily, and don't
do expensive updates unless time is passing. Before this, you could
introduce serious by wiggling the mouse!
2020-12-08 09:56:59 -08:00
Dustin Carlino
3d361074ab Draw traffic signals changing over time in the experiment 2020-12-08 09:05:06 -08:00
Dustin Carlino
c8a37a27a0 Create 3 new small maps of Seattle for the experiment. Notably, 2 of
them simulate fully with --infinite_parking, and SLU makes it to about
4pm, so these might have some other interesting use...
2020-12-07 20:58:04 -08:00
Dustin Carlino
a88fef0874 Update minimap style and other bits from Figma, better snowflakes 2020-12-07 16:42:41 -08:00
Dustin Carlino
86814f6867 Make A/B Street's minimap specialize the generic widget, instead of duplicating code. 2020-12-07 15:40:35 -08:00
Dustin Carlino
2153b1605b Move the legend to the minimap in the experiment, by parameterizing the
minimap on a trait to specialize it.
2020-12-07 14:42:49 -08:00
Dustin Carlino
d799b20d93 Refactor colors 2020-12-07 13:57:55 -08:00