forked from JailDoctor/cacaus
Ja se veuen be el gorro, el gps, el peu, el cacau, la fireball i el imp que eixia 'flipat'
This commit is contained in:
13
data/peu.lua
13
data/peu.lua
@@ -1,3 +1,13 @@
|
||||
local arcade_config = require("arcade_config")
|
||||
o2aX = arcade_config.org2arc_escala
|
||||
cxr = arcade_config.character_per_row-1
|
||||
cxr2 = arcade_config.character_per_row_base2
|
||||
cw = arcade_config.character_width
|
||||
ch = arcade_config.character_height
|
||||
-- posició en el gif
|
||||
peu_gif_col = 7
|
||||
peu_gif_row = 2
|
||||
|
||||
peu={hab=5,x=48,y=24,bb={x=0,y=0,w=8,h=8}}
|
||||
|
||||
function peu.init()
|
||||
@@ -11,6 +21,9 @@ end
|
||||
|
||||
function peu.draw()
|
||||
draw.surf(112,32,16,16,peu.x,peu.y,16,16)
|
||||
local x = peu_gif_col*cw
|
||||
local y = peu_gif_row*ch
|
||||
draw.surf(x,y,cw,ch,peu.x*o2aX,peu.y*o2aX,cw,ch)
|
||||
end
|
||||
|
||||
function peu.update()
|
||||
|
||||
Reference in New Issue
Block a user