Bump dependencies (#10)

The biggest version bump is Amethyst from 0.12 to 0.13. This has a
breaking change in the example, where world.read_resource now returns
a Fetch<ScreenDimensions> instead of a &ScreenDimensions.
This commit is contained in:
Justin Wernick
2019-10-01 18:45:00 +02:00
committed by Hilmar Wiegand
parent fd8bff9ea6
commit 01f6f3e4ba
3 changed files with 325 additions and 1054 deletions

1373
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -5,8 +5,8 @@ authors = ["Hilmar Wiegand <me@hwgnd.de>"]
edition = "2018" edition = "2018"
[dependencies] [dependencies]
amethyst = "0.12.0" amethyst = "0.13.0"
log = { version = "0.4.6", features = ["serde"] } log = { version = "0.4.8", features = ["serde"] }
[features] [features]
default = ["vulkan"] default = ["vulkan"]

View File

@@ -21,7 +21,7 @@ impl SimpleState for MyState {
// Get the screen dimensions so we can initialize the camera and // Get the screen dimensions so we can initialize the camera and
// place our sprites correctly later. We'll clone this since we'll // place our sprites correctly later. We'll clone this since we'll
// pass the world mutably to the following functions. // pass the world mutably to the following functions.
let dimensions = world.read_resource::<ScreenDimensions>().clone(); let dimensions = (*world.read_resource::<ScreenDimensions>()).clone();
// Place the camera // Place the camera
init_camera(world, &dimensions); init_camera(world, &dimensions);