Lucas Unger was excited to reach the next level of “The Gallery: Six Elements,” a virtual-reality videogame his parents are developing. But the eight-year-old had a problem. He wasn’t tall enough in real life to pull a lever in the virtual world.

“I was too short,” the second grader said. “I was reaching up super high. It was hard.”

Two years...