Improve movement
This commit is contained in:
parent
49dc149952
commit
cee662ed6b
1 changed files with 2 additions and 1 deletions
3
game.cpp
3
game.cpp
|
@ -689,6 +689,7 @@ public:
|
|||
mCamera.collisionRadius = UNITS_PER_SQUARE / 4;
|
||||
mCamera.collisionHeightBelow = UNITS_PER_SQUARE;
|
||||
mCamera.collisionHeightAbove = UNITS_PER_SQUARE / 3;
|
||||
mCamera.collisionStepHeight = UNITS_PER_SQUARE / 2;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -846,7 +847,7 @@ int main()
|
|||
{
|
||||
draw();
|
||||
|
||||
const int16_t step = max(UNITS_PER_SQUARE / 7,1);
|
||||
int16_t step = max(1,UNITS_PER_SQUARE / (p.bBtn() ? 7 : 15));
|
||||
const int16_t step2 = max(UNITS_PER_SQUARE / 40,1);
|
||||
|
||||
Vector2D d = angleToDirection(player.mCamera.direction);
|
||||
|
|
Loading…
Reference in a new issue