Search Comments and Ratings

go

   
Date File Comment by Comment Rating
25 Mar 2013 Matlab Space Invaders VideoGame A tribute to Space Invaders coded in Matlab. Just take fun and get ideas for more games. Author: Héctor Corte Zhang, Mingjing

Very cool game with an authentic retro feel. However I do have two complaints about it:

1. it may be a better idea not to write the code for keyboard handling in KeypressFcn. Because that way you would experience a delay (~0.5 s) after the first keypress. Instead, set a variable to true in KeypressFcn and false in KeyreleaseFcn, and check the status of this variable in the main loop to determine whether this key is pressed or not;

2. The bullets travel too fast. They usually go right through an enemy without hitting it. Possible solutions are 1) slowing down the bullets (less distance per frame, slower apparent speed), or 2) not slowing down the bullets, but increasing the frame rate(less distance per frame, same apparent speed), or 3) using better collision detection algorithm (same distance per frame, same apparent speed).

Anyway, I do like this game. Please keep writing more stuffs like this!

10 Jan 2013 Stellaria (Tech Demo) - The best MATLAB shooting game ever If you think you have played the best MATLAB game before. Think again after you try this one. Author: Mingjing Zhang Zhang, Mingjing

@Zheng 随便写着玩的,见笑了

16 Oct 2012 Stellaria (Tech Demo) - The best MATLAB shooting game ever If you think you have played the best MATLAB game before. Think again after you try this one. Author: Mingjing Zhang Zhang, Mingjing

@Kozlov
Thank you for bringing this problem to my attention. I'll add the said feature as soon as possible.

29 Sep 2012 Stellaria (Tech Demo) - The best MATLAB shooting game ever If you think you have played the best MATLAB game before. Think again after you try this one. Author: Mingjing Zhang Zhang, Mingjing

Type

opengl software

before you run the game. If that solves the problem, then the most possible explanation of the upside-down text is that your OpenGL driver does not work properly with MATLAB. You must either upgrade your driver/card, or stick to the software renderer.

Alternatively, you can run

opengl hardware
f = figure(1); title('Rightside up'); set(f,'Renderer','OpenGL');

and see if the problem could be reproduced.

The following link may help
http://www.mathworks.com/support/solutions/en/data/1-91JU4U/?solution=1-91JU4U
------------

Anyway, I do believe that a submission should be judged based on its overall quality instead of minor bugs that are not even caused by the program itself. So I would never rate until I truly understand what the program does, how to use the program and what causes the problems (if any). If you do find a bug in the program, a more constructive idea would be to report the bug with details so that the author could correct it, rather than leaving a bad remark that doesn't give much info.

Then again, I was just speaking from a developer's point of view; not even trying to change your style of criticism. do what you believe is correct.

29 Sep 2012 Stellaria (Tech Demo) - The best MATLAB shooting game ever If you think you have played the best MATLAB game before. Think again after you try this one. Author: Mingjing Zhang Zhang, Mingjing

steve:
I'm really sorry for the inconvenience but there IS a file named README.txt in the package, in which I explicitly stated
"!Run stl_StellariaMain to play!"

And may I ask you, please, read the manual before recklessly giving a low rating.

As for the upside-down text, I have never produced the same problem on all (10+) computers with different versions of MATLAB. I won't put too much hope on you but if you are still interested, please provide more details (your MATLAB/Win version, which text is upside-down, and so on) so I can fix the bug.

03 May 2012 Snake3D 3-dimensional version of the classic Snake. playsnake starts the game!!! Takes some practice. Author: Rob Zhang, Mingjing

If you mean the voices I heard when the snake hit itself or when the game is over, yes the sounds do work (What does it say when the snake hits the wall? It sounds like "dooh" but I cannot make anything out if it).

I think you are right about the apple's shadows. I pictured in my mind what the game would have looked like if the shadows of the apple are added, and it does not appear good.

It seems that you have a great team and you guys really had fun. I envy you guys. When I tried to write a game, I never get to work with a team...Anyway, you guys should keep going and make more things like that.

01 May 2012 Snake3D 3-dimensional version of the classic Snake. playsnake starts the game!!! Takes some practice. Author: Rob Zhang, Mingjing

Well designed game with good player experience. I especially like the practice mode. The projections of the snake on three surfaces are very helpful for locating the snake in the 3D space.

The only problem I find is that the position of the apple (or whatever you may call it) is hard to determine since its projections are not shown on the walls of the cube.

