BMP based games!

Hey hey, here is a game that is based 100% on BitmapData.

Here’s an editor:

[FONT=Courier New]

_xscale = _yscale=2000;
import flash.display.BitmapData;
var bmp:BitmapData = new BitmapData(20, 20, false, 0x000000);
this.attachBitmap(bmp, 1);
c = new Array();
function create() {
 if (Key.isDown(1)) {
  if (Key.isDown(Key.DELETEKEY)) {
   if (bmp.getPixel(_xmouse, _ymouse) !== 0x000000) {
    for (i=0; i<c.length; i++) {
     bmp.setPixel(_xmouse, _ymouse, 0x000000);
     c.push("["+Math.floor(_xmouse), Math.floor(_ymouse), "c.bg]");
    }
   }
  } else {
   if (bmp.getPixel(_xmouse, _ymouse) !== 0xff0000) {
    bmp.setPixel(_xmouse, _ymouse, 0xff0000);
    c.push("["+Math.floor(_xmouse), Math.floor(_ymouse), "c.wall]");
   }
  }
 }
}
onMouseUp = function () {
 if (Key.isDown(Key.END)) {
  trace("map=["+c+"];");
 }
};
onEnterFrame = function () {
 create();
};

[/FONT]
[FONT=Courier New]
For the levels, var map=[ [x,y,color], [x,y,color], …][/FONT]