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.appspot.com/
The developer's site is at https://github.com/google/blockly-games/wiki