- [NEW] Música per a l'imp
- [NEW] Escena amb l'imp - [FIX] scenes.lua - La música pot arrancar en qualsevol escena
This commit is contained in:
@@ -5,15 +5,11 @@ gorro_gif_row = 2
|
||||
gorro={name="gorro",hab=5,x=6,y=3,w=32,h=32,bb={x=0,y=0,w=16,h=16}}
|
||||
|
||||
function gorro.init()
|
||||
-- local habs={{60,5},{4,5},{34,4},{62,7},{75,4}}
|
||||
-- local r=1+math.random(0,#habs-1)
|
||||
-- gorro.hab=habs[r][1]
|
||||
-- gorro.x=habs[r][2]
|
||||
local habs={{4,5},{12,10},{21,11},{34,4},{43,1}}
|
||||
local r=1+math.random(0,#habs-1)
|
||||
gorro.hab=habs[r][1]
|
||||
gorro.x=habs[r][2]
|
||||
|
||||
-- gorro.x=habs[r][2]*8
|
||||
gorro.hab=4
|
||||
gorro.x=5
|
||||
|
||||
local world_x, world_y = coords.room_to_world(gorro.hab,gorro.x,gorro.y)
|
||||
gorro.x=world_x
|
||||
gorro.y=world_y
|
||||
|
||||
Reference in New Issue
Block a user