finalizing the game...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-04-05 18:53:07 +03:00
parent 8ea9c548c0
commit 70d227361d

View File

@ -213,9 +213,26 @@ function test(game){
} }
// XXX keyboard controller...
// - press two buttons in under N milliseconds to launch a snake
// - first button pressed is left, second is right
function setup(){
Snake('.snake')
// setup base level...
// XXX
.start()
// XXX setup kb handler...
// XXX
}
</script> </script>
<body> <body onload="setup()">
<table class="snake field" cellspacing="0"> <table class="snake field" cellspacing="0">
<tr> <td></td><td></td><td></td><td></td> <td></td><td></td><td></td><td></td> <tr> <td></td><td></td><td></td><td></td> <td></td><td></td><td></td><td></td>
@ -255,6 +272,10 @@ function test(game){
<td></td><td></td><td></td><td></td> <td></td><td></td><td></td><td></td> </tr> <td></td><td></td><td></td><td></td> <td></td><td></td><td></td><td></td> </tr>
</table> </table>
<p>
XXX basic instructions...
</p>
</body> </body>
</html> </html>
<!-- vim:set ts=4 sw=4 : --> <!-- vim:set ts=4 sw=4 spell : -->