Frame 1
function otherOnEnterFrame() {
q = (q + 1) % 360;
if ((q % 2) == 0) {
t = (t + 1) % 16;
}
r = (r + 1) % 512;
cc = int(q / 6) % 4;
cloop = 4289494016;
if (cc == 0) {
cloop = 4283445248;
}
if (cc == 2) {
cloop = 4294490112;
}
bmp[0].fillRect(new flash.geom.Rectangle(0, 0, 128, 24), cloop);
bmp[0].copyPixels(fire, new flash.geom.Rectangle(((int(q / 3) % 3) * 192) + f, 0, 128, 96), new flash.geom.Point(0, 8), null, null, true);
if ((q % 3) == 2) {
f = (f + 1) % 64;
}
gg = (gg + 1) % 32;
switch (gg) {
case 0 :
af = 0;
z = z + 2;
break;
case 2 :
af = 1;
z = z + 2;
break;
case 4 :
af = 2;
z = z + 2;
break;
case 6 :
af = 3;
z = z + 2;
break;
case 16 :
af = 4;
z = z + 2;
break;
case 18 :
af = 5;
z = z + 2;
break;
case 20 :
af = 6;
z = z + 2;
break;
case 22 :
af = 7;
z = z + 2;
break;
}
bmp[0].copyPixels(beast, new flash.geom.Rectangle(af * 72, 0, 72, 64), new flash.geom.Point(z, 8), null, null, true);
if ((q % 2) == 0) {
z--;
}
bmp[0].copyPixels(black, new flash.geom.Rectangle(b, 0, 128, 96), new flash.geom.Point(0, 0), null, null, true);
if ((q % 2) == 1) {
b = (b + 1) % 400;
}
bmp[0].copyPixels(ruins, new flash.geom.Rectangle(r, 0, 128, 59), new flash.geom.Point(0, 37), null, null, true);
bmp[0].copyPixels(truck, new flash.geom.Rectangle(t * 26, 0, 26, 30), new flash.geom.Point(24, 58), null, null, true);
bmp[0].copyPixels(diagonal, new flash.geom.Rectangle(0, (q % 12) * 16, 64, 16), new flash.geom.Point(59, 63), null, null, true);
bmp[0].copyPixels(diagonal, new flash.geom.Rectangle(0, ((q + 6) % 12) * 16, 64, 16), new flash.geom.Point(61, 65), null, null, true);
bmp[0].copyPixels(diagonal, new flash.geom.Rectangle(0, 192, 64, 16), new flash.geom.Point(60, 64), null, null, true);
}
var truck = flash.display.BitmapData.loadBitmap("truck.gif");
var fire = flash.display.BitmapData.loadBitmap("fire.gif");
var ruins = flash.display.BitmapData.loadBitmap("ruins.gif");
var black = flash.display.BitmapData.loadBitmap("black.gif");
var beast = flash.display.BitmapData.loadBitmap("beast.gif");
var diagonal = flash.display.BitmapData.loadBitmap("diagonal.gif");
fullscreen = new flash.geom.Rectangle(0, 0, 128, 96);
origin = new flash.geom.Point(0, 0);
focusRect = false;
tabEnabled = false;
_root.createEmptyMovieClip("bh", 10);
bmp = new Array();
x = 0;
while (x < 5) {
bmp[x] = new flash.display.BitmapData(128, 96, true, 0);
bh.attachBitmap(bmp[x], x);
x++;
}
bh._xscale = (bh._yscale = 400);
q = 0;
t = 0;
r = 0;
f = 0;
b = 0;
z = 20;
af = 0;
gg = 0;
cloop = 4283445248;
song = new Sound();
song.attachSound("12bitsong.wav");
song.start(0, 999);
this.desiredFrameRate = 30;
this.callFunctionInt = setInterval(this, "otherOnEnterFrame", 1000 / this.desiredFrameRate);