Intermediate refactor to move everything over to using the textures module rather than everyone using one TexturePack thing.
This commit is contained in:
parent
6c1d851e85
commit
f3e1413022
23 changed files with 129 additions and 64 deletions
|
@ -13,7 +13,7 @@ namespace gui {
|
|||
|
||||
FSM::FSM() :
|
||||
$window(sf::VideoMode({SCREEN_WIDTH, SCREEN_HEIGHT}), "Zed's Raycaster Thing"),
|
||||
$main_ui($window, $levels.current(), $textures),
|
||||
$main_ui($window, $levels.current()),
|
||||
$renderer($window),
|
||||
$level($levels.current()),
|
||||
$map_ui($level),
|
||||
|
@ -21,8 +21,6 @@ namespace gui {
|
|||
$status_ui($level),
|
||||
$font{FONT_FILE_NAME}
|
||||
{
|
||||
$textures.load_tiles();
|
||||
$textures.load_sprites();
|
||||
}
|
||||
|
||||
void FSM::event(Event ev) {
|
||||
|
@ -45,8 +43,8 @@ namespace gui {
|
|||
|
||||
$main_ui.init();
|
||||
|
||||
$combat_ui.render($textures);
|
||||
$status_ui.render($textures);
|
||||
$combat_ui.render();
|
||||
$status_ui.render();
|
||||
$status_ui.log("Welcome to the game!");
|
||||
|
||||
$renderer.init_terminal();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue