It took a clutch tip-in by forward Ersan Ilyasova with 2.2 seconds left, but the Milwaukee Bucks finally walked off with a home-court victory Tuesday night.

The Bucks survived a wild shootout with the Washington Wizards, 119-118, despite some shaky defense and another case of late-game jitters.

Milwaukee (14-20) opened the second half of the season on a positive note, helped by a season-high 28 points from guard Mike Dunleavy Jr., who sank 5 of 10 three-point attempts.

And the Bucks ended their six-game home losing streak as they headed out for a three-game trip, beginning Wednesday night in Boston.

Point guard Brandon Jennings dribbled the ball off his foot with the Bucks leading by one point and 12.3 seconds left, and Wizards point guard John Wall quickly drove to the right side for a go-ahead basket with 6.8 seconds remaining.

But when Jennings drove the lane and missed a runner, Ilyasova was perfectly positioned for the tip.

"He's been on the O-board all year," Bucks coach Scott Skiles said of Ilyasova. "He followed it up; he was right where he should be.

"And fortunately it came off in perfect position for him to be able to tip it in."

The Bucks led by as many as 22 points in the second quarter and by 18 points early in the third quarter before the Wizards (7-27) stormed back behind the penetrating drives of Wall and accurate three-point shooting from his teammates.

Washington sank 13 of 24 three-pointers, including 3 of 4 by Jordan Crawford, 4 of 6 by Roger Mason Jr. and 3 of 4 by Maurice Evans.

Wall, who was limited to six points in the Wizards' first visit to the Bradley Center in December, had 19 points, a career-high tying 15 assists and seven turnovers while playing 43 minutes.

"Wall was the guy breaking us down," Skiles said. "He was driving all the way to the rim and kicking out for those threes. We had a hard time stopping him from getting into the paint."

But the Bucks offense also was in high gear, scoring a season-high 67 points in the first half, helped by a 16-point outburst from Dunleavy in the second quarter.

Dunleavy played the entire quarter and was 6 of 9 from the field and 4 of 7 from three-point range.

"I thought we played well in the first half," Dunleavy said. "We let them hang around and in the third (quarter) they made their run and it was just a shootout from there.

"At home, and a close game, it was certainly what we needed. We felt like we should have been in a position to win by a lot more, but it is what it is and we're happy to have the win."

Bucks center Drew Gooden returned after missing four games with a torn ligament in his right wrist and contributed 15 points and 10 rebounds. But he fell hard to the floor after being fouled in the third quarter and had to go to the locker room for treatment.

Gooden returned to the bench during the fourth quarter and could have played, according to Skiles.

Ilyasova finished with 13 points and 11 rebounds and Luc Richard Mbah a Moute added 13 points and six rebounds. Rookie Tobias Harris returned after missing three games with a sprained right shoulder and had 11 points and seven rebounds.

Backup point guard Beno Udrih helped the Bucks build their big lead in the first half and finished with six points and nine assists, while Jennings had 14 points and 10 assists.

Washington went with a small lineup to get back in the game, using Chris Singleton at the power forward position and 6-foot-7 Trevor Booker at center.