- [NEW] mòdul editor per a handlechar tot lo relacionat en l'editor

This commit is contained in:
2024-06-13 07:40:51 +02:00
parent 3e37be8a3a
commit ad4cef1cd1
4 changed files with 45 additions and 23 deletions

View File

@@ -5,7 +5,7 @@
#include "actor.h"
#include "room.h"
#include "jui.h"
#include "editor.h"
#include <vector>
#include <string>
@@ -26,8 +26,6 @@ int room_walldoors = 0;
std::vector<std::string> gifs;
bool editing = true;
void restart()
{
room::load(0); //room_w, room_h, room_xp, room_xn, room_yp, room_yn, room_color, room_floor, room_walls, room_doors, room_walldoors);
@@ -291,7 +289,7 @@ bool game::loop()
// WHILE EDITING...
if (editing)
if (editor::isEditing())
{
editor_move_selected();
actor::updateEditor(actor::getFirst());