I have recently been looking into how to make very advanced and beautiful GUIs in Matlab.

The issue with this is that in Matlab, GUIs seem to be somehow limited compared to other languages. Historically, Matlab was supposed to be a numerical plate-form to quickly put together new ideas for computation. So the GUI is a nice bonus, but not its primary focus.

To get inspiration on how to push Matlab capabilities, I thought I would look into a domain where the GUI is the primary focus : GAMING.

Surprisingly, there are some decent games in Matlab.

Don’t get me wrong. Nothing compared to Call of Duty, but at least a very good source of inspiration to do real-time processing and beautiful usage of Matlab figure capabitilites. Keep in mind that no professional programmer in Gaming has seriously considered doing this. So these games are done by passionate and dedicated folks.

Let me show some of these games. If you found one that should be in this list, let me know.

Tetris is a THE classic in gaming. And apparently you can do a pretty decent version of Tetris in Matlab. There are several ones on Matlab file exchange. This is one that I tested and it works great!

This program works by using a timer object to update the display. It captures your keyboard to modify each frame. It uses patch objects to create blocks and move them around. The code is very clear and organized.

Stellaria is a shooting game implemented in Matlab. It looks pretty decent if you compare it to a game from the 80s. I must confess I was not impressed by the code itself. Lots of global variables. It is a little bit hard to read but it works. No timer here. It works with a WHILE loop that goes as fast as it can and updates the frames as the computation progresses. Some pretty nice effects happening in the figure window, compared to what you usually see in graphs.

Risk is a classic board game. Here we have a pretty nice usage of all standard GUI controls to create an environment a little bit more appealing than the usual.

I am still looking for Games with a very polished interface. Let me know if you know one.

I have noticed you don’t monetize your blog, don’t waste your traffic, you can earn extra cash every month because you’ve got high quality content.
If you want to know how to make extra bucks, search for: best adsense alternative Wrastain’s
tools

You missed snake 😀

http://www.mathworks.com/matlabcentral/fileexchange/29103-classic-snake-game-in-matlab-gui

Yes, that’s another good one.

I will test it out.

I made a game in MATLAB, but there is no gui 🙂

http://www.wirgilio.it/blog/2013/06/25/flood-un-gioco-realizzato-in-matlab/

Does this count?

http://www.mathworks.it/matlabcentral/fileexchange/40961-super-mario-bros-demo

Of course but as this was from the same author as Stellaria, I thought it would be nice to showcase a different game.

MingJing recently added a wolfenstein-like game to his collection : http://www.mathworks.it/matlabcentral/fileexchange/42251-operation-eigenfaust-3d-tech-demo

I am seriously impressed!

Excellent unbelivale

good work

I made 3 games for Matlab:

Moon lander: http://www.mathworks.com/matlabcentral/fileexchange/38927-moon-lander-matlab-game-example-of-getting-keypressed

Space Invaders: http://www.mathworks.com/matlabcentral/fileexchange/39277-matlab-space-invaders-videogame

Asteroids: http://www.mathworks.com/matlabcentral/fileexchange/50966-asteroids-matlab-version-game

The best way to get deals having current codes is always to seek by time.

Where can I find the codes of these games? pls. reply as soon as possible

I have noticed you don’t monetize your blog, don’t waste your traffic, you can earn extra cash every month because you’ve got high quality content.

If you want to know how to make extra bucks, search for: best adsense alternative Wrastain’s

tools

Great post! Have nice day ! 🙂 jxova

Hello Dears

I need mathlab codes for repeated game for inter-operator spectrum sharing.

please help me by giving this.

Thanks!