You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
778 B

/**
* @file doom.cpp
*
* Implementation of the map of the stars quest.
*/
#include "doom.h"
#include "control.h"
#include "engine.h"
#include "engine/clx_sprite.hpp"
#include "engine/load_cel.hpp"
#include "engine/render/clx_render.hpp"
#include "utils/stdcompat/optional.hpp"
namespace devilution {
namespace {
OptionalOwnedClxSpriteList DoomSprite;
} // namespace
bool DoomFlag;
void doom_init()
{
DoomSprite = LoadCel("items\\map\\mapztown", 640);
DoomFlag = true;
}
void doom_close()
{
DoomFlag = false;
DoomSprite = std::nullopt;
}
void doom_draw(const Surface &out)
{
if (!DoomFlag) {
return;
}
ClxDraw(out, GetUIRectangle().position + Displacement { 0, 352 }, (*DoomSprite)[0]);
}
} // namespace devilution