Tuesday, November 18, 2014

Work Completed

The goal was:
Navigation and Testing

I got some navigation done and worked out a few bugs. Nothing very exciting. I did add a few new functions to EntityPlus. One is centerOnTarget(_e:Entity) which will center an EntityPlus on the Entity you pass.

public function centerOnTarget(_e:Entity):void
{
        var thisImg:Image = graphic as Image;
        var targetImg:Image = _e.graphic as Image;

x = (_e.x + (targetImg.width * .5)) - (thisImg.width * .5);
y = (_e.y + (targetImg.height * .5)) - (thisImg.height * .5);
}


I spent most of my time today messing around with some background visuals in the title screen. Blocks fall from above the screen in columns stopping before the bottom and stack on top of each other. Once the stack has reached the top, the bottom of the stack falls off the screen one by one. The last one to fall will stop right before the bottom of the screen and then the process repeats itself.

Each block that falls has a 20% chance of briefly flashing a green toxic glow. I messed around with that green flash further and made it cascade down each block in its column but ended up not using that.




No comments:

Post a Comment