forked from JailDoctor/cacaus
El joc ja quasi es jugable. Falten els cacaus, el dispar de l'imp i alguns ajustos de posicions d'elements
This commit is contained in:
16
data/bol.lua
16
data/bol.lua
@@ -1,3 +1,14 @@
|
||||
local arcade_config = require("arcade_config")
|
||||
o2aX = arcade_config.org2arc_escala
|
||||
txr = arcade_config.tiles_per_row-1
|
||||
txr2 = arcade_config.tiles_per_row_base2
|
||||
toff = tiles_offset
|
||||
tw = arcade_config.tiles_width
|
||||
th = arcade_config.tiles_height
|
||||
-- posició en el gif des de l'offset de tiles
|
||||
bol_gif_col = 14
|
||||
bol_gif_row = 3
|
||||
|
||||
bol={hab=39,x=28,y=25,bb={x=0,y=0,w=16,h=8}}
|
||||
|
||||
function bol.init()
|
||||
@@ -6,7 +17,10 @@ function bol.init()
|
||||
end
|
||||
|
||||
function bol.draw()
|
||||
draw.surf(112,88,16,8,bol.x,bol.y,16,8)
|
||||
-- draw.surf(112,88,16,8,bol.x,bol.y,16,8)
|
||||
local x = toff+bol_gif_col*tw
|
||||
local y = bol_gif_row*th
|
||||
draw.surf(x,y,tw*2,th,bol.x*o2aX,bol.y*o2aX,tw,th)
|
||||
end
|
||||
|
||||
function bol.update()
|
||||
|
||||
Reference in New Issue
Block a user