Star forward LeBron James scored 40 points and main sidekick Dwyane Wade added 39 to lead the Miami Heat to a 141-129 double-overtime victory over the Sacramento Kings, extending their team's winning streak to 12 games.

The Heat seemed to have Tuesday night's game in hand when they led 112-104 with 1:40 left in regulation at the American Airlines Arena in Miami, but the Kings forced the first overtime thanks to two 3-pointers by reserve guard Marcus Thornton and a pair of missed free throws by Wade.

Miami's defense came alive at the end of the game, however, to salvage the victory.

First, power forward Chris Bosh blocked a shot by Kings guard Isaiah Thomas at the end of the first overtime, and then the Heat held Sacramento to just five points in the second overtime to win by 12.

James dished out 16 assists for the game, his highest tally this season. He also became the first player to register 40 points and 16 assists in a single contest since the Phoenix Suns' Kevin Johnson - the current mayor of Sacramento - did so in April 1994.

For all of February, James made 139 of his 217 field goals attempts, a 64.1 percent clip that was his highest-ever monthly total.

The Heat's 141 points, meanwhile, tied a franchise record set in 1991.

Wade also established some marks of his own on Tuesday night, notching his highest point total of the 2012-13 season and making a career-best 19 field goals.

Veteran guard Ray Allen came off the bench to score 21 points for the Heat and Bosh added 15 points and eight rebounds.

Thornton led the way for the Kings with 36 points, the highest scoring effort this season by a player that started the game on the bench.

Tyreke Evans added 26 points and power forward DeMarcus Cousins notched a double-double with 24 points and 15 rebounds.

The Heat's record improved to 41-14, the NBA's second-best mark, while the Kings, who have won just one of their last 18 games against Miami dating back to March 2004, fell to 19-39.

In other NBA action Tuesday night, the Orlando Magic defeated the Philadelphia 76ers 98-84, the Indiana Pacers topped the Golden State Warriors 108-97, and the Brooklyn Nets edged the New Orleans Hornets 101-97.

The Cleveland Cavaliers slipped past the Chicago Bulls 101-98, the Milwaukee Bucks rallied past the Dallas Mavericks 95-90, the Phoenix Suns narrowly defeated the Minnesota Timberwolves 84-83, and the Los Angeles Clippers routed the Charlotte Bobcats 106-84. EFE