This is an old revision of the document!
Tetris Game
This is a demonstration of how the overhead introduced by AspectScript in an interactive application is negligible. Please try the game and let us know if you feel any noticeable difference!
On the left it is the original tetris game, unmodified. On the right it is the instrumented version, with one global aspect deployed this way:
var pointcut = function(){ return true; }; var advice = function(jp) { return jp.proceed(); }; AspectScript.around(pointcut, advice);
The pointcut matches all the join points it sees and the advice just proceeds.
The counter below the game frames shows the number of jp seen by the aspect.
0 join points matched so far! [reset]