commit 0148bba5539385809fab2d37c29135b389b4b8e3
parent 9efe45094ba72ccb21e4e83b932f067ccf8ff14b
Author: kel <distransient@protonmail.com>
Date: Thu, 31 Jan 2019 02:56:33 -0500
Fix example for api change
Diffstat:
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/examples/amethyst.rs b/examples/amethyst.rs
@@ -161,9 +161,16 @@ fn main() -> amethyst::Result<()> {
dimensions: Some((800, 400)),
min_dimensions: Some((800, 400)),
max_dimensions: None,
+ icon: None,
vsync: true,
multisampling: 0, // Must be multiple of 2, use 0 to disable
visibility: true,
+ always_on_top: false,
+ decorations: true,
+ maximized: false,
+ multitouch: true,
+ resizable: true,
+ transparent: false,
};
let pipe = Pipeline::build().with_stage(
Stage::with_backbuffer()
@@ -182,7 +189,7 @@ fn main() -> amethyst::Result<()> {
Duration::from_millis(50),
Duration::from_millis(500),
)))
- .with_max_timesteps(20),
+ .with_timestep_iter_limit(20),
)?
.with_bundle(RenderBundle::new(pipe, Some(display_config)))?;
diff --git a/src/systems/mod.rs b/src/systems/mod.rs
@@ -4,7 +4,7 @@ mod sync_bodies_to_physics;
mod sync_colliders_to_physics;
mod sync_gravity_to_physics;
-use core::result::Result
+use core::result::Result;
use amethyst::core::bundle::SystemBundle;
use amethyst::core::specs::DispatcherBuilder;
use amethyst::error::Error;