Some examples of player-controlled characters and computer controlled enemies as well as responsive collectibles. There are descriptive comments on the code in each sprite.
This project was created for a class at Einstein's Workshop. They are intended for movement instruction, so there isn't any 'win' condition or consequences for touching an 'enemy' sprite.