Google's Blockly Games is a series of educational games that teach programming. It is based on the Blockly library. All code is free and open source.
The games are at https://blockly.games/
The developer's site is at https://github.com/google/blockly-games/wiki