Skip to content

Commit

Permalink
Add fire icon to tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed May 15, 2021
1 parent 56b16f8 commit 7767da3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
12 changes: 12 additions & 0 deletions data/system/assets/tools/fire.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion game/src/sandbox/gameplay/tutorial.rs
Expand Up @@ -410,8 +410,19 @@ impl GameplayState for Tutorial {

// Special things
if tut.interaction() == Task::Camera {
let fire = GeomBatch::load_svg(g, "system/assets/tools/fire.svg")
.scale(if g.canvas.cam_zoom < app.opts.min_zoom_for_detail {
0.2
} else {
0.1
})
.autocrop()
.centered_on(app.primary.map.get_b(tut.fire_station).polygon.polylabel());
let offset = -fire.get_dims().height / 2.0;
fire.translate(0.0, offset).draw(g);

g.draw_polygon(
Color::hex("#e25822"),
Color::hex("#FEDE17"),
app.primary.map.get_b(tut.fire_station).polygon.clone(),
);
} else if tut.interaction() == Task::Escort {
Expand Down
1 change: 1 addition & 0 deletions release/INSTRUCTIONS.txt
Expand Up @@ -46,3 +46,4 @@ Other binary data bundled in:
[various sources](https://github.com/a-b-street/abstreet/tree/master/data/system/assets/music/sources.md)
with Creative Commons licenses
- Country flags (<https://github.com/hampusborgos/country-flags>, public domain)
- Fire SVG (<https://commons.wikimedia.org/wiki/File:Hikaru_fire.svg>, CC3)

0 comments on commit 7767da3

Please sign in to comment.