From 3fdf40d9c8bd0c5938edb529fdb678fd5f4248d2 Mon Sep 17 00:00:00 2001 From: ira Date: Sun, 17 Jul 2022 12:34:31 +0000 Subject: [PATCH 001/338] Make the contributor birbs bounce to the window height! (#5274) Birbs no longer bounce too low, not coming close to their true bouncy potential. Birbs also no longer bonk head when window is smaller. (Will still bonk head when window is made smaller too fast! pls no) *cough cough* Make the height of the birb-bounces dependent on the window size so they always bounce elegantly towards the top of the window. Also no longer panics when closing the window q: ~~Might put a video here if I figure out how to.~~ rendering video is hard. birbrate go brr Co-authored-by: devil-ira --- examples/games/contributors.rs | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/examples/games/contributors.rs b/examples/games/contributors.rs index 0bad27798aea09..c3842c4ec78519 100644 --- a/examples/games/contributors.rs +++ b/examples/games/contributors.rs @@ -58,7 +58,7 @@ struct Velocity { rotation: f32, } -const GRAVITY: f32 = -9.821 * 100.0; +const GRAVITY: f32 = 9.821 * 100.0; const SPRITE_SIZE: f32 = 75.0; const SATURATION_DESELECTED: f32 = 0.3; @@ -243,7 +243,7 @@ fn velocity_system(time: Res