While testing, I noticed that the shift key breaks while moving at any decently high speed. When you're moving at fast enough speed, then when you press shift, you slow down so much you travel slower than 1.5m/s. Go faster still and you're speed reverses. If your speed is 2.9 or higher, the backwards speed you obtain from pressing shift for 1 frame is above 2.9, meaning you can get infinite speed from holding down the shift key long enough, often times instantly clearing levels but also sometimes crashing the game. This doesn't seem to be an issue in the flash version.
Does anyone have any idea why this happens? I did some testing, and the speeds you obtain are consistent if you tap shift for 1 frame, but I don't see any logical reason that the shift key breaks the game so much.
Just wondering about the shift key
- testtubegames
- Site Admin
- Posts: 1164
- Joined: Mon Nov 19, 2012 7:54 pm
Re: Just wondering about the shift key
Oof - not great. Yeah, that's a bug.
For the record - I think I know what is happening. Acceleration in Special Relativity needs to be applied in a very particular way... can't accelerate past c, after all! So, I think that's what's going on -- when you're going fast enough, the game is miscalculating the acceleration you'd need to slow down to 1.5m/s. And occasionally breaking physics. Oops.
Thanks for pointing that out -- I'll see if I can get it fixed.
For the record - I think I know what is happening. Acceleration in Special Relativity needs to be applied in a very particular way... can't accelerate past c, after all! So, I think that's what's going on -- when you're going fast enough, the game is miscalculating the acceleration you'd need to slow down to 1.5m/s. And occasionally breaking physics. Oops.
Thanks for pointing that out -- I'll see if I can get it fixed.