-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General proof-reading, typos etc. Fixed some of the code snips so the project will run out of the box when you are following along the tutorial in the book.
- Loading branch information
1 parent
30eb6da
commit 37a9bec
Showing
3 changed files
with
71 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
// ANCHOR: player_imports | ||
|
||
use crate::{player::Player}; | ||
use fyrox::{ | ||
core::pool::Handle, | ||
core::{reflect::prelude::*, visitor::prelude::*}, | ||
plugin::{Plugin, PluginContext, PluginRegistrationContext}, | ||
scene::Scene, | ||
event::Event, | ||
}; | ||
use fyrox_ui::message::UiMessage; | ||
use std::path::Path; | ||
// ANCHOR_END: player_imports | ||
// ANCHOR: player_mod_reg | ||
// Add this line | ||
pub mod player; | ||
|
||
// ANCHOR_END: player_mod_reg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// ANCHOR: player_imports | ||
use fyrox::graph::SceneGraph; | ||
use fyrox::{ | ||
core::{ | ||
algebra::{UnitQuaternion, UnitVector3, Vector3}, | ||
pool::Handle, | ||
reflect::prelude::*, | ||
type_traits::prelude::*, | ||
variable::InheritableVariable, | ||
visitor::prelude::*, | ||
}, | ||
event::{DeviceEvent, ElementState, Event, MouseButton, WindowEvent}, | ||
keyboard::{KeyCode, PhysicalKey}, | ||
scene::{node::Node, rigidbody::RigidBody}, | ||
script::{ScriptContext, ScriptTrait, ScriptDeinitContext}, | ||
|
||
}; | ||
|
||
// ANCHOR_END: player_imports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters