From 88609465cbc924af5e5341d90c60ffd172a85ec5 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Mon, 16 Jun 2025 13:39:50 +0200 Subject: [PATCH] - [CHG] Renombrat "gif.c" a "gif.h" - [FIX] El codi de exemple petava --- data/main.lua | 4 ++-- data/other.lua | 2 +- gif.c => gif.h | 0 mini.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename gif.c => gif.h (100%) 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"