
previous

page 28
next
needed in globals.js:
var g_kount=0;
and to make sure the panel disappears, you'll also need:
var g_rock=true;
and the following will replace your rock_clicked function in clicks.js:
function open_rock() {
var rock=document.getElementById('rock');
rock.classList.add('move');
g_rock=false;
}
var rock=document.getElementById('rock');
rock.classList.add('move');
g_rock=false;
}
and you'll need this extra line in set_scene:
if (n==5 && g_rock) Show_class('cell');
And that brings us to the end of this adventure.
I hope that you're inspired to create an adventure of your own.
Happy coding ... Peter
previous
next