diff --git a/README.md b/README.md index 26237f0..94b690b 100644 --- a/README.md +++ b/README.md @@ -35,12 +35,12 @@ We want the following files and folders to be delivered in a ZIP file: To automatically make an archive (`source.zip`) ready for uploading to blackboard: -* Make sure any extra assets or resources you have might have added are located in the `resources` folder +* Make sure any extra assets or resources you might have added are located in the `resources` folder * Then run either: - * `create_code_archive_for_blackboard_LINUX.sh` + * `./create_code_archive_for_blackboard_LINUX.sh` * `create_code_archive_for_blackboard_WINDOWS.bat`. -This script will explicitly ignore the `target` folder, and two files given as a handout for exercise 3, to save space: +This zip script will explicitly ignore the `target` folder, and the following two of the files given as a handout for exercise 3 (just to save space): * `resources/helicopter.obj` * `resources/lunarsurface.obj` diff --git a/src/main.rs b/src/main.rs index cd97a80..9e5ed4a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -159,13 +159,13 @@ fn main() { // The main rendering loop let first_frame_time = std::time::Instant::now(); - let mut prevous_frame_time = first_frame_time; + let mut previous_frame_time = first_frame_time; loop { // Compute time passed since the previous frame and since the start of the program let now = std::time::Instant::now(); let elapsed = now.duration_since(first_frame_time).as_secs_f32(); - let delta_time = now.duration_since(prevous_frame_time).as_secs_f32(); - prevous_frame_time = now; + let delta_time = now.duration_since(previous_frame_time).as_secs_f32(); + previous_frame_time = now; // Handle resize events if let Ok(mut new_size) = window_size.lock() { @@ -201,7 +201,7 @@ fn main() { // Handle mouse movement. delta contains the x and y movement of the mouse since last frame in pixels if let Ok(mut delta) = mouse_delta.lock() { - // == // Optionally access the acumulated mouse movement between + // == // Optionally access the accumulated mouse movement between // == // frames here with `delta.0` and `delta.1` *delta = (0.0, 0.0); // reset when done