SpelunkyFan wiki

objects/oMoonRoom/alarm_11.gml

From spelunky.gmk, Spelunky Classic 1.1's source, © 2008, 2009 Derek Yu and Mossmouth, LLC, shown whole under the Spelunky User License v1.1b. Extracted by spelunky.ai's tools, an unofficial fan project, one file per script or event; the // ==== lines are the extractor's, naming each action of the event. Some scripts are others' work that Derek Yu credits in the source's readme.txt: Martin Piecyk's platform engine, ChevyRay's view scaling scripts and tsg1zzn's Super Sound System.

oMoonRoom's alarm 11 event, 28 lines of GML.

timer -= 1;if (timer == 0){    global.mini2 = oMoonRoom.baskets;    if (global.mini2 > 99) global.mini2 = 99;    scrUpdateHighscores(2);    timer -= 1;    oGame.drawStatus = 1;    with oBatTarget    {        obj = instance_create(x+8, y, oPoof);        obj.xVel = 0;        obj.yVel = -1;        obj = instance_create(x+8, y, oPoof);        obj.xVel = 0;        obj.yVel = 1;                instance_destroy();    }    with oEntrance    {        instance_create(x, y, oXScores);        instance_destroy();    }    alarm[10] = 30;}else    alarm[11] = 30;