diff --git a/data/main.lua b/data/main.lua index 9db6bba..0cd788c 100644 --- a/data/main.lua +++ b/data/main.lua @@ -3,9 +3,9 @@ other = require "other" x=0 function mini.init() - s = surf.load("sprites.gif") + s = surf.load("tiles01.gif") surf.source(s) - p = pal.load("sprites.gif") + p = pal.load("tiles01.gif") pal.set(p) pal.trans(255) end diff --git a/data/other.lua b/data/other.lua index b6cf958..4ca5ae3 100644 --- a/data/other.lua +++ b/data/other.lua @@ -1,6 +1,6 @@ return { peiv = function() - palette.setColor(1, 1, 1, 1) + pal.color(1, 1, 1, 1) return "HOLA OTHER UNIT" end } diff --git a/gif.c b/gif.h similarity index 100% rename from gif.c rename to gif.h diff --git a/mini.cpp b/mini.cpp index b4b85a1..176c6fb 100644 --- a/mini.cpp +++ b/mini.cpp @@ -2,7 +2,7 @@ #include "jfile.h" #include #include "lua.h" -#include "gif.c" +#include "gif.h" #include "gifenc.h" //#include "SDL2/SDL_mixer.h" #include "jail_audio.h"