Combined Code
frame 1 {
var highscore = 0;
}
// unknown tag 88 length 99
button 8 {
on (release) {
getURL('http://nikukyu.h.fc2.com/', '_blank');
}
}
button 13 {
on (release) {
nextFrame();
}
}
movieClip 16 {
}
movieClip 19 {
}
instance isi01_mc of movieClip 19 {
onClipEvent (enterFrame) {
this._x -= _root.spd;
}
}
frame 2 {
stop();
_root.isi01_mc._x = Math.floor(Math.random() * 800) + 800;
var score = 0;
}
frame 3 {
function atarihantei() {
++_root.scoretime;
if (_root.scoretime >= 30) {
_root.scoretime = 0;
_root.score += Math.floor(spd);
}
if (_root.owari == false) {
if (_root.isi01_mc._x <= 270) {
if (_root.hantei == true) {
if (_root.tobikoe == true) {
_root.hantei = false;
} else {
gameover();
}
}
}
if (_root.isi01_mc._x <= -100) {
_root.isi01_mc._x = Math.floor(Math.random() * 800) + 800;
_root.hantei = true;
}
}
}
function jumpscore() {
jscore = Math.floor(100 - Math.abs(_root.isi01_mc._x - 270));
if (_root.jscore <= 0) {
_root.jscore = 0;
}
_root.score += jscore;
}
function gameover() {
_root.isi01_mc.gotoAndStop(2);
_root.owari = true;
_root.jump = true;
_root.spd = 0;
_root.nik_mc.gotoAndPlay('destroy');
_root.jump_btn._visible = false;
_root.jump_btn.enabled = false;
if (_root.score > _root.highscore) {
_root.highscore = _root.score;
}
}
stop();
_root.isi01_mc.gotoAndStop(1);
_root.jump_btn._visible = true;
_root.jump_btn.enabled = true;
var spd = 5;
var jscore = 0;
var scoretime = 0;
var jump = false;
var tobikoe = false;
var hantei = true;
var crush = false;
var owari = false;
var endroll = false;
}
movieClip 27 {
}
instance back01 of movieClip 27 {
onClipEvent (load) {
var now = 500;
}
onClipEvent (enterFrame) {
if (now < -1600) {
this._x = _root.back02._x + 1600;
}
now = this._x;
now -= _root.spd;
this._x = now;
}
}
instance back02 of movieClip 27 {
onClipEvent (load) {
var now2 = 500;
}
onClipEvent (enterFrame) {
if (this._x < -1600) {
this._x = this._parent.back01._x + 1600;
}
now2 = this._x;
now2 -= _root.spd;
this._x = now2;
}
}
movieClip 30 {
}
movieClip 33 {
}
movieClip 36 {
}
movieClip 61 {
}
movieClip 89 {
}
movieClip 96 {
}
movieClip 98 {
}
movieClip 119 {
}
movieClip 120 {
frame 5 {
_root.jump = false;
}
frame 30 {
gotoAndPlay('run');
}
frame 31 {
_root.jump = true;
}
frame 33 {
_root.tobikoe = true;
}
frame 34 {
_root.jumpscore();
}
frame 54 {
_root.tobikoe = false;
}
frame 56 {
this.gotoAndPlay('run');
}
frame 235 {
_root.nextFrame();
}
frame 236 {
this.stop();
}
}
button 123 {
on (release) {
if (_root.jump == false) {
this.nik_mc.gotoAndPlay('jump');
}
}
}
instance sousa of movieClip 119 {
onClipEvent (enterFrame) {
if (_root.owari == false) {
_root.spd += 0.02;
}
_root.atarihantei();
}
}
movieClip 124 {
}
button 133 {
on (release) {
gotoAndStop(2);
}
}