Commit Graph

5564 Commits

Author SHA1 Message Date
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
Dustin Carlino
57aad79596 Back to the experiment: don't run out of energy quickly on larger buildings. Rephrase as cookies and blood sugar... 2020-12-16 16:54:54 -08:00
Dustin Carlino
0831d112ed Simplify the trace API even more -- everyone but the simulation deals with unmodified paths and wants the original start 2020-12-16 16:14:33 -08:00
Dustin Carlino
d00e7f7bca Simplify path trace API -- nobody needs dist_ahead. I think that was originally meant to be a performance trick to only draw the next little bit of a route 2020-12-16 16:09:11 -08:00
Dustin Carlino
d4fa67ac87 Make the one-mode path guesses more precise in their start/end locations. Noticeable effect is in the freeform agent spawner, the paths actually go between buildings now, instead of lane starts. 2020-12-16 15:49:03 -08:00
Dustin Carlino
7c973ecacf Expose continuous distance crossed for vehicles. #392 2020-12-16 15:29:55 -08:00
Dustin Carlino
b39aa2a45f Expose continuous distance crossed for pedestrians. #392 2020-12-16 15:09:06 -08:00
Dustin Carlino
6e275a0a60 Track Path's total_length and crossed_so_far a bit more precisely at the beginning/end of the path, towards #392 2020-12-16 14:45:20 -08:00
Dustin Carlino
a5b62cd454 Simplify CreateCar, using the PathRequest embedded in the router's Path 2020-12-16 13:23:33 -08:00
Dustin Carlino
f36854cc5b Simplify TripPhase now that PathRequest is embedded in the Path 2020-12-16 13:02:59 -08:00
Dustin Carlino
7efd2de939 Remove unused census generation UI from hackathon. We'll recreate this later, onc it's more clear what params there are to tune, and where the params will live. #424 2020-12-16 12:57:19 -08:00
Dustin Carlino
fccc98205c Refactor: Store the input PathRequest inside the resulting Path. This
saves lots of callers from cloning the request and separately plumbing
around the requested start/end distance. Also a step towards exposing
more granular distance crossed in a path for #392.

Still a few more places to simplify, but will do in a separate, smaller
change.
2020-12-16 12:55:57 -08:00
Dustin Carlino
e8f7e7444c Treat vehicles waiting to spawn as active. #392 2020-12-16 12:05:15 -08:00
Dustin Carlino
2b4b92664e Much needed refactor: map.pathfind() returns a Result, stating the failed request. Many call sites were cloning the request and doing this anyway. 2020-12-16 10:06:12 -08:00
Dustin Carlino
a0555d1df5 Add an API call to estimate the best-case duration of a trip. #392 2020-12-16 09:42:50 -08:00
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