- Editor de posició i tamany de actor en bitmap completat

This commit is contained in:
2024-09-19 08:59:37 +02:00
parent 1c53f49125
commit 39b304c265
2 changed files with 52 additions and 9 deletions

View File

@@ -26,6 +26,8 @@ namespace modules
if (editor::isDevMode())
{
draw::setPaletteColor(100, 0xbb, 0x80, 0x80);
draw::setPaletteColor(101, 0xff, 0xc0, 0xc0);
draw::stencil::init();
FILE* f = fopen("data/gifs.txt", "r");
@@ -264,10 +266,12 @@ namespace modules
if (input::keyPressed(SDL_SCANCODE_ESCAPE))
{
if (console::isEnabled())
if (console::isEnabled()) {
console::toggle();
else
} else {
if (editor::isEditing()) room::editor::save();
return GAME_MENU;
}
}
// WHILE EDITING...