- [FIX] Al tornar del minimapa sense seleccionar una habitació, ha de deixar-te en la que estaves.

- Canviat un poc el cap de l'heroi
- Completant habitacions
This commit is contained in:
2024-09-30 13:45:01 +02:00
parent eccbe43588
commit 093cd5916b
6 changed files with 314 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ namespace modules
vec2_t scroll {0,0};
int drawn[64];
int current_room;
int previous_room;
struct miniroom_t
{
@@ -124,6 +125,7 @@ namespace modules
for (int i=0;i<64;++i) drawn[i]=false;
current_room = room::getCurrent();
previous_room = current_room;
loadMiniRoom();
room::load(42);
@@ -152,7 +154,11 @@ namespace modules
bool loop()
{
if (input::keyPressed(SDL_SCANCODE_ESCAPE) || input::keyPressed(SDL_SCANCODE_TAB)) return false;
if (input::keyPressed(SDL_SCANCODE_ESCAPE) || input::keyPressed(SDL_SCANCODE_TAB))
{
room::load(previous_room);
return false;
}
//draw::stencil::enable();
//draw::stencil::clear(255);