Compare commits

..

2 commits

Author SHA1 Message Date
yuni 9d42c64d03 start labeling dev versions, set version to v0.12.0-dev 2024-09-16 01:53:07 +02:00
yuni 39054c71d2 particles: make unlit 2024-09-16 01:42:57 +02:00
4 changed files with 5 additions and 4 deletions

2
Cargo.lock generated
View file

@ -3045,7 +3045,7 @@ dependencies = [
[[package]]
name = "outfly"
version = "0.11.0"
version = "0.12.0-dev"
dependencies = [
"bevy",
"bevy_embedded_assets",

View file

@ -10,7 +10,7 @@
[package]
name = "outfly"
version = "0.11.0"
version = "0.12.0-dev"
edition = "2021"
homepage = "https://codeberg.org/outfly/outfly"
repository = "https://codeberg.org/outfly/outfly"

View file

@ -570,7 +570,7 @@ pub fn apply_input_to_player(
// Visual effect
if bike.is_none() && acceleration_total.length_squared() > 1e-4 {
let thruster_direction = acceleration_total.normalize();
let thruster_v = v.0 - 10.0 * thruster_direction;
let thruster_v = v.0 - 5.0 * thruster_direction;
ew_effect.send(visual::SpawnEffectEvent {
duration: 2.0,
class: visual::Effects::ThrusterParticle(pos.clone(), LinearVelocity::from(thruster_v)),

View file

@ -186,7 +186,7 @@ pub fn spawn_effects(
FadeMaterial {
start_time: now,
duration: effect.duration,
value_start: 0.1,
value_start: 0.01,
value_end: 0.0,
},
world::DespawnAt(now + effect.duration),
@ -198,6 +198,7 @@ pub fn spawn_effects(
base_color_texture: Some(texture),
perceptual_roughness: 1.0,
metallic: 0.5,
unlit: true,
alpha_mode: AlphaMode::Blend,
..Default::default()
}),