SpelunkyFan wiki

objects/oOlmec/create.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.

oOlmec's create event, 38 lines of GML.

shopWall = false;makeActive();setCollisionBounds(2, 0, 62, 64);xVel = 0yVel = 0yDelta = -0.4myGrav = 0.2;invincible = true;viscidTop = 1;carryPlayer = false;image_speed = 0.4LEFT = 0;RIGHT = 1;facing = rand(0,1);// statusSTART2 = -2;START1 = -1;IDLE = 0BOUNCE = 1RECOVER = 2WALK = 3DROWNING = 4;PREPARE = 5;SLAM = 6;CREATE = 7;DEAD = 99;status = -1;counter = 0;bounceCounter = 0slammed = false;view_hborder[0] = 0;view_vborder[0] = 0;view_yview[0] = 400;view_object[0] = oOlmec;