Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-13532

samegame.js bug in /tutorials/samegame/samegame4/content/samegame.js

XMLWordPrintable

    • 5dc99c2de83860c39abe56f4ad5d445508a25dd3

      If you remove a column all the columns right of it move so far left that the are out of the board.

      This patch works for me:
      (got the line from samegame3)

      diff --git a/examples/declarative/tutorials/samegame/samegame4/content/samegame.js b/examples/declarative/tutorials/samegame/samegame4/content/samegame.js
      index 79ff0c1..38b5d8c 100755
      — a/examples/declarative/tutorials/samegame/samegame4/content/samegame.js
      +++ b/examples/declarative/tutorials/samegame/samegame4/content/samegame.js
      @@ -145,7 +145,7 @@ function shuffleDown()

      { obj = board[index(column, row)]; if (obj == null) continue; - obj.x = (fallDist - column) * gameCanvas.blockSize; + obj.x -= fallDist * gameCanvas.blockSize; board[index(column - fallDist, row)] = obj; board[index(column, row)] = null; }

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            aalpert-nokia Alan Alpert (closed Nokia identity) (Inactive)
            tsenyk Thomas Senyk (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes