Enlarged ground and spaced obstacles from each other

This commit is contained in:
Franklin 2023-09-13 10:53:43 -04:00
parent fccc659492
commit f29eb34bcf
3 changed files with 9 additions and 8 deletions

View File

@ -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).

View File

@ -7,11 +7,11 @@ pub fn spawn_ground(
mut materials: ResMut<Assets<StandardMaterial>>,
) {
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,

View File

@ -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()
});
}