comment
This commit is contained in:
parent
ec1a87eb06
commit
0a449ca776
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ function won_or_not( state ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function display_on_canvas( state, canvas_elt ) {
|
function display_on_canvas( state, canvas_elt ) {
|
||||||
var ctx= $( canvas_elt )[ 0 ].getContext( '2d' );
|
var ctx= $( canvas_elt )[ 0 ].getContext( '2d' ); //$() returns a jquery object, [0] to get the canvas itself
|
||||||
for ( var i=0 ; i < LEVEL_HEIGHT ; i++ ) {
|
for ( var i=0 ; i < LEVEL_HEIGHT ; i++ ) {
|
||||||
for ( var j=0 ; j < LEVEL_WIDTH ; j++ ) {
|
for ( var j=0 ; j < LEVEL_WIDTH ; j++ ) {
|
||||||
var c = get_cell( state, j, i );
|
var c = get_cell( state, j, i );
|
||||||
|
|
Loading…
Reference in a new issue