Switches funcionant
This commit is contained in:
@@ -21,12 +21,13 @@ viewp:position(0,0)
|
||||
actors={}
|
||||
|
||||
function game_init(menu)
|
||||
|
||||
abad_init()
|
||||
table.insert(actors,abad)
|
||||
|
||||
local abad_x, abad_y = arc_mapa_get_coords ( 10, 4, 3 )
|
||||
print(abad_x..", "..abad_y)
|
||||
-- print(abad_x..", "..abad_y)
|
||||
abad:move(abad_x, abad_y)
|
||||
|
||||
local scr_ax, scr_ay = viewp:screen_coords(abad_x, abad_y)
|
||||
|
||||
game_update=update_game
|
||||
@@ -88,6 +89,8 @@ function update_game()
|
||||
-- if vp_y+1<=(tile_h*mapa_room_rows*mapa_pisos)-(res_h) then vp_y = vp_y+1 end
|
||||
--end
|
||||
|
||||
load_tilemap( sf_mapa )
|
||||
|
||||
if key.press(key.N1) then
|
||||
local hab = math.random(0, 79)
|
||||
local hab_x = math.random(0, mapa_room_cols-1)
|
||||
@@ -114,6 +117,8 @@ function update_game()
|
||||
-- end
|
||||
--end
|
||||
end
|
||||
switches.update()
|
||||
|
||||
local vp_x = viewp.x
|
||||
local vp_y = viewp.y
|
||||
--viewp:position(vp_x, vp_y)
|
||||
|
||||
Reference in New Issue
Block a user