Draw rays from camera and call ray casting stub function.

This commit is contained in:
2023-04-02 01:21:02 +01:00
parent f1cb03bc22
commit ca50b6f4b7
5 changed files with 28 additions and 5 deletions
+7 -2
View File
@@ -12,9 +12,9 @@ static sf::RenderWindow* window = nullptr;
static unsigned int level[WIDTH * HEIGHT] = {
1, 1, 1, 1, 1,
0, 0, 0, 0, 0,
1, 0, 0, 0, 0,
1, 0, 1, 0, 1,
0, 0, 0, 0, 0,
1, 0, 0, 0, 0,
1, 0, 1, 0, 1,
};
@@ -38,6 +38,11 @@ void level_end()
return;
}
float level_rayCastDistance(sf::Vector2f point, float direction)
{
return 100.f;
}
static void drawGrid()
{
const sf::Vector2u windowSize = window->getSize();