I coded a couple of Matlab games as a fun side-project with the intention to use them as a teaching tool for an undergraduate Matlab programming class. Both games use a limited number of Matlab functionalities and are less than 1000 lines long when combined. You can see a couple of screenshots below.
You can find the games (and more information) here.