1
Programming Questions / Re: Fangame engine rules
« on: August 05, 2014, 07:39:03 AM »1. The player's hitbox uses a seperate rectangle sprite placed around the middle of the player. The sprite is 11 pixels wide by 21 pixel high. It goes from his feets to the top of his head.Amazing, thanks!
2. Gravity is 0.4 and it points down. Jump strength is 8.5. On the first step the player will move 8.5 pixels high, on the second step the player will move 8.1 pixels high, on the third step the player will move 7.7 pixels high. Every step the player looses 0.4 vertical speed (gravity). If the player releases shift and he's going upwards, his vertical speed is multiplied by 0.45.
3. The double jump is the same princible only his jump strenght is 7.
4. The FPS should always 50. This is the number of steps executed per second. The player speed is always 3 pixels. If the FPS is 60 he will seem like he's walking faster but is still 3 pixels per step.
At 50 FPS the player would move 150 pixels in a second. (3*50)
At 60 FPS the player would move 180 pixels in a second. (3*60)