- Canvis per a adaptar el codi a mini v0.9.95
This commit is contained in:
@@ -125,12 +125,13 @@ game={
|
||||
if btn(KEY_LSHIFT) then subpal(1,16,8) end
|
||||
actors.draw()
|
||||
subpal()
|
||||
local mx,my=mouse()
|
||||
if actors.under_cursor~="" then
|
||||
if (mousex()<=80) then
|
||||
text(actors.under_cursor,mousex()+game.cam.x+4,mousey()+game.cam.y+4,9)
|
||||
if (mx<=80) then
|
||||
text(actors.under_cursor,mx+game.cam.x+4,my+game.cam.y+4,9)
|
||||
else
|
||||
local size = #actors.under_cursor
|
||||
text(actors.under_cursor,mousex()+game.cam.x-size*4,mousey()+game.cam.y+4,9)
|
||||
text(actors.under_cursor,mx+game.cam.x-size*4,my+game.cam.y+4,9)
|
||||
end
|
||||
end
|
||||
if mapa.front_layer then
|
||||
@@ -158,9 +159,8 @@ game={
|
||||
|
||||
game.draw()
|
||||
|
||||
local mx = math.floor((mousex()+game.cam.x)/8)
|
||||
local my = math.floor((mousey()+game.cam.y)/8)
|
||||
text(mx..","..my,1,19,8)
|
||||
local mx,my=mouse()
|
||||
text(math.floor((mx+game.cam.x)/8)..","..math.floor((my+game.cam.y)/8),1,19,8)
|
||||
|
||||
text(game.cam.x..","..game.cam.y,1,1,8)
|
||||
if hero then
|
||||
@@ -199,7 +199,7 @@ game={
|
||||
local x,y=15,90
|
||||
for i,name in ipairs(objects.list) do
|
||||
local obj = object[name]
|
||||
sspr(obj.x,obj.y,16,16,x,y)
|
||||
blit(obj.x,obj.y,16,16,x,y)
|
||||
x=x+19
|
||||
if x==148 then x,y=15,y+19 end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user