- [FIX] Llevat tot el relacionat amb codi en C/C++

- [NEW] Fulla d'sprites de Batman
- [NEW] Codi base de mini en Lua
- [WIP] Treballant en el editor
- [NEW] Fulla bàsica de tiles
- [NEW] Afegida paleta actual
This commit is contained in:
2025-11-05 13:11:41 +01:00
parent 72b92ca644
commit 47fb840d80
21 changed files with 240 additions and 8454 deletions

44
data/main.lua Normal file
View File

@@ -0,0 +1,44 @@
require "editor"
function mini.init()
sprites=surf.load("batman.gif")
tiles=surf.load("tiles01.gif")
surf.source(tiles)
local paleta=pal.load("tiles01.gif")
pal.set(paleta)
editor.init(1);
end
function mini.update()
if key.press(key.F1) then
win.zoom(win.zoom()-1)
elseif key.press(key.F2) then
win.zoom(win.zoom()+1)
elseif key.press(key.F3) then
local fs = win.fullscreen()
win.fullscreen(not fs)
win.cursor(fs)
end
if (game_update) then game_update() end
--text(tostring(sys.fps()),0,0,22,42)
end
function text(str,x,y,col,col2)
draw.text(str,x-1,y-1,66)
draw.text(str,x,y-1,66)
draw.text(str,x+1,y-1,66)
draw.text(str,x-1,y,66)
draw.text(str,x+1,y,66)
draw.text(str,x-1,y+1,66)
draw.text(str,x+1,y+1,66)
draw.text(str,x-1,y+2,66)
draw.text(str,x,y+2,66)
draw.text(str,x+1,y+2,66)
draw.text(str,x,y+1,col2)
draw.text(str,x,y,col)
end