Remove old velocity code

This commit is contained in:
Abdelrahman Said 2025-05-24 01:31:16 +01:00
parent c6cac7be8a
commit 3696205f47

2
dod.c
View File

@ -253,7 +253,5 @@ u8 collides(const Rect *rect, const Rect *collider) {
}
i16 get_random_velocity(XOR256State *state) {
// i64 random = (i64)wapp_prng_xorshift_256(state) - INT64_MAX;
// return (f32)(random) / (f32)(INT64_MAX);
return (wapp_prng_xorshift_256(state) % (MAX_ABS_VELOCITY + 1 - MIN_ABS_VELOCITY)) + MIN_ABS_VELOCITY;
}