25 Jan 2012 Carcassonne Emulation of the map-building game Carcassonne, including 4 expansion packs Author: Joren Heit Zhang, Mingjing

I think this game is even better than your RISK game.I can't tell if there is any bug in the code since I don't know much about the rules of this game. However, based on what I see, the graphics and the interface is just amazing.

The only annoying part is that it is contingent on the maxfig+figstate functions which can only be downloaded from somewhere else. Is it possible to corporate them into your own zip file?

16 Jan 2012 MATLABTETRIS Another MATLAB version of the classic game, Tetris. Author: Matt Fig Zhang, Mingjing

Yeah, my laptop is kinda old. Upon a closer examination, however, I noticed that the game is only 'sluggish', i.e. the movement of the block is not smooth, only when I hold the 'down' key.

I think it might not be that hard to change them to images, since the blocks have a very simple and symmetrical spatial structure. I believe they can be generated procedurally rather than hard-coded. For example, the following code will generate a simple block (index image):
--
a = ones(16,16);
[x y] = meshgrid(1:16);
a((x<=3|y<=3)&(x<=16-y))=0;
a((x>=14|y>=14)&(x>16-y))=2;
imagesc(a)
--

Anyway I think this game is already almost perfect. I just want to share with you how I would have written it.

15 Jan 2012 MATLABTETRIS Another MATLAB version of the classic game, Tetris. Author: Matt Fig Zhang, Mingjing

Very good one! Probably the best-looking Tetris on this site(Although it runs a little sluggish on my laptop.)

I believe its performance could be improved by using 1~2 image objects instead of 19x9 patch objects: Regard the whole playfield (including the 'frame' and all the 'fixed' blocked at the bottom) as an image object and the currently falling block as another. Or you can treat everything as one image object, since the background is just one simple color.

05 Jan 2012 RISK This is a digitalized version of the famous RISK board game. Author: Joren Heit Zhang, Mingjing

Great gaming experience plus well documented and organized code. The best GUI-based board game I have ever seen on this site. You should definitely make more masterpieces like this one!

09 Dec 2011 Tetris (vs AI) An extended tetris game, using the plot function. You can either play by yourself or against an AI. Author: Jan Zhang, Mingjing

"Has anyone an idea about setting a fixed time a block has to wait before it moves down one line?"

There are many ways to do it. You can either make use of a "timer" function, which runs in a given interval. Or use a structure such as the following:

fall_interval = 1.2

start_time = tic;
last_time = start_time;

while 1
current_time = toc(start_time);
if current_time-last_time>=fall_interval
block_fall();
last_time = current_time;
end
process_keyboard();
...
end

start_time is the time when a block starts to fall; last_time is the time when a block moved down; current_time is...current time.

This structure can be further improved. For example, it is not perfect to set last_time = current_time. Because if the fall_interval = 1.2
Then "last_time" (the expected time when the moving occurs) should be one of the following numbers: 1.2, 2.4, 3.6, 4.8,... Maybe you can add a counter to record how many lines have a block moved down since it appeared, and calculate the time the last fall "should have occurred".

If you want, you may check my game "Stellaria" to see how timing is handled.

Good luck

07 Dec 2011 Nintendo game&watch Egg - EG 26 simulator Game a and game b simulated, with sound Author: Maxim Vedenyov Zhang, Mingjing

Okay you are right. I tested it on both 2010b and 2011a in win7. 2010b does not give an error, however, 2011a does. Maybe there is some update of 'audioplayer' after 2010b.

07 Dec 2011 Zatacka/Achtung, die Kurve! for Matlab Remake of the classic DOS-Game Zatacka aka Achtung die Kurve Author: Joren Heit Zhang, Mingjing

Nice job. Althought it might be even better if you could include a short manual. I have to actually look into the code to find out what the control keys are and what the point of this game is (never played it before, sorry).

07 Dec 2011 Nintendo game&watch Egg - EG 26 simulator Game a and game b simulated, with sound Author: Maxim Vedenyov Zhang, Mingjing

A perfect simulator and a true masterpiece! Reminds me of my childhood...

However, I did come across one bug:
-------------------------------
??? Error using ==> audioplayer.audioplayer>audioplayer.resume at 710
A given audio device may only be opened once.

Error in ==> audioplayer.play at 88
obj.resume();

