Its also the plot of a 90s star trek tie in novel for children where they had kids play a censored video game but were really exterminating the native population
https://memory-beta.fandom.com/wiki/Highest_ScoreAnyways, its a reasonably common sci-fi plot.