Ive done something similar before. Went with a videogame and showed them how it editing the code changed the game. They started requesting silly changes and went from there. Super fun.
may I ask which videogame did you use?
Javascript Pacman.
I have a first grader who now knows how to edit the javascript file in Atom, increase the number of lives parameter, make edits to the map etc...
We also swapped out the pac man with my face, which is a source of continued amusement, especially the death animation.