Change spaceship starting position and lower nitro consumption
This commit is contained in:
parent
1579e92b35
commit
91c2dca35b
@ -41,7 +41,7 @@ public:
|
|||||||
float turbo = 1.0f;
|
float turbo = 1.0f;
|
||||||
float turboMAX = 1.0f;
|
float turboMAX = 1.0f;
|
||||||
|
|
||||||
glm::vec3 spaceshipPos /*= glm::vec3(0.065808f, 1.250000f, -2.189549f)*/;
|
glm::vec3 spaceshipPos = glm::vec3(4.065808f, 10.250000f, -20.189549f);
|
||||||
glm::vec3 spaceshipDir = glm::vec3(-0.490263f, 0.000000f, 0.871578f);
|
glm::vec3 spaceshipDir = glm::vec3(-0.490263f, 0.000000f, 0.871578f);
|
||||||
|
|
||||||
glm::vec3 spotlightPos = glm::vec3(0, 0, 0);
|
glm::vec3 spotlightPos = glm::vec3(0, 0, 0);
|
||||||
@ -225,7 +225,7 @@ public:
|
|||||||
if (w == GLFW_PRESS) {
|
if (w == GLFW_PRESS) {
|
||||||
if (shiftState == GLFW_PRESS) {
|
if (shiftState == GLFW_PRESS) {
|
||||||
|
|
||||||
turbo = glm::max(0.0f, turbo - 0.004f * deltaTime * 60);
|
turbo = glm::max(0.0f, turbo - 0.003f * deltaTime * 60);
|
||||||
if (turbo == 0.0f) {
|
if (turbo == 0.0f) {
|
||||||
shiftState = GLFW_RELEASE;
|
shiftState = GLFW_RELEASE;
|
||||||
moveSpeed = 0.05f * deltaTime * 60;
|
moveSpeed = 0.05f * deltaTime * 60;
|
||||||
|
Loading…
Reference in New Issue
Block a user