Tickets

Issues

// TODO: implement this instead of rotating 3 times

  • Id: 4e90364d19cbcf3b5cd6b851baff15a5
  • Status: Open
  • Initial commit: 0d602bd092c330a345841590566c75be2fed5611
  • Creation date: 2015-02-08 12:15:37
  • Last changed: 2015-02-15 20:35:51
  • Created by: Laurent Defert
  • File: js/block.js
  • Last changed by: Laurent Defert
  • Tag:

        // TODO: implement this instead of rotating 3 times
        for (var i = 0; i < 3; i++) {
            this.rotate(false, true);
        }
        if (!force && this.overlaps(this._x, this._y)) {
            // Revert the rotation in case of collision

History
    Changed by Laurent Defert on 2015-02-15 20:35:51 during 664e936c0193fb75b325e68324a62cecd7b6e5d8
  • Content: updated from
            // TODO: implement this instead of rotating 3 times
            for (var i = 0; i < 3; i++) {
                this.rotate(false);
            }
            if (this.overlaps(this._x, this._y)) {
                // Revert the rotation in case of collision