Commit Graph

79 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
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
271c1f5a4e More clear upzoning UI 2020-12-15 10:49:36 -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
aead2e3058 Don't animate the sprite while not moving [rebuild] 2020-12-13 16:12:26 -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
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
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
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
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
Dustin Carlino
8af6e1343d Serialize game state on native. Figuring out how to do this on web next... 2020-12-07 11:01:43 -08:00
Dustin Carlino
4d56786289 Don't move faster diagonally 2020-12-06 19:49:59 -08:00
Dustin Carlino
4c947f05f6 Attempt more precise collision response, but it doesn't feel good, so
disable it
2020-12-06 19:24:19 -08:00
Dustin Carlino
b1811c21ab Add a progress bar for the initial .wasm loading. #377
It's now easier to understand the possibly slow downloading of the 80MB
.wasm.
2020-12-05 20:55:07 -08:00
Dustin Carlino
8e0a2ea8d5 Work on snow again 2020-12-05 18:42:22 -08:00
Dustin Carlino
139f442ba7 Flatten transforms in the Santa SVGs from Illustrator. The pitiful SVG
processing code in widgetry doesn't handle paths nested under groups
with transforms. To workaround, preprocess the SVGs:

1) Open in Inkscape
2) Click the problematic group
3) Menu "Path > Object to path"
4) Menu "Extensions > Modify path > Apply transform"

And scale down the two bike sprites
2020-12-05 17:57:46 -08:00
Dustin Carlino
9fb26eed0a Earn permanent upgrades by completing levels, show them on the title screen, add a flag to unlock everything for dev 2020-12-04 16:40:27 -08:00
Dustin Carlino
3b5aac7d7e Unlock levels in sequence 2020-12-04 16:19:31 -08:00
Dustin Carlino
df04fd7e18 Give SimpleApp a way to stash session-wide state. First use case is high scores for the experiment. 2020-12-04 15:08:15 -08:00
Dustin Carlino
c9809c805b Prepare to track high scores 2020-12-04 14:53:11 -08:00
Dustin Carlino
2ece6d0c05 Create a more interesting animation for delivery and refilling 2020-12-04 14:19:42 -08:00
Dustin Carlino
7381bd6b8d Add a time limit and a results screen. Make the upzone screen always
happen, use it as a place to prep the player before the level
2020-12-04 13:55:46 -08:00
Dustin Carlino
766fea1441 Prevent warping near bridges, and ban travel along light rail entirely 2020-12-03 21:04:38 -08:00
Dustin Carlino
97c5c45ca4 Add a basic boost mechanic 2020-12-03 20:36:35 -08:00
Dustin Carlino
12d0294692 Minimap tracker and new meters 2020-12-03 15:09:54 -08:00
Dustin Carlino
8531c8c773 Pick different vehicles, animate the player a bit 2020-12-03 14:23:30 -08:00
Dustin Carlino
2aaa7e4dee Split into multiple panels, add a pause screen, fix switching maps 2020-12-03 12:38:28 -08:00
Dustin Carlino
866d56ebcf Have a separate upzone phase before starting the level 2020-12-03 12:07:48 -08:00
Dustin Carlino
23222bd846 For the experiment, extract the code to color buildings based on type.
Also start to dismantle the old in-game upzone logic.
2020-12-03 11:32:37 -08:00
Dustin Carlino
5dba8f5896 Make the blocked-by graph used for debugging and the API detect problems
from somebody about to start an uber-turn.
2020-12-03 10:21:43 -08:00
Dustin Carlino
ad37d612b4 Just attempt to reorganize code a little bit before a barrage of
changes.
2020-12-02 19:18:49 -08:00
Dustin Carlino
08d6f6987f Figure out when we pass a building along a road 2020-12-02 18:00:51 -08:00
Dustin Carlino
6a947ba3e9 Snap movement to roads. The collisions are funky, but it mostly works?
Temporarily breaks gameplay, because now we can't touch buildings.
2020-12-02 17:09:32 -08:00