link to fixed windows build, and make a few small adjustments

This commit is contained in:
Dustin Carlino 2020-06-23 12:57:06 -07:00
parent b267997554
commit 2630fabf83
7 changed files with 19 additions and 18 deletions

View File

@ -5,7 +5,7 @@ road instead of a bus lane? A/B Street is a game exploring how small changes to
a city affect the movement of drivers, cyclists, transit users, and pedestrians.
- Play on
[Windows](https://github.com/dabreegster/abstreet/releases/download/v0.2.0a/abstreet_windows_v0_2_0c.zip),
[Windows](https://github.com/dabreegster/abstreet/releases/download/v0.2.0a/abstreet_windows_v0_2_0d.zip),
[Mac](https://github.com/dabreegster/abstreet/releases/download/v0.2.0a/abstreet_mac_v0_2_0a.zip),
[Linux](https://github.com/dabreegster/abstreet/releases/download/v0.2.0a/abstreet_linux_v0_2_0a.zip),
or [read all instructions](docs/INSTRUCTIONS.md) (new releases every Sunday)

View File

@ -10,16 +10,11 @@ Grab a pre-built binary release -- updated every Sunday, announced at
[r/abstreet](http://old.reddit.com/r/abstreet):
- Windows:
https://github.com/dabreegster/abstreet/releases/download/v0.2.0a/abstreet_windows_v0_2_0c.zip
- If clicking buttons seems to be a bit off, might be
[this issue](https://github.com/dabreegster/abstreet/issues/65). Workaround
is to manually resize the window, then maximize again.
https://github.com/dabreegster/abstreet/releases/download/v0.2.0a/abstreet_windows_v0_2_0d.zip
- If the game immediately crashes, it might be a
[graphics card problem](https://github.com/dabreegster/abstreet/issues/79).
- Mac:
https://github.com/dabreegster/abstreet/releases/download/v0.2.0a/abstreet_mac_v0_2_0a.zip
- There are some issues with HiDPI Retina displays; please report any
problems.
- Linux:
https://github.com/dabreegster/abstreet/releases/download/v0.2.0a/abstreet_linux_v0_2_0a.zip

View File

@ -15,7 +15,7 @@ One-time setup:
2. Grab the minimal amount of data to get started: `cargo run --bin updater`.
3. Run the game: `cd game; cargo run --release`
3. Run the game: `cd game; RUST_BACKTRACE=1 cargo run --release`
## Development tips

View File

@ -68,18 +68,12 @@ pub fn setup(
)
.unwrap();
// TODO Should this be display.gl_window().window().inner_size()? I think some resize events
// always happen soon after startup, so it probably doesn't matter much. Changing this on Linux
// messes up the loading screen size (which happens before resize events get processed).
//
// But actually on Windows, maybe there isn't that initial spurt of resize events.
let window_size = display.gl_window().window().inner_size();
let scale_factor = display.gl_window().window().scale_factor();
println!(
"Initial inner window size is {:?}, monitor is {:?}, scale factor is {}",
window_size,
event_loop.primary_monitor().size(),
scale_factor
display.gl_window().window().scale_factor()
);
(
PrerenderInnards {

View File

@ -72,8 +72,14 @@ pub fn setup(
);
}
// TODO Once this is fixed in glium, do the same thing here
let window_size = event_loop.primary_monitor().size();
let window_size = windowed_context.window().inner_size();
println!(
"Initial inner window size is {:?}, monitor is {:?}, scale factor is {}",
window_size,
event_loop.primary_monitor().size(),
windowed_context.window().scale_factor()
);
(
PrerenderInnards {
gl,

View File

@ -629,7 +629,7 @@ impl PolyLine {
if let Some(idx) = self.lines().iter().position(|l| l.contains_pt(pt)) {
let mut pts = self.pts.clone();
pts.split_off(idx + 1);
pts.truncate(idx + 1);
// Make sure the last line isn't too tiny
if *pts.last().unwrap() == pt {
pts.pop();

View File

@ -93,6 +93,12 @@ impl Car {
i += 1;
}
if result.len() < 2 {
panic!(
"{} at {} has front at {}. Didn't even wind up with two points",
self.vehicle.id, now, front
);
}
PolyLine::new(result)
};