Wednesday, June 22, 2005

bored bored bored bored bored bored

//Would anyone like to know what this does?
//There are eighteen platforms
for (i=1; i[lessthan]19; i++) {
//If u are still reading, I'm guessing u really like Brackets!!
LAND_X = getProperty("_root.landing"+i, _x);
LAND_Y = getProperty("_root.landing"+i, _y);
LAND_WIDTH = getProperty("_root.landing"+i, _width);
//The amazing part is that I need to come up with this
//in real time. (as fast as you're reading it)
if (this._y[greaterthan]LAND_Y and
this._y[lessthan]LAND_Y+this.dy+baseObjHeight and
(this._x[greaterthan]LAND_X-LAND_WIDTH*.5 and
this._x[lessthan]LAND_X+LAND_WIDTH*.5
)
) {
//Dont worry.. all this does is stop's the 'thing' from
//falling off the screen - it lands on one of these
//platforms!
stopFall = true;
}
// This checks the out-of-bounds area for each platform
if (this._x[lessthan]LAND_X-LAND_WIDTH*.5 OR
this._x[greaterthan](LAND_X+130)) {
stopFall = false;
}
//it works, so please dont send me bug reports and arbit
//ideas of how it would work better!

}
//You really are bored?! otherwise u would NEVER have read this much
if (stopFall == false) {
this._y += this.dy;
}
//A little bouncing is good... when it lands..
jump -= 3.5;
if (jump[lessthan]0) {
jump = 0;
}
//forget this.. there is a lot more code but I didnt feel like writing
//comments for it...
this._x -= this.dx;

//so thats about all I do, nowadays...
//sad...

No comments: