no need of dummy value
This commit is contained in:
parent
fa413b05ec
commit
1733b5c531
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ function display_on_canvas( state, canvas_elt ) {
|
||||||
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 );
|
||||||
var sprite = "bla";
|
var sprite;
|
||||||
switch( c ) {
|
switch( c ) {
|
||||||
case "@": sprite = ( state.moving == cell.BALL ) ? sprites.ball_selected : sprites.ball; break;
|
case "@": sprite = ( state.moving == cell.BALL ) ? sprites.ball_selected : sprites.ball; break;
|
||||||
case "H": sprite = ( state.moving == cell.CUBE ) ? sprites.cube_selected : sprites.cube; break;
|
case "H": sprite = ( state.moving == cell.CUBE ) ? sprites.cube_selected : sprites.cube; break;
|
||||||
|
|
Loading…
Reference in a new issue