- Açò de developar i que se vegen els commits es un fer la mà

This commit is contained in:
2023-09-01 20:46:11 +02:00
parent bf90101119
commit 4ee794a909
5 changed files with 121 additions and 32 deletions

View File

@@ -19,8 +19,8 @@ game={
restart=function()
flags={}
objects.list={}
actors.main={name="jailer",x=10,y=26,o="r",gfx={x=32,y=0},level="arq"}
game.init("arq")
actors.main={name="jailer",x=25,y=6,o="r",gfx={x=32,y=0},level="jail1"}
game.init("jail1")
end,
init=function(levelname,f,objs)
@@ -137,7 +137,13 @@ game={
end
setmap(mapa.surface)
camera(0,0)
text(tostring(game.cam.x)..","..tostring(game.cam.y),1,1,8)
text(game.cam.x..","..game.cam.y,1,1,8)
if hero then
text(hero.x..","..hero.y,1,7,8)
end
text(game.level,1,13,8)
if not scene.script and hero and not hero.path and hero.dx+hero.dy==0 then
if btn(KEY_DOWN) then
hero.path={pos=0,route='d',keys=true}