Code covered by the BSD License  

Highlights from
Stellaria (Tech Demo) - The best MATLAB shooting game ever

image thumbnail

Stellaria (Tech Demo) - The best MATLAB shooting game ever

by

 

14 May 2011 (Updated )

If you think you have played the best MATLAB game before. Think again after you try this one.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

stl_enterImpromptuEnemies()
function stl_enterImpromptuEnemies()
global numImpromptuEnemies
global queueImpromptuEnemies

if numImpromptuEnemies > 0
    [addedEnemyIndices, nEnemies] = stl_addToGlobalEnemies(queueImpromptuEnemies(1:numImpromptuEnemies));
    if nEnemies ~= numImpromptuEnemies
        error('STL_ENTERENEMIES(): Too many Impromptu Enemies.');
    end
    numImpromptuEnemies = 0;
end

Contact us