JumpyJump.v4: a MATLAB computer game
![](https://static.wixstatic.com/media/86f499_d1c50a0d8aa347dcb28d55d8abaac563~mv2.png/v1/fill/w_594,h_394,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/86f499_d1c50a0d8aa347dcb28d55d8abaac563~mv2.png)
After I had spent a semester learning the basics (and not-so-basics) of MATLAB, it was time to tackle the final project - make a computer game or cool application using MATLAB. As I was familiar with the hidden google loading-page game, I decided to make a MATLAB replica of that game, but add in a few personal touches.
The game is played similarly to the google dinosaur game - obstacles scroll left across the screen and the dinosaur jumps over them. Unlike the google game, there is a large number of obstacle types - cacti of varying size, birds, and mystery boxes. These mystery boxes are marked with normal or upside-down question marks to signify good or bad powerups that can make or break the dinosaur's journey along the map. The game gradually speeds up to get increasingly difficult.
If you have a copy of MATLAB, you can download my game here:
http://www.mathworks.com/matlabcentral/fileexchange/51105-jumpyjumpv4
The game is over 1000 lines of code. I optimized it to run best (MATLAB isn't great for games as compared with other coding languages). This project really helped introduce me to the fun of writing code.
![]() My game's home/respawn screen. | ![]() JumpyJumpv4 gameplay |
---|