Draw rays from camera and call ray casting stub function.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user