[FIX] Col·lisió en el peu
[FIX] Canviada dialeg.run a dialeg.show [NEW] Afegit dialeg.add
This commit is contained in:
+4
-1
@@ -7,7 +7,7 @@ ch = arcade_config.character_height
|
||||
peu_gif_col = 7
|
||||
peu_gif_row = 2
|
||||
|
||||
peu={name="peu",hab=5,x=6,y=3,w=32,h=32,bb={x=0,y=12,w=32,h=20}}
|
||||
peu={name="peu",hab=5,x=6,y=3,w=32,h=32,bb={x=4,y=12,w=26,h=20}}
|
||||
|
||||
function peu.init()
|
||||
-- local habs={{18,8},{16,2},{16,7},{15,5},{27,1},{27,10},{29,2},{38,8},{69,2},{79,3}}
|
||||
@@ -35,6 +35,9 @@ function peu.draw()
|
||||
local y = peu_gif_row*ch
|
||||
local scr_x, scr_y = viewp:screen_coords( peu.x, peu.y )
|
||||
draw.surf(x,y,peu.w,peu.h,scr_x,scr_y,peu.w,peu.h)
|
||||
|
||||
-- bb debug
|
||||
draw.rect(scr_x+peu.bb.x,scr_y+peu.bb.y,peu.bb.w,peu.bb.h,3)
|
||||
end
|
||||
|
||||
function peu.update()
|
||||
|
||||
Reference in New Issue
Block a user