Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Commit 2bc6776

Browse files
committed
fixed fps tutorial part 1
1 parent 4d48747 commit 2bc6776

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tutorial1-character-controller/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ authors = ["Dmitry Stepanov <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
8-
fyrox = { path = "../../fyrox", version = "0.28" }
8+
fyrox = { path = "../../fyrox", version = "0.29" }

tutorial1-character-controller/src/main.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ impl Game {
210210
.request_model("data/models/scene.rgs")
211211
.await
212212
.unwrap()
213-
.instantiate_geometry(&mut scene);
213+
.instantiate(&mut scene);
214214

215215
Self {
216216
player: Player::new(&mut scene, engine.resource_manager.clone()).await,
@@ -237,6 +237,7 @@ fn main() {
237237
serialization_context,
238238
events_loop: &event_loop,
239239
vsync: false,
240+
headless: false,
240241
})
241242
.unwrap();
242243

@@ -266,7 +267,7 @@ fn main() {
266267
game.update(&mut engine);
267268

268269
// Update engine each frame.
269-
engine.update(TIMESTEP, control_flow, &mut lag);
270+
engine.update(TIMESTEP, control_flow, &mut lag, Default::default());
270271
}
271272

272273
// Rendering must be explicitly requested and handled after RedrawRequested event is received.

0 commit comments

Comments
 (0)