From f29eb34bcf8ec2d198df5ce1bcb1a09ae82e5341 Mon Sep 17 00:00:00 2001 From: Franklin Date: Wed, 13 Sep 2023 10:53:43 -0400 Subject: [PATCH] Enlarged ground and spaced obstacles from each other --- Readme.md | 5 +++-- src/scenes/scene1/ground.rs | 4 ++-- src/scenes/scene1/obstacles.rs | 8 ++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Readme.md b/Readme.md index 8c95bc4..8bb70fc 100644 --- a/Readme.md +++ b/Readme.md @@ -1,9 +1,10 @@ # Experimental game - [x] Skybox -- [x] Glitch: Fall does not remove linear damping, only after jump -- [x] Glitch: Negative linear damping on jump allows for bunny hopping +- [x] ~~Glitch: Fall does not remove linear damping, only after jump~~ +- [x] ~~Glitch: Negative linear damping on jump allows for bunny hopping~~ +- [ ] Feature: Add smooth camera movement to camera on crouch. Right now it's too fast and looks arcade af. - [ ] Feature: Add jump effect to camera - [ ] Feature: Add Stamina (with bar?) - [ ] Feature: Subtle Headbob, FOV change on movement (Distinguish between sprinting and walking). diff --git a/src/scenes/scene1/ground.rs b/src/scenes/scene1/ground.rs index 5ed70b5..dd76881 100644 --- a/src/scenes/scene1/ground.rs +++ b/src/scenes/scene1/ground.rs @@ -7,11 +7,11 @@ pub fn spawn_ground( mut materials: ResMut>, ) { commands - .spawn(Collider::cuboid(30.0, 0.1, 30.0)) + .spawn(Collider::cuboid(50.0, 0.1, 50.0)) .insert(TransformBundle::from(Transform::from_xyz(0.0, -2.0, 0.0))) .insert(RigidBody::Fixed) .insert(PbrBundle { - mesh: meshes.add(shape::Plane::from_size(60.0).into()), + mesh: meshes.add(shape::Plane::from_size(100.0).into()), material: materials.add(StandardMaterial { base_color: Color::WHITE, perceptual_roughness: 1.0, diff --git a/src/scenes/scene1/obstacles.rs b/src/scenes/scene1/obstacles.rs index a23bd75..35cecbc 100644 --- a/src/scenes/scene1/obstacles.rs +++ b/src/scenes/scene1/obstacles.rs @@ -20,7 +20,7 @@ pub fn spawn_obstacles( perceptual_roughness: 1.0, ..default() }), - transform: Transform::from_xyz(-5.0, 3.5, -10.0), + transform: Transform::from_xyz(-15.0, 3.5, -15.0), ..default() }); @@ -34,7 +34,7 @@ pub fn spawn_obstacles( perceptual_roughness: 1.0, ..default() }), - transform: Transform::from_xyz(-5.0, 3.5, 10.0), + transform: Transform::from_xyz(-15.0, 3.5, 15.0), ..default() }); @@ -48,7 +48,7 @@ pub fn spawn_obstacles( perceptual_roughness: 1.0, ..default() }), - transform: Transform::from_xyz(5.0, 3.5, -10.0), + transform: Transform::from_xyz(15.0, 3.5, -15.0), ..default() }); @@ -62,7 +62,7 @@ pub fn spawn_obstacles( perceptual_roughness: 1.0, ..default() }), - transform: Transform::from_xyz(5.0, 3.5, 10.0), + transform: Transform::from_xyz(15.0, 3.5, 15.0), ..default() }); }