Code for a simple zombie-themed game with Matlab.
Open a Matlab instance, and run
>>> zombie_game
Use arrow keys to move Rick. Use space bar to shoot. You can shoot only one bullet at the time.
The zombie moves up and down on the screen. Rick Grimes can move in any direction, and can shoot. The objective is to shoot the zombie in the head and kill it. If the zombie touches Rick, then Rick dies and the game is over.