Error in ==> game at 680
play(pgot);
---------------------------------
which occurs every time after the wolf catches the first egg. If I just comment this line out then there would be no problem.

Also, I strongly recommend assigning the control to the arrow keys. Using the "numpad" on the laptop is such a pain...

By the way, come visit my page if you have time :)

07 Sep 2011 Fastest lap race!!! a school project Car races around a track hoping to get fastest lap. the car does some pretty cool drifts and etc. Author: nathanial hapeman Zhang, Mingjing

Well done! (Though I could see some discontinuity in the car's movement)

30 Jun 2011 Stellaria (Tech Demo) - The best MATLAB shooting game ever If you think you have played the best MATLAB game before. Think again after you try this one. Author: Mingjing Zhang Zhang, Mingjing

Sorry for bringing you down, man. I didn't mean it intentionally; it is just the way I felt.

18 May 2011 Stellaria (Tech Demo) - The best MATLAB shooting game ever If you think you have played the best MATLAB game before. Think again after you try this one. Author: Mingjing Zhang Zhang, Mingjing

Okay, I know exactly what you are talking about. I designed the game in such a way that the game runs in the same speed on any machine. If an occasional lag happens, the game would try to skip some frames so that it could 'catch up'. If you pause the game and the internal clock is still ticking, the game would think it has encountered a super-long lag and after you resume playing, it would run 5 times as fast as normal until it catches up to where it should be.

The timing of the game relies solely on on tic/toc pair:
stageStartTime = tic;
...
currentTime = toc(stageStartTime);

Unfortunately, stageStartTime is just a number, not an object you can 'pause'. The only workaround I came up with is to record how much time the game has been paused, then after the game is unpaused, add the duration of the paused time to stageStartTime so that toc would behave as if the pausing has never happened.

I did have this problem at the early stage of development. I thought I have already solved it...Anyway, I'll check it out agian

17 May 2011 Stellaria (Tech Demo) - The best MATLAB shooting game ever If you think you have played the best MATLAB game before. Think again after you try this one. Author: Mingjing Zhang Zhang, Mingjing

Hi Daniel,

Are you running an earlier version of MATLAB?
As far as I know, MATLAB doesn't support 'plus' for 'int64' until R2010b.

As a workaround, you may change Line 221 to:

stageStartTime = uint64(double(stageStartTime) + pauseElapsedTime.*timer2sec);

17 May 2011 Stellaria (Tech Demo) - The best MATLAB shooting game ever If you think you have played the best MATLAB game before. Think again after you try this one. Author: Mingjing Zhang Zhang, Mingjing

Thanks for the comment Dave, but I failed to reproduce the same bug on my machine. Does it happen every time you pause the game?

16 May 2011 Stellaria (Tech Demo) - The best MATLAB shooting game ever If you think you have played the best MATLAB game before. Think again after you try this one. Author: Mingjing Zhang Zhang, Mingjing

Thanks Ryan. I have not thoroughly tested the game so it has to be buggy. Have you tried it? Is it running sluggishly on your computer?

BTW, I created this game to prove a point: It is possible to make a sprite-based arcade-style game with MATLAB. You know what my next goal is: Super Mario Bros.

16 May 2011 Stellaria (Tech Demo) - The best MATLAB shooting game ever If you think you have played the best MATLAB game before. Think again after you try this one. Author: Mingjing Zhang Zhang, Mingjing

Hi Dave,

I am afraid you have to add all the 'subfolders' (at least these three: Math, Stages, Util\midi) into your search path list.

Sorry for the inconvenience.

Mingjing

08 May 2011 Dave's MATLAB Shooter a vertical-scrolling shoot-em-up game Author: David Buckingham Zhang, Mingjing

One of the best MATLAB game I have ever seen! The code is well organized and detailedly commented. Nice graphics and gameplay.

08 May 2011 Dave's MATLAB Shooter a vertical-scrolling shoot-em-up game Author: David Buckingham Zhang, Mingjing

31 Dec 2010 Mario Sim v0.1 Simple sprites demo; NOT A FULL GAME. Mario is fully controllable within confined space. Author: Ryan Zhang, Mingjing

Dude it is really cool, but I think we can make it even better... Sent you an email about a possible way to improve its performance. Please check it out.

31 Dec 2010 Mario Sim v0.1 Simple sprites demo; NOT A FULL GAME. Mario is fully controllable within confined space. Author: Ryan Zhang, Mingjing

Contact us