But there's still no way to switch levels on a touch screen. And, when I give this much space to buttons, no place to put them without accidentally hitting them.
I'm not bothering to think too hard about the positioning of the 'edit' button. button.lua will send events to all buttons at a given position, and in this case the semantics of one of them will swamp the others.
TWOCOTZPRAI2JQH6QY2ZBUZGYA53G7MCOSO64LBIO7OCVEHK7AGQC
function draw_buttons()
local bg = {r=0.4,g=0.2,b=0.4}
button(ui_state, 'left', {x=0, y=top, w=left, h=lh*side,
bg=bg, onpress1=move_left})
button(ui_state, 'right', {x=left+lw*side, y=top, w=Safe_width-left-lw*side, h=lh*side,
bg={r=0.4,g=0.2,b=0.4},
onpress1=move_right,
})
button(ui_state, 'up', {x=left, y=0, w=lw*side, h=top,
bg=bg, onpress1=move_up})
button(ui_state, 'down', {x=left, y=top+lh*side, w=lw*side, h=Safe_height-top-lh*side,
bg={r=0.4,g=0.2,b=0.4},
onpress1=move_down,
})
end