- [NEW] Ara la llista de gifs a usar en el editor per als actors es carreguen des d'un arxiu
- [NEW] Gràfics de la piscina (sorpresa! hi ha una piscina! - Treballant en la zona 5
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "m_editor_bitmap_file.h"
|
||||
#include "jdraw.h"
|
||||
#include "jinput.h"
|
||||
#include "jfile.h"
|
||||
#include <SDL2/SDL.h>
|
||||
#include "room.h"
|
||||
#include "actor.h"
|
||||
@@ -10,12 +11,23 @@ namespace modules
|
||||
{
|
||||
namespace editor_bitmap_file
|
||||
{
|
||||
std::vector<std::string> gifs = { "abad.gif", "batman.gif", "altres.gif", "caixes.gif", "gat.gif", "gat2.gif", "objectes.gif", "obrer.gif" };
|
||||
std::vector<std::string> gifs; // = { "abad.gif", "batman.gif", "altres.gif", "caixes.gif", "gat.gif", "gat2.gif", "objectes.gif", "obrer.gif", "doors.gif" };
|
||||
|
||||
void init()
|
||||
{
|
||||
draw::resetViewport();
|
||||
//gifs = game::getGifs();
|
||||
gifs.clear();
|
||||
int size;
|
||||
char *buffer = file::getFileBuffer("gifs_editor.txt", size, true);
|
||||
char *p = buffer;
|
||||
char *n = buffer;
|
||||
while (*n!=0) {
|
||||
while (*n!='\n') n++; *n=0;
|
||||
gifs.push_back(p);
|
||||
p=++n;
|
||||
}
|
||||
free(buffer);
|
||||
}
|
||||
|
||||
bool loop()
|
||||
|
||||
Reference in New Issue
Block a user