- First commit of this great new jailgame!

This commit is contained in:
2025-06-17 13:49:55 +02:00
commit 8fbec685b1
6 changed files with 72 additions and 0 deletions

5
data/game.ini Normal file
View File

@@ -0,0 +1,5 @@
title=PAKU SIMBEL PROFANATION
config=paku
width=160
height=144
zoom=3

40
data/level.lua Normal file
View File

@@ -0,0 +1,40 @@
level = {
background = nil,
foreground = nil,
init = function()
level.background = surf.new(20*8,17*8)
level.foreground = surf.new(20*8,17*8)
map.surf(level.background)
for y=0,17*8 do
for x=0,20*8 do
map.tile(x,y,1)
end
end
map.surf(level.foreground)
map.tile(10,10,16)
end,
draw_background = function()
view.clip(0,8,160,136)
view.origin(0,8)
map.surf(level.background)
map.draw()
view.origin(4,8+4)
map.surf(level.foreground)
pal.subpal(0,32,1)
map.draw()
end,
draw_foreground = function()
view.origin(0,8)
pal.subpal()
map.surf(level.foreground)
map.draw()
end,
peiv = function()
pal.color(1, 1, 1, 1)
return "HOLA OTHER UNIT"
end
}

25
data/main.lua Normal file
View File

@@ -0,0 +1,25 @@
require "level"
x=0
function mini.init()
s = surf.load("tiles.gif")
surf.source(s)
p = pal.load("tiles.gif")
pal.set(p)
pal.trans(0)
level.init()
end
function mini.update()
view.origin(0,0)
surf.cls(1)
level.draw_background()
level.draw_foreground()
draw.surf(0, 0, 64, 64, 10, 10)
if (key.down(key.ESCAPE)) then
sys.quit()
end
end

BIN
data/sprites.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
data/tiles.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 897 B