SpelunkyFan wiki

objects/oHighscores/step.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.

oHighscores's step event, 17 lines of GML.

// shake the screenif (global.shake > 0){    //view_xview[0] = view_xview[0] + rand(0,3) - rand(0,3);    //view_yview[0] = view_yview[0] + rand(0,3) - rand(0,3);    //if (view_yview[0] > 16) view_yview[0] = 16 - rand(0,8);    //if (view_yview[0] < 0) view_yview[0] = 0 + rand(0,8);    if (shakeToggle) view_yview[0] = view_yview[0] + rand(1,8);    else view_yview[0] = 0;    shakeToggle = not shakeToggle;    global.shake -= 1;}else{    view_xview[0] = 0;    view_yview[0] = 0;}