Skip to content

Commit

Permalink
FAQ: Add a small note about resolution independence
Browse files Browse the repository at this point in the history
  • Loading branch information
ozkriff committed Mar 26, 2018
1 parent 42c8d24 commit a737135
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,14 @@ When you create a `Context` it will automatically look for a
one, use that to override all the defaults you give it.

The `files` example should demonstrate this, and more.

# Resolution independence

By default ggez uses a pixel coordinate system but you can change that
by calling something like

```rust
graphics::set_screen_coordinates(&mut context, Rect::new(0.0, 0.0, 1.0, 1.0)).unwrap();
```

and scaling your `Image`s with `graphics::DrawParam`.

0 comments on commit a737135

Please sign in to comment.