Remove old velocity code
This commit is contained in:
parent
c6cac7be8a
commit
3696205f47
2
dod.c
2
dod.c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user