[ADD] stuff

This commit is contained in:
Sem van der Hoeven
2021-06-18 15:59:34 +02:00
parent b04d999a7d
commit 0c9b663366
3 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
#include "hand_detect_region.h"
#define TIME_DURATION 1.0f
#define TIME_DURATION 1.5f
namespace computervision
{

View File

@@ -27,8 +27,8 @@ namespace entities
double delta_time = UpdateDelta();
if (is_playing) {
movement_speed = -15; //Forward speed adjustment, bee is moving at a standard speedrate
down_speed = -50; //Down speed adjustment, downspeed is difference between down_speed and UP_SPEED
movement_speed = -50; //Forward speed adjustment, bee is moving at a standard speedrate
down_speed = -40; //Down speed adjustment, downspeed is difference between down_speed and UP_SPEED
side_speed = 0; //Side speed adjustment
//For gameplay with use of keyboard keys: W, A, S, D
//W: Go forward
@@ -69,7 +69,7 @@ namespace entities
}
}
IncreasePosition(glm::vec3(side_speed*delta_time, down_speed*delta_time, movement_speed*delta_time));
std::cout << "delta time char: "<< delta_time << std::endl;
//std::cout << "delta time char: "<< delta_time << std::endl;
//Use only for binding bee to house, such that it doesn't go outside of the room.
//TODO delete when boundingbox is implemented!

View File

@@ -282,6 +282,7 @@ namespace scene
// if we have passed a model, load a new one and delete the one behind us
if (last_model_pos != model_pos)
{
std::cout << "updating score" << std::endl;
LoadChunk(model_pos + UPCOMING_MODEL_AMOUNT);
score += furniture_count_old;
std::cout << "Score: " << score << std::endl;