Charli XCX took a break from touring Wednesday night to perform at an unlikely venue: a high school gymnasium.

The chart-topping 22-year-old pop star delivered the tunes “I Love It,” “Fancy” and “Boom Clap” to a crowd of excited high school students at Aspire Pacific Academy’s homecoming dance. She later manned the DJ booth.

“Homecoming dances and proms are an American thing I’ve always been very fascinated with because all of my favorite movies end with a prom or something like that,” said Charli, who was born and raised in England. “I was really excited because I thought it was going to be like my own `Jawbreaker’ moment.”

The special homecoming takeover was sponsored by Ubisoft, the video game developer whose recently released “Just Dance 2015” features tracks from Charli.

Ubisoft decided to host the “Fancy” dance at Aspire Pacific Academy because of the charter school’s commitment to performing arts and higher education.