This might be of interest?
I started to make this a while ago as I was volunteering at our local CoderDojo and wanted a "simple" engine to teach the kids some of the basics of game development.
Everything fits in a single lua file with the basic design idea that anyone could easily mess around...