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
+1 -1
View File
@@ -11,7 +11,7 @@ static sf::Uint32 style = sf::Style::Titlebar;
static sf::RenderWindow window(sf::VideoMode(500, 500), "Raycasting", style);
static sf::Clock timer;
static Camera camera = { sf::Vector2f(300.f, 250.f), 0.f, 1.f, 70.f };
static Camera camera = { sf::Vector2f(300.f, 250.f), 0.f, 20, 360.f };
int view_init()
{