Added a function to manage movement inside the maze.

Added goal and objective to the test maze.
This commit is contained in:
trotFunky 2019-11-04 00:12:43 +01:00
parent dfe279b236
commit 55f67099cb
4 changed files with 46 additions and 18 deletions

View file

@ -7,9 +7,15 @@
#include <Math/Vectors.h>
#include <DataHandling/Texture.h>
#include <Camera.h>
#include "TileTypes.h"
/// Returns the colour of the pixel corresponding to the current world position, assuming the map starts at (0,0).
Vec3i current_map_colour(const Vec3d& world_pos, const Texture& texture, const int& pixel_scale);
/// Translates the camera inside the maze and check for collisions
/// \param translation Translation that will be executed in the horizontal plane, x forward, z strafe.
void constrained_translation(const Vec3d& translation, Camera& camera, const Texture& map, const int& pixel_scale);
#endif //LABYRINTHE_MOVEMENTMANAGER_H