mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2024-12-26 09:58:48 +01:00
unalign
This commit is contained in:
parent
7b017fb2c8
commit
7aa6186c68
1 changed files with 5 additions and 5 deletions
|
@ -222,11 +222,11 @@ function start_loop( state, elt ) {
|
|||
board_infos.cell_dimensions = {};
|
||||
board_infos.cell_dimensions.width = board_infos.dimensions.width / LEVEL_WIDTH;
|
||||
board_infos.cell_dimensions.height = board_infos.dimensions.height / LEVEL_HEIGHT;
|
||||
var movingpos = get_pos( state, state.moving );
|
||||
var notmovingpos = get_pos( state, ( state.moving != cell.BALL ) ? cell.BALL : cell.CUBE );
|
||||
var click = {};
|
||||
click.x = e.pageX - board_infos.position.left;
|
||||
click.y = e.pageY - board_infos.position.top;
|
||||
var movingpos = get_pos( state, state.moving );
|
||||
var notmovingpos = get_pos( state, ( state.moving != cell.BALL ) ? cell.BALL : cell.CUBE );
|
||||
var click = {};
|
||||
click.x = e.pageX - board_infos.position.left;
|
||||
click.y = e.pageY - board_infos.position.top;
|
||||
|
||||
if ( ( 0 <= click.x && click.x < board_infos.dimensions.width )
|
||||
&& ( 0 <= click.y && click.y < board_infos.dimensions.height ) ) {
|
||||
|
|
Loading…
Reference in a new issue