Code covered by the BSD License  

Highlights from
Mario Sim v0.1

image thumbnail
from Mario Sim v0.1 by Ryan
Simple sprites demo; NOT A FULL GAME. Mario is fully controllable within confined space.

keyrelease(varargin)
function keyrelease(varargin)
%updates global variables to indicate key releases

global dxnkey;
global dxnpressed;		
global shiftpressed;
global spacepressed;

key = get(gcbf,'CurrentKey');

if strcmp(key,'shift')
	shiftpressed=0;
elseif strcmp(key,'space');
	spacepressed=0;
elseif strcmp(key,dxnkey)
	dxnpressed=0;
end;

Contact us at files@mathworks.com