diff --git a/projects/flixel-desktop-habit-puzzle-game/source/HabitState.kiss b/projects/flixel-desktop-habit-puzzle-game/source/HabitState.kiss index bd291239..66b3c186 100644 --- a/projects/flixel-desktop-habit-puzzle-game/source/HabitState.kiss +++ b/projects/flixel-desktop-habit-puzzle-game/source/HabitState.kiss @@ -272,13 +272,13 @@ (new FlxSprite 0 0 (BitmapData.fromFile currentRewardFile.path))) - (set matchingPiecesLeft (new Map)) (set matchingPiecesRight (new Map)) (set matchingPiecesUp (new Map)) (set matchingPiecesDown (new Map)) (set pieceData (new Map)) (set connectedPieces (new Map)) + (doFor i (range TOTAL_PIECES) (dictSet connectedPieces i [])) (set indexMap (new Map)) (set spriteMap (new Map)) @@ -305,12 +305,6 @@ // add rewardSprites group before enabling drag-to-select on instances (add rewardSprites)) - (doFor map [matchingPiecesLeft matchingPiecesRight matchingPiecesUp matchingPiecesDown] - (map.clear)) - (connectedPieces.clear) - (doFor i (range TOTAL_PIECES) (dictSet connectedPieces i [])) - (indexMap.clear) - (let [r (new FlxRandom (Strings.hashCode currentRewardFile.path)) ros (roughOptimalScale) graphicWidth (* ros rewardSprite.pixels.width)