previous

page 27

next
setup()
function setup() {
g_running=false; stop();
g_side=45*vmin();
var buttons=document.getElementById('buttons');
buttons.style.width=g_side;
var next_button=
document.getElementById('next_button');
next_button.style.width=g_side;
var give_up_button=
document.getElementById('give_up_button');
give_up_button.style.width=g_side;
var nos=document.getElementById('numbers');
nos.style.width=g_side;
var canvas=document.getElementById('c');
canvas.width=g_side; canvas.height=g_side;
g_ctx=canvas.getContext('2d');
canvas=document.getElementById('robot');
canvas.width=g_side; canvas.height=g_side;
g_robot=canvas.getContext('2d');
canvas=document.getElementById('target');
canvas.width=g_side; canvas.height=g_side;
g_x0=g_side/2; g_y0=g_side*.75;
g_step=g_side/8;
home();
numbers();
}
previous
next