We can go down a level and there's a loading screen for it. The map and motion now matches the directions shown in the raycasting. There's now a compass that shows you the direction you're facing.

This commit is contained in:
Zed A. Shaw 2025-02-25 13:15:39 -05:00
parent e9accf14e6
commit 54fbf22b6d
17 changed files with 124 additions and 36 deletions

View file

@ -1,6 +1,7 @@
#pragma once
#include "levelmanager.hpp"
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/System/Clock.hpp>
#include "stats.hpp"
#include "overlay_ui.hpp"
#include "raycaster.hpp"
@ -11,10 +12,15 @@ namespace gui {
class MainUI {
public:
int $compass_dir = 0;
std::array<std::string, 8> $compass{
"E", "SE", "S", "SW", "W", "NW", "N", "NE"
};
bool $show_level = false;
bool $needs_render = true;
Point $player{0,0};
Stats $stats;
sf::Clock $clock;
sf::RenderWindow& $window;
GameLevel $level;
OverlayUI $overlay_ui;