mirror of
https://github.com/flynx/Course-JavaScript.git
synced 2025-10-29 02:50:09 +00:00
finalizing the game...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8ea9c548c0
commit
70d227361d
@ -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 : -->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user