Frame 1
function loadScore() {
_root.scoreLoaded = false;
var score_lv = new LoadVars();
score_lv.tryCount = 0;
score_lv.loadFunc = function () {
score_lv.load((_root.TEXTURL + "?rn=") + Math.random());
};
score_lv.onLoad = function (success) {
if (success) {
entryStr = this.entry;
scoreStr = this.score;
IDStr = this.id;
_root.entries = entryStr.split("|");
_root.scores = scoreStr.split("|");
_root.IDs = IDStr.split("|");
clearInterval(this.intervalID);
_root.scoreLoaded = true;
} else {
this.tryCount++;
if (this.tryCount > 5) {
clearInterval(this.intervalID);
}
}
};
score_lv.intervalID = setInterval(score_lv, "loadFunc", 1000);
}
stop();
var PHPURL = "http://chibitami.net/works/flash/bfff/ranking.php";
var PHPPASS = "lah94mvc0sr5n";
var TEXTURL = "http://chibitami.net/works/flash/bfff/score.txt";
var EXTRA_DISTANCE = 7500;
onEnterFrame = function () {
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
loadedPercent = Math.floor((loaded * 100) / total);
if (total == loaded) {
play();
onEnterFrame = undefined;
}
};
var mymenu = new ContextMenu();
mymenu.hideBuiltInItems();
_root.menu = mymenu;
var entries;
var scores;
var IDs;
var scoreLoaded = false;
loadScore();
Frame 24
var score_so = SharedObject.getLocal("BFFF_highscore");
if (score_so.data.ID == undefined) {
var date = new Date();
score_so.data.ID = (("" + date.getTime()) + "") + Math.floor(Math.random() * 1000);
score_so.data.highscore = 0;
score_so.data.registName = "no name";
}
main.highscore = score_so.data.highscore;
Frame 30
stop();
Symbol 5 MovieClip [mystiaMarker] Frame 31
this.removeMovieClip();
Symbol 7 MovieClip [bulletBig] Frame 1
#initclip 15
Object.registerClass("bulletBig", BulletBig);
#endinitclip
_parent.SE_bullet.gotoAndPlay("play");
Symbol 7 MovieClip [bulletBig] Frame 5
stop();
Symbol 9 MovieClip [bulletMystia] Frame 1
#initclip 12
Object.registerClass("bulletMystia", BulletMystia);
#endinitclip
_parent.SE_bullet2.gotoAndPlay("play");
Symbol 9 MovieClip [bulletMystia] Frame 5
stop();
Symbol 11 MovieClip [fruit] Frame 1
#initclip 13
Object.registerClass("fruit", Fruit);
#endinitclip
Symbol 13 MovieClip [bulletNormal] Frame 1
#initclip 14
Object.registerClass("bulletNormal", BulletNormal);
#endinitclip
_parent.SE_bullet.gotoAndPlay("play");
Symbol 13 MovieClip [bulletNormal] Frame 5
stop();
Symbol 21 MovieClip Frame 41
gotoAndPlay (1);
Symbol 269 MovieClip [__Packages.FryingObject] Frame 0
class FryingObject extends MovieClip
{
var px, vx, ax, py, vy, ay, hitSize, _x, _parent, _y, removeMovieClip;
function FryingObject () {
super();
}
function init() {
px = 0;
vx = 0;
ax = 0;
py = 0;
vy = 0;
ay = 0;
hitSize = 10;
}
function enterFrameAction() {
vy = vy + ay;
px = px + vx;
py = py + vy;
_x = -1 * (px - _parent.distance);
_y = -1 * py;
if (_x > ERASEMARGIN) {
removeMovieClip();
}
if ((_y < ((-1 * ERASEMARGIN) - Game.FIELD_HEIGHT)) || (_y > ERASEMARGIN)) {
removeMovieClip();
}
}
function isOverlapping(target) {
if (target.hitSize == undefined) {
return(false);
}
var _local3 = ((_x - target._x) * (_x - target._x)) + ((_y - target._y) * (_y - target._y));
if (_local3 < ((hitSize + target.hitSize) * (hitSize + target.hitSize))) {
return(true);
}
return(false);
}
static var ERASEMARGIN = 100;
}
Symbol 270 MovieClip [__Packages.Game] Frame 0
class Game extends MovieClip
{
var life, distance, yuyuko, _parent, vision, attachMovie, mystia, targetGenerator, state, fallFlag, moon_mc, _xmouse;
function Game () {
super();
}
function init(_startLevel, _visionSizeFixed) {
life = LIFE_MAX;
distance = 0;
yuyuko = _parent.attachMovie("yuyuko", "yuyuko_mc", DEPTH_YUYUKO);
yuyuko.init();
vision = attachMovie("vision", "vision_mc", DEPTH_VISION);
vision.init(_visionSizeFixed);
mystia = undefined;
targetGenerator = new TargetGenerator();
targetGenerator.init(this, _startLevel);
state = READY;
fallFlag = false;
}
function startGame() {
state = ACTIVE;
}
function onEnterFrame() {
moon_mc._x = ((-1 * FIELD_WIDTH) * (100000 - distance)) / 100000;
if (state == ACTIVE) {
proceed();
life = Math.max(life - 1, 0);
if ((life <= 0) && (fallFlag == false)) {
fallFlag = true;
yuyuko.fallAction();
}
if (yuyuko.py < -20) {
gameOverAction();
}
for (var _local2 in this) {
this[_local2].enterFrameAction();
}
}
}
function gameOverAction() {
state = GAMEOVER;
life = 0;
for (var _local2 in this) {
this[_local2].removeMovieClip();
}
_parent.gotoAndPlay("gameover");
}
function addLife(_added) {
life = life + _added;
if (life > LIFE_MAX) {
life = LIFE_MAX;
} else if (life < 0) {
life = 0;
}
}
function addVision(_added) {
vision.addSize(_added);
}
function proceed() {
var _local2 = VX_MIN + Math.max(0, ((-1 * _xmouse) / FIELD_WIDTH) * (VX_MAX - VX_MIN));
distance = distance + _local2;
}
function onPress() {
if (life > 0) {
yuyuko.jump();
}
}
function eatenNotify() {
mystia = undefined;
}
static var FIELD_WIDTH = 600;
static var FIELD_HEIGHT = 300;
static var LIFE_MAX = 1000;
static var DEPTH_YUYUKO = 10001;
static var DEPTH_VISION = 10000;
static var READY = 0;
static var ACTIVE = 1;
static var GAMEOVER = 2;
static var VX_MAX = 16;
static var VX_MIN = 0;
}
Symbol 271 MovieClip [__Packages.TargetGenerator] Frame 0
class TargetGenerator
{
var targetDepth, cloudDepth, playFrameNum, gameLevel, fruitFrame, bulletFrame, mystiaFrame, cloudDistance, game;
function TargetGenerator () {
}
function init(_game, _startLevel) {
targetDepth = DEPTH_TARGET_MIN;
cloudDepth = DEPTH_CLOUD_MIN;
playFrameNum = LEVELUPFRAME * (_startLevel - 1);
gameLevel = Math.min(1 + Math.floor(playFrameNum / LEVELUPFRAME), 99);
fruitFrame = getFruitFrame();
bulletFrame = getBulletFrame();
mystiaFrame = getMystiaFrame();
cloudDistance = 0;
game = _game;
}
function enterFrameAction() {
if (gameLevel != 50) {
playFrameNum++;
}
gameLevel = Math.min(1 + Math.floor(playFrameNum / LEVELUPFRAME), 99);
fruitFrame--;
if (fruitFrame <= 0) {
createFruit();
fruitFrame = getFruitFrame();
}
bulletFrame--;
if (bulletFrame <= 0) {
createBullet();
bulletFrame = getBulletFrame();
}
if (!(game.mystia instanceof Mystia)) {
mystiaFrame--;
if (mystiaFrame <= 0) {
createMystia();
mystiaFrame = getMystiaFrame();
}
}
if (cloudDistance <= game.distance) {
createCloud();
cloudDistance = game.distance + (500 * (0.6 + (Math.random() * 0.9)));
}
}
function getFruitFrame() {
return(Math.floor((160 + (gameLevel * 0)) * (((1 + Math.random()) - 0.5) / 2)));
}
function getBulletFrame() {
var _local2;
if (gameLevel < 20) {
_local2 = 30 - (gameLevel * 0.75);
} else if (gameLevel < 40) {
_local2 = 15 - ((gameLevel - 20) * 0.4);
} else {
_local2 = 7 - ((gameLevel - 40) * 0.2);
}
return(Math.floor((_local2 * (0.4 + (Math.random() * 0.8))) + (Math.random() * 7)));
}
function getMystiaFrame() {
return(240);
}
function createFruit() {
var _local3 = Game.FIELD_WIDTH + 50;
var _local2 = Game.FIELD_HEIGHT * (0.2 + (Math.random() * 0.6));
var _local4 = game.attachMovie("fruit", "target" + targetDepth, targetDepth);
_local4.init(_local3, _local2, -2 - (gameLevel / 10), 0);
targetDepth++;
if (targetDepth > DEPTH_TARGET_MAX) {
targetDepth = DEPTH_TARGET_MIN;
}
}
function createBullet() {
var _local6 = Game.FIELD_WIDTH + 30;
var _local5 = Game.FIELD_HEIGHT * Math.random();
var _local4 = -30 + (60 * Math.random());
var _local7 = 10 + ((((1 + Math.random()) - 0.25) * gameLevel) / 5);
var _local3 = (-1 * _local7) * Math.cos((_local4 * Math.PI) / 180);
var _local2 = _local7 * Math.sin((_local4 * Math.PI) / 180);
if (Math.random() < 0.15) {
_local3 = _local3 * 0.18;
_local2 = _local2 * 0.18;
var _local8 = game.attachMovie("bulletBig", "target" + targetDepth, targetDepth);
_local8.init(_local6, _local5, _local3, _local2);
} else {
_local3 = _local3 * 0.3;
_local2 = _local2 * 0.3;
var _local8 = game.attachMovie("bulletNormal", "target" + targetDepth, targetDepth);
_local8.init(_local6, _local5, _local3, _local2);
}
targetDepth++;
if (targetDepth > DEPTH_TARGET_MAX) {
targetDepth = DEPTH_TARGET_MIN;
}
}
function createMystia() {
var _local4 = Game.FIELD_WIDTH + 200;
var _local2 = Game.FIELD_HEIGHT * (0.2 + (Math.random() * 0.6));
game.mystia = game.attachMovie("mystia", "mystia_mc", DEPTH_MYSTIA);
game.mystia.init(_local4, _local2, Math.min(gameLevel, 50));
var _local3 = game._parent.attachMovie("mystiaMarker", "mystiaMarker_mc", DEPTH_MYSTIAMARKER);
_local3._x = -1 * Game.FIELD_WIDTH;
_local3._y = -1 * _local2;
}
function createCloud() {
var _local3 = Game.FIELD_WIDTH + 200;
var _local2 = Game.FIELD_HEIGHT * Math.random();
var _local4 = game.attachMovie("cloud", "cloud" + cloudDepth, cloudDepth);
_local4.init(_local3, _local2);
cloudDepth++;
if (cloudDepth > DEPTH_CLOUD_MAX) {
cloudDepth = DEPTH_CLOUD_MIN;
}
}
static var DEPTH_TARGET_MIN = 2000;
static var DEPTH_TARGET_MAX = 2999;
static var DEPTH_MYSTIA = 9000;
static var DEPTH_MYSTIAMARKER = 11000;
static var DEPTH_MOON = 10;
static var DEPTH_CLOUD_MIN = 100;
static var DEPTH_CLOUD_MAX = 999;
static var LEVELUPFRAME = 150;
}
Symbol 272 MovieClip [__Packages.Mystia] Frame 0
class Mystia extends FryingObject
{
var gameLevel, px, _parent, py, vx, vy, vx_run, hitSize, state, bulletFrame, bulletFrameRest, bulletDepth, _x, removeMovieClip, isOverlapping, gotoAndPlay, gotoAndStop;
function Mystia () {
super();
}
function init(_px, _py, _gameLevel) {
super.init();
gameLevel = _gameLevel;
px = _px + _parent.distance;
py = _py;
vx = VX_NORMAL;
vy = 0;
vx_run = getRunSpeed();
hitSize = 30;
state = NORMAL;
bulletFrame = getBulletFrame();
bulletFrameRest = bulletFrame;
bulletDepth = DEPTH_BULLET_MIN;
enterFrameAction();
}
function enterFrameAction() {
super.enterFrameAction();
if (state != EATEN) {
_parent.addVision(-0.2);
}
if (state == NORMAL) {
if ((px - _parent.yuyuko.px) < RUN_DISTANCE) {
noticeAction();
}
bulletFrameRest--;
if (bulletFrameRest < 0) {
bulletFrameRest = bulletFrame;
createBullet();
}
}
if (state == RUN) {
if (_x < (-70 - Game.FIELD_WIDTH)) {
removeMovieClip();
_parent.mystia = undefined;
}
}
if (((state != EATEN) && (isOverlapping(_parent.yuyuko))) && (_parent.life > 0)) {
eatenAction();
}
}
function getBulletFrame() {
return(Math.floor(65 - gameLevel));
}
function getRunSpeed() {
return(4 + (gameLevel / 20));
}
function createBullet() {
var _local2 = 15 + (30 * Math.random());
var _local6 = 13 + ((((1 + Math.random()) - 0.25) * gameLevel) * 0);
var _local4 = (-1 * _local6) * Math.cos((_local2 * Math.PI) / 180);
var _local3 = _local6 * Math.sin((_local2 * Math.PI) / 180);
var _local5 = -1 * (0.25 + (Math.random() / 2));
vx = vx * 0.1;
vy = vy * 0.45;
var _local8 = _parent.attachMovie("bulletMystia", "bulletMystia" + bulletDepth, bulletDepth);
_local8.init(px, py, _local4, _local3, _local5);
bulletDepth++;
if (bulletDepth > DEPTH_BULLET_MAX) {
bulletDepth = DEPTH_BULLET_MIN;
}
var _local7 = _parent.attachMovie("bulletMystia", "bulletMystia" + bulletDepth, bulletDepth);
_local7.init(px, py, _local4, -1 * _local3, -1 * _local5);
bulletDepth++;
if (bulletDepth > DEPTH_BULLET_MAX) {
bulletDepth = DEPTH_BULLET_MIN;
}
}
function noticeAction() {
state = NOTICE;
vx = VX_NOTICE;
gotoAndPlay("notice");
}
function runAction() {
state = RUN;
vx = vx_run;
gotoAndStop("run");
}
function eatenAction() {
state = EATEN;
vx = 0;
gotoAndPlay("eaten");
_parent.yuyuko.eatAction();
_parent.mistia = undefined;
_parent.addLife(LIFE_RECOVER);
_parent.addVision(VISION_RECOVER);
_parent.SE_recover.gotoAndPlay("play");
}
static var RUN_DISTANCE = 240;
static var LIFE_RECOVER = 300;
static var VISION_RECOVER = 500;
static var VX_NORMAL = 3;
static var VX_NOTICE = 6;
static var DEPTH_BULLET_MIN = 9001;
static var DEPTH_BULLET_MAX = 9200;
static var NORMAL = 0;
static var NOTICE = 1;
static var RUN = 2;
static var EATEN = 3;
}
Symbol 273 MovieClip [__Packages.BulletMystia] Frame 0
class BulletMystia extends FryingObject
{
var px, py, vx, vy, ay, hitSize, isOverlapping, _parent, removeMovieClip;
function BulletMystia () {
super();
}
function init(_px, _py, _vx, _vy, _ay) {
super.init();
px = _px;
py = _py;
vx = _vx;
vy = _vy;
ay = _ay;
hitSize = 20;
enterFrameAction();
}
function enterFrameAction() {
super.enterFrameAction();
if (isOverlapping(_parent.yuyuko) && (_parent.life > 0)) {
_parent.addLife(-150);
_parent.yuyuko.damagedAction();
removeMovieClip();
}
}
}
Symbol 274 MovieClip [__Packages.Fruit] Frame 0
class Fruit extends FryingObject
{
var px, _parent, py, vx, vy, hitSize, isOverlapping, removeMovieClip;
function Fruit () {
super();
}
function init(_px, _py, _vx, _vy) {
super.init();
px = _px + _parent.distance;
py = _py;
vx = _vx;
vy = _vy;
hitSize = 30;
enterFrameAction();
}
function enterFrameAction() {
super.enterFrameAction();
if (isOverlapping(_parent.yuyuko) && (_parent.life > 0)) {
_parent.addLife(100);
_parent.SE_recover.gotoAndPlay("play");
_parent.yuyuko.eatAction();
removeMovieClip();
}
}
}
Symbol 275 MovieClip [__Packages.BulletNormal] Frame 0
class BulletNormal extends FryingObject
{
var px, _parent, py, vx, vy, hitSize, enterFrameAction, isOverlapping, removeMovieClip;
function BulletNormal () {
super();
}
function init(_px, _py, _vx, _vy) {
super.init();
px = _px + _parent.distance;
py = _py;
vx = _vx;
vy = _vy;
hitSize = 12;
enterFrameAction();
}
function onEnterFrame() {
super.enterFrameAction();
if (isOverlapping(_parent.yuyuko) && (_parent.life > 0)) {
_parent.addLife(-100);
_parent.yuyuko.damagedAction();
removeMovieClip();
}
}
}
Symbol 276 MovieClip [__Packages.BulletBig] Frame 0
class BulletBig extends FryingObject
{
var px, _parent, py, vx, vy, hitSize, isOverlapping, removeMovieClip;
function BulletBig () {
super();
}
function init(_px, _py, _vx, _vy) {
super.init();
px = _px + _parent.distance;
py = _py;
vx = _vx;
vy = _vy;
hitSize = 40;
enterFrameAction();
}
function enterFrameAction() {
super.enterFrameAction();
if (isOverlapping(_parent.yuyuko) && (_parent.life > 0)) {
_parent.addLife(-200);
_parent.yuyuko.damagedAction();
removeMovieClip();
}
}
}
Symbol 277 MovieClip [__Packages.Cloud] Frame 0
class Cloud extends FryingObject
{
var px, _parent, py, _width, _height, enterFrameAction;
function Cloud () {
super();
}
function init(_px, _py) {
super.init();
px = _px + _parent.distance;
py = _py;
var _local3 = 0.5 + Math.random();
_width = _width * _local3;
_height = _height * _local3;
enterFrameAction();
}
}
Symbol 278 MovieClip [__Packages.Vision] Frame 0
class Vision extends MovieClip
{
var radius, sizeFixed, _x, _y, _parent, _width, _height;
function Vision () {
super();
}
function init(_sizeFixed) {
radius = RADIUS_MAX;
sizeFixed = _sizeFixed;
_x = 0;
_y = 0;
_parent.setMask(this);
repaint();
}
function addSize(_added) {
if (sizeFixed) {
return(undefined);
}
radius = radius + _added;
if (radius > RADIUS_MAX) {
radius = RADIUS_MAX;
}
if (radius < RADIUS_MIN) {
radius = RADIUS_MIN;
}
repaint();
}
function repaint() {
_width = radius * 2;
_height = radius * 2;
_parent.setMask(null);
_parent.setMask(this);
}
function onMouseMove() {
_x = _parent._xmouse;
_y = _parent._ymouse;
}
static var RADIUS_MAX = 150;
static var RADIUS_MIN = 60;
}
Symbol 279 MovieClip [__Packages.Yuyuko] Frame 0
class Yuyuko extends FryingObject
{
var px, py, ay, hitSize, vy, _parent, _x, _y, removeMovieClip, gotoAndPlay, gotoAndStop;
function Yuyuko () {
super();
}
function init() {
super.init();
px = 100;
py = 150;
ay = GRAVITY;
hitSize = 5;
enterFrameAction();
}
function jump() {
vy = JUMP_VY;
}
function enterFrameAction() {
vy = vy + ay;
px = _parent.game.distance + 100;
py = py + vy;
if (py > (Game.FIELD_HEIGHT - hitSize)) {
py = Game.FIELD_HEIGHT - hitSize;
vy = 0;
}
if (vy < VY_MIN) {
vy = VY_MIN;
}
_x = -1 * (px - _parent.game.distance);
_y = -1 * py;
if ((_y < ((-1 * FryingObject.ERASEMARGIN) - Game.FIELD_HEIGHT)) || (_y > FryingObject.ERASEMARGIN)) {
removeMovieClip();
}
}
function damagedAction() {
gotoAndPlay("damaged");
}
function eatAction() {
gotoAndPlay("eat");
}
function fallAction() {
gotoAndStop("fall");
}
static var VY_MIN = -5;
static var JUMP_VY = 6;
static var GRAVITY = -0.4;
}
Symbol 38 MovieClip Frame 40
gotoAndPlay (1);
Symbol 39 MovieClip Frame 20
stop();
Symbol 41 MovieClip Frame 27
stop();
Symbol 44 MovieClip Frame 18
stop();
Symbol 45 MovieClip [yuyuko] Frame 1
#initclip 19
Object.registerClass("yuyuko", Yuyuko);
#endinitclip
Symbol 45 MovieClip [yuyuko] Frame 49
gotoAndStop ("normal");
Symbol 45 MovieClip [yuyuko] Frame 50
play();
Symbol 45 MovieClip [yuyuko] Frame 68
stop();
Symbol 45 MovieClip [yuyuko] Frame 76
Symbol 45 MovieClip [yuyuko] Frame 107
gotoAndStop ("normal");
Symbol 45 MovieClip [yuyuko] Frame 110
stop();
Symbol 47 MovieClip Frame 40
gotoAndPlay (1);
Symbol 52 MovieClip Frame 40
stop();
Symbol 57 MovieClip [mystia] Frame 1
#initclip 16
Object.registerClass("mystia", Mystia);
#endinitclip
stop();
Symbol 57 MovieClip [mystia] Frame 23
this.runAction();
Symbol 57 MovieClip [mystia] Frame 24
stop();
Symbol 57 MovieClip [mystia] Frame 59
stop();
this.removeMovieClip();
Symbol 60 MovieClip [cloud] Frame 1
#initclip 17
Object.registerClass("cloud", Cloud);
#endinitclip
Symbol 65 MovieClip [vision] Frame 1
#initclip 18
Object.registerClass("vision", Vision);
#endinitclip
Symbol 114 Button
on (release) {
gotoAndStop(Math.max(_currentframe - 1, 2));
}
Symbol 117 Button
on (release) {
gotoAndStop(Math.min(_currentframe + 1, 6));
}
Symbol 162 MovieClip Frame 1
function reloadData(mgn) {
entry1 = _root.entries[0 + mgn];
entry2 = _root.entries[1 + mgn];
entry3 = _root.entries[2 + mgn];
entry4 = _root.entries[3 + mgn];
entry5 = _root.entries[4 + mgn];
entry6 = _root.entries[5 + mgn];
entry7 = _root.entries[6 + mgn];
entry8 = _root.entries[7 + mgn];
entry9 = _root.entries[8 + mgn];
entry10 = _root.entries[9 + mgn];
score1 = _root.scores[0 + mgn];
score2 = _root.scores[1 + mgn];
score3 = _root.scores[2 + mgn];
score4 = _root.scores[3 + mgn];
score5 = _root.scores[4 + mgn];
score6 = _root.scores[5 + mgn];
score7 = _root.scores[6 + mgn];
score8 = _root.scores[7 + mgn];
score9 = _root.scores[8 + mgn];
score10 = _root.scores[9 + mgn];
var _local3 = _root.score_so.data.ID;
mark1._visible = _local3 == _root.IDs[0 + mgn];
mark2._visible = _local3 == _root.IDs[1 + mgn];
mark3._visible = _local3 == _root.IDs[2 + mgn];
mark4._visible = _local3 == _root.IDs[3 + mgn];
mark5._visible = _local3 == _root.IDs[4 + mgn];
mark6._visible = _local3 == _root.IDs[5 + mgn];
mark7._visible = _local3 == _root.IDs[6 + mgn];
mark8._visible = _local3 == _root.IDs[7 + mgn];
mark9._visible = _local3 == _root.IDs[8 + mgn];
mark10._visible = _local3 == _root.IDs[9 + mgn];
}
var entry1;
var entry2;
var entry3;
var entry4;
var entry5;
var entry6;
var entry7;
var entry8;
var entry9;
var entry10;
var score1;
var score2;
var score3;
var score4;
var score5;
var score6;
var score7;
var score8;
var score9;
var score10;
Symbol 162 MovieClip Frame 2
stop();
reloadData(0);
Symbol 162 MovieClip Frame 3
stop();
reloadData(10);
Symbol 162 MovieClip Frame 4
stop();
reloadData(20);
Symbol 162 MovieClip Frame 5
stop();
reloadData(30);
Symbol 162 MovieClip Frame 6
stop();
reloadData(40);
Symbol 165 Button
on (release) {
startLevel = 1;
visionSizeFixed = true;
gotoAndStop ("ready");
}
Symbol 168 Button
on (release) {
gotoAndStop ("manual");
}
Symbol 169 Button
on (rollOver) {
gotoAndStop(_currentframe + 10);
}
on (rollOut) {
gotoAndStop(_currentframe - 10);
}
on (release, dragOut, dragOver) {
gotoAndStop(_currentframe + 1);
}
Symbol 178 MovieClip Frame 1
if (_quality == "HIGH") {
gotoAndStop (2);
} else if (_quality == "MEDIUM") {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
Symbol 178 MovieClip Frame 2
stop();
_quality = "HIGH";
_root.SIMPLEMODE = false;
Symbol 178 MovieClip Frame 3
stop();
_quality = "MEDIUM";
_root.SIMPLEMODE = false;
Symbol 178 MovieClip Frame 4
stop();
_quality = "LOW";
_root.SIMPLEMODE = false;
Symbol 178 MovieClip Frame 5
gotoAndStop (2);
Symbol 178 MovieClip Frame 12
stop();
_quality = "HIGH";
_root.SIMPLEMODE = false;
Symbol 178 MovieClip Frame 13
stop();
_quality = "MEDIUM";
_root.SIMPLEMODE = false;
Symbol 178 MovieClip Frame 14
stop();
_quality = "LOW";
_root.SIMPLEMODE = false;
Symbol 178 MovieClip Frame 15
gotoAndStop (12);
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 6
stop();
Symbol 182 MovieClip Frame 11
stop();
Symbol 182 MovieClip Frame 16
stop();
Symbol 185 Button
on (release) {
this.ranking_mc._visible = !this.ranking_mc._visible;
this.ranking_mc.reloadData(0);
this.ranking_mc.gotoAndPlay(1);
}
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 10
gotoAndStop (1);
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 10
gotoAndStop (1);
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 10
gotoAndStop (1);
Symbol 196 MovieClip [game] Frame 1
#initclip 20
Object.registerClass("game", Game);
#endinitclip
Symbol 205 MovieClip Frame 1
fps = 30;
fpsLimit = 26;
fpsLimitCount = 0;
fpsLimitMax = 10;
frTime = 500;
time_count = 0;
old_timer = getTimer();
qualities = new Array("high", "medium", "low");
qualityIndex = 0;
this.onEnterFrame = function () {
time_count = time_count + 1;
if ((getTimer() - old_timer) >= frTime) {
fps = Math.floor((time_count * 1000) / (getTimer() - old_timer));
old_timer = getTimer();
time_count = 0;
if (fps <= fpsLimit) {
fpsLimitCount++;
if (fpsLimitCount >= fpsLimitMax) {
if (qualityIndex < 2) {
qualityIndex++;
}
_root._quality = qualities[qualityIndex];
}
} else {
fpsLimitCount = 0;
}
}
};
Symbol 208 MovieClip Frame 33
stop();
_parent.gotoAndStop("game");
Symbol 210 MovieClip Frame 1
onEnterFrame = function () {
if (!(_parent.game.mystia instanceof Mystia)) {
this._visible = false;
} else {
var _local4 = _parent.game._xmouse - _parent.game.mystia._x;
var _local3 = _parent.game._ymouse - _parent.game.mystia._y;
if ((((_local4 * _local4) + (_local3 * _local3)) > 32400) && (_parent.game.mystia.state != Mystia.EATEN)) {
this._x = _parent.game.mystia._x;
this._y = _parent.game.mystia._y;
this._visible = true;
} else {
this._visible = false;
}
}
};
Symbol 222 Button
on (release) {
gotoAndStop ("regist");
}
Symbol 225 Button
on (release) {
_parent.play();
}
Symbol 233 MovieClip Frame 2
registName = _root.score_so.data.registName;
if (rank != undefined) {
gotoAndStop(Math.min(14, rank + 10));
} else {
stop();
}
Symbol 233 MovieClip Frame 21
stop();
_root.score_so.data.registName = registName;
var loader = new LoadVars();
var sender = new LoadVars();
loader.onLoad = function (success) {
if (success) {
if (this.res == 1) {
gotoAndPlay ("regist_end");
} else if (this.res == 0) {
gotoAndStop ("error");
} else {
gotoAndPlay ("error");
}
} else {
gotoAndPlay ("error");
}
};
sender.entry = registName;
sender.score = score;
sender.id = _root.score_so.data.ID;
sender.pass = _root.PHPPASS;
sender.sendAndLoad((_root.PHPURL + "?rn=") + Math.random(), loader, "POST");
Symbol 233 MovieClip Frame 31
_root.loadScore();
Symbol 233 MovieClip Frame 50
stop();
_parent.play();
Symbol 233 MovieClip Frame 71
gotoAndStop(Math.min(14, rank + 10));
Symbol 236 Button
on (release) {
gotoAndStop ("ready");
}
Symbol 239 Button
on (release) {
bgm.stop();
gotoAndStop ("title");
}
Symbol 248 Button
on (release) {
play();
}
Symbol 267 Button
on (release) {
gotoAndStop ("title");
}
Symbol 268 MovieClip Frame 1
stop();
var bgm = new Sound();
bgm.attachSound("main.wav");
var firstTry = true;
var startLevel = 1;
var visionSizeFixed = true;
onEnterFrame = function () {
if (_root.scoreLoaded) {
if (_currentframe == 1) {
this.play();
}
delete onEnterFrame;
}
};
Instance of Symbol 162 MovieClip "ranking_mc" in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 182 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
if (parseFloat(_root.score_so.data.highscore) >= _root.EXTRA_DISTANCE) {
this._visible = true;
} else {
this._visible = false;
}
}
on (release) {
_parent.startLevel = 51;
_parent.visionSizeFixed = false;
_parent.gotoAndStop("ready");
}
Symbol 268 MovieClip Frame 2
stop();
Symbol 268 MovieClip Frame 11
delete onEnterFrame;
game.init(startLevel, visionSizeFixed);
this.distance = "0.0";
this.level = 1;
this.lifeGauge._width = 200;
this.lifeGauge._x = -210;
if (firstTry) {
bgm.start(0, 65535);
firstTry = false;
}
Symbol 268 MovieClip Frame 21
stop();
game.startGame();
onEnterFrame = function () {
var _local2 = "" + ((Math.floor(game.distance) / 10) + 0.01);
this.distance = _local2.substr(0, _local2.length - 1);
this.level = game.targetGenerator.gameLevel;
this.lifeGauge._width = (200 * game.life) / Game.LIFE_MAX;
this.lifeGauge._x = -210;
};
Symbol 268 MovieClip Frame 31
delete onEnterFrame;
stop();
var currentScore = parseFloat(distance);
var currentHighScore = parseFloat(_root.score_so.data.highscore);
var isNewRecord = false;
if (currentHighScore < currentScore) {
_root.score_so.data.highscore = distance;
isNewRecord = true;
}
highscore = _root.score_so.data.highscore;
var rank = -1;
var registFlag = false;
if (_root.scoreLoaded && (isNewRecord)) {
var i = 0;
while (i < 50) {
if (parseFloat(_root.scores[i]) < highscore) {
registFlag = true;
rank = i + 1;
break;
}
if (_root.IDs[i] == _root.score_so.data.ID) {
break;
}
i++;
}
}
if (registFlag) {
register_mc.rank = rank;
register_mc.score = highscore;
} else {
play();
}
Symbol 268 MovieClip Frame 32
stop();
Symbol 268 MovieClip Frame 39
stop();
Symbol 268 MovieClip Frame 41
stop();
Symbol 268 MovieClip Frame 42
stop();
Symbol 268 MovieClip Frame 43
stop();
Symbol 268 MovieClip Frame 44
stop();