Skip to content
Snippets Groups Projects
Commit 6a1eefcc authored by eliasmorio's avatar eliasmorio
Browse files

modify value for max speed and rotating

parent bb528b3f
No related branches found
No related tags found
No related merge requests found
......@@ -92,10 +92,10 @@ void Game::handleInput() {
}
if (clavier->isKeyPressed('a')) {
playerShip->rotate(10);
playerShip->rotate(5);
}
if (clavier->isKeyPressed('d')) {
playerShip->rotate(-10);
playerShip->rotate(-5);
}
if (clavier->isKeyPressed('w')) {
playerShip->increaseVelocity();
......
......@@ -6,11 +6,11 @@
#include "Game.h"
#include "physics/FixedPoint.h"
#define VELOCITY_MAX INT_TO_FP(16) // Maximum velocity constant
#define VELOCITY_MAX INT_TO_FP(14) // Maximum velocity constant
#define ADDED_VELOCITY FIXED(6, 10) // Acceleration constant
#define FRICTION_FACTOR FIXED(98, 100) // Friction factor
#define BULLET_VELOCITY Vec2(0, -INT_TO_FP(8)) // Bullet velocity constant
#define BULLET_VELOCITY Vec2(0, -INT_TO_FP(7)) // Bullet velocity constant
#define BULLET_LIFETIME 10 // Bullet lifetime constant
Ship::Ship(fp32 x, fp32 y, fp32 vx, fp32 vy, si32_t a, int type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment