mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
better timing const name,
timing_delay 400 -> 350
This commit is contained in:
parent
2b10797db1
commit
1ea2abd247
@ -11,7 +11,7 @@ use TransitionStyle::*;
|
|||||||
|
|
||||||
// In millis
|
// In millis
|
||||||
const STAGE_DURATION: u64 = 700;
|
const STAGE_DURATION: u64 = 700;
|
||||||
const TIMING_WINDOW: u64 = 400;
|
const TIMING_DELAY: u64 = 350;
|
||||||
const INITIAL_ACCEL: f32 = 90.0;
|
const INITIAL_ACCEL: f32 = 90.0;
|
||||||
const BASE_SPEED: f32 = 25.0;
|
const BASE_SPEED: f32 = 25.0;
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ impl CharacterBehavior for Data {
|
|||||||
Timed(state) => match state {
|
Timed(state) => match state {
|
||||||
NotPressed => {
|
NotPressed => {
|
||||||
if data.inputs.primary.is_just_pressed() {
|
if data.inputs.primary.is_just_pressed() {
|
||||||
if stage_time_active > Duration::from_millis(TIMING_WINDOW) {
|
if stage_time_active > Duration::from_millis(TIMING_DELAY) {
|
||||||
Timed(Success)
|
Timed(Success)
|
||||||
} else {
|
} else {
|
||||||
Timed(PressedEarly)
|
Timed(PressedEarly)
|
||||||
|
Loading…
Reference in New Issue
Block a user