Skip to content

Commit

Permalink
few tweaks before a video
Browse files Browse the repository at this point in the history
  • Loading branch information
Inspirateur committed Dec 3, 2023
1 parent bff6aa2 commit 987c9e8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/agents/movement.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use bevy::{prelude::*, time::{Time, Timer}};
use itertools::{iproduct, Itertools};
use crate::blocs::{Blocs, BlocPos, Realm};
const SPEED: f32 = 15.;
const ACC: f32 = 15.;
const SPEED: f32 = 10.;
const ACC: f32 = 10.;

#[derive(Component)]
pub struct Jumping {
Expand Down
4 changes: 2 additions & 2 deletions src/agents/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub enum UIAction {
}

pub fn spawn_player(mut commands: Commands) {
let spawn = Vec3 { x: 200., y: 250., z: 0.};
let spawn = Vec3 { x: 205., y: 250., z: 0.};
let realm = Realm::Overworld;
let transform = TransformBundle {
local: Transform {translation: spawn, ..default()},
Expand All @@ -67,7 +67,7 @@ pub fn spawn_player(mut commands: Commands) {
Velocity(Vec3::default()),
LoadArea {
col: ColPos::from(<BlocPos2d>::from((spawn, realm))),
dist: 6,
dist: 12,
},
TargetBloc(None),
PlayerControlled
Expand Down
2 changes: 1 addition & 1 deletion src/game3d/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::GameState;
use crate::agents::{AABB, PlayerSpawn, PlayerControlled};
use leafwing_input_manager::prelude::*;

const CAMERA_PAN_RATE: f32 = 0.05;
const CAMERA_PAN_RATE: f32 = 0.03;

#[derive(Actionlike, Clone, Debug, Copy, PartialEq, Eq, Reflect)]
pub enum CameraMovement {
Expand Down
2 changes: 1 addition & 1 deletion src/game3d/sky/sky.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl Plugin for SkyPlugin {
fn build(&self, app: &mut App) {
app
.insert_resource(AtmosphereModel::new(Nishita {
rayleigh_coefficient: Vec3::new(5.5e-6, 4.0e-6, 22.4e-6),
// rayleigh_coefficient: Vec3::new(5.5e-6, 4.0e-6, 22.4e-6),
mie_coefficient: 15e-6,
..default()
}))
Expand Down
2 changes: 1 addition & 1 deletion src/gen/earth_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl TerrainGen for Earth {
let h = (rng >> 5) & 0b11;
let i = dx*CHUNK_S1 + dz;
let y = ys[i];
if y >= WATER_H {
if y > WATER_H {
if let Some((tree, dist)) = self.trees.closest([
ts[i] as f32,
hs[i] as f32,
Expand Down

0 comments on commit 987c9e8

Please sign in to comment.