Frame 1
function EasterWay() {
}
stop();
_root.H_SCORE.text = _root.UBOA.formatoPuntaje(_root.UBOA.PuntajeMaximo);
var MUSIC = new Sound();
MUSIC.attachSound("NASU_OT");
MUSIC.setVolume(20);
MUSIC.start(0, 50);
var menu = new ContextMenu();
menu.hideBuiltInItems();
var EasterEA = new ContextMenuItem("\u00A92011 KIKIYAMA", EasterWay);
menu.customItems.push(EasterEA);
var overObject;
Instance of Symbol 18 MovieClip in Frame 1
onClipEvent (load) {
var H = 1;
}
onClipEvent (enterFrame) {
if ((Key.isDown(13) == 0) && (H == 1)) {
H = 0;
}
if (Key.isDown(13) && (H == 0)) {
_root.MUSIC.stop();
_root.gotoAndStop(2);
}
}
Instance of Symbol 28 MovieClip in Frame 1
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
_root.SFIX.swapDepths(_root.getNextHighestDepth());
}
Instance of Symbol 30 MovieClip "SFIX" in Frame 1
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
}
Instance of Symbol 18 MovieClip in Frame 2
onClipEvent (load) {
var TT = 0;
}
onClipEvent (enterFrame) {
TT++;
if (TT > 53) {
_root.gotoAndStop(3);
}
}
Frame 3
function crearCamaron() {
var _local2 = _root.attachMovie("Camaron", "Camaron" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._x = 140 + random(340);
_local2._y = 80;
CamaronOBJ = _local2;
}
function crearBonus() {
var _local2 = _root.attachMovie("Bonus", "Bonus" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var _local3 = random(2);
if (_local3 == 0) {
_local2._x = 114;
_local2.xvelocity = 1;
}
if (_local3 == 1) {
_local2._x = 510;
_local2.xvelocity = -1;
}
_local2._y = 295;
BonusOBJ.push(_local2);
}
function crearScoreFlotante(PUNTOS) {
var _local2 = _root.attachMovie("ScoreFloat", "ScoreFloat" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._x = _root.NASU._x;
_local2._y = _root.NASU._y - 20;
puntajeTotal = puntajeTotal + PUNTOS;
_local2.SCORE.text = PUNTOS;
_root.SCORE.text = _root.UBOA.formatoPuntaje(puntajeTotal);
}
crearCamaron();
var puntajeTotal = 0;
var muerto = false;
var CamaronOBJ;
var BonusOBJ = [];
var MUSIC = new Sound();
var SOUND3 = new Sound();
var JUMP_SOUND = new Sound();
var EAT_SOUND = new Sound();
MUSIC.attachSound("NASU_PLAYING");
MUSIC.setVolume(20);
MUSIC.start(0, 50);
SOUND3.attachSound("DEAD");
SOUND3.setVolume(20);
JUMP_SOUND.attachSound("JUMP");
EAT_SOUND.attachSound("EAT");
Instance of Symbol 45 MovieClip "NASU" in Frame 3
onClipEvent (load) {
var State = 1;
var yvelocity = 0;
_x = 313;
_y = 300;
var suelo;
var ANIM_SALTO;
var DD = 0;
}
onClipEvent (enterFrame) {
if (_root.muerto == false) {
_y = (_y + yvelocity);
suelo = false;
yvelocity = yvelocity + 1.5;
if (_y >= 300) {
_y = 300;
yvelocity = 0;
suelo = true;
}
if (Key.isDown(90) && (DD == 0)) {
if (suelo == true) {
DD = 1;
yvelocity = -9;
_root.JUMP_SOUND.start(0, 1);
_y = (_y - 1);
if ((State == 1) || (State == 3)) {
ANIM_SALTO = 5;
}
if ((State == 2) || (State == 4)) {
ANIM_SALTO = 6;
}
}
}
if (suelo == true) {
if (Key.isDown(90) == 0) {
DD = 0;
}
}
if (this._currentframe != State) {
this.gotoAndStop(State);
}
if (State == 3) {
_x = (_x - 4);
if (Key.isDown(37) == 0) {
State = 1;
}
} else if (State == 4) {
_x = (_x + 4);
if (Key.isDown(39) == 0) {
State = 2;
}
}
if ((State == 1) || (State == 2)) {
if (Key.isDown(37)) {
State = 3;
}
if (Key.isDown(39)) {
State = 4;
}
}
if (suelo == false) {
this.gotoAndStop(ANIM_SALTO);
}
if (_x < 128) {
_x = 128;
}
if (_x > 488) {
_x = 488;
}
}
}
Instance of Symbol 18 MovieClip in Frame 3
onClipEvent (load) {
var TT = 0;
}
onClipEvent (enterFrame) {
TT++;
if (TT > 50) {
TT = 0;
var PRIZZE = random(50);
if (PRIZZE == 10) {
_root.crearBonus();
}
}
}
Instance of Symbol 51 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_visible == true) {
_visible = false;
}
}
Frame 4
_root.SCORE.text = _root.UBOA.formatoPuntaje(_root.UBOA.PuntajeMomentarioMorir);
var MUSIC = new Sound();
MUSIC.attachSound("NASU_GAMEOVER");
MUSIC.setVolume(20);
MUSIC.start(0, 1);
Instance of Symbol 18 MovieClip in Frame 4
onClipEvent (load) {
var TT = 0;
}
onClipEvent (enterFrame) {
TT++;
if (TT > 200) {
_root.gotoAndStop(1);
}
}
Symbol 8 MovieClip [Bonus] Frame 1
#initclip 8
Object.registerClass("Bonus", Bonus);
#endinitclip
Symbol 10 MovieClip [Camaron] Frame 1
#initclip 5
Object.registerClass("Camaron", Camaron);
#endinitclip
Symbol 13 MovieClip [ScoreFloat] Frame 1
#initclip 6
Object.registerClass("ScoreFloat", ScoreFloat);
#endinitclip
Symbol 16 MovieClip [GOD] Frame 1
#initclip 7
Object.registerClass("GOD", GOD);
#endinitclip
Symbol 54 MovieClip [__Packages.Camaron] Frame 0
class Camaron extends MovieClip
{
var _visible, _y, hitTest, removeMovieClip;
function Camaron () {
super();
}
function onLoad() {
_visible = false;
}
function onEnterFrame() {
if (_root.muerto == false) {
TT++;
if ((TT > 30) && (_visible == false)) {
_visible = true;
}
if (_visible == true) {
if (_y < 316) {
_y = _y + 4;
}
if (_y > 316) {
_y = 316;
}
if ((_y == 316) && (_root.muerto == false)) {
_root.muerto = true;
_root.MUSIC.stop();
_root.SOUND3.setVolume(80);
_root.SOUND3.start(0, 1);
_root.FONDO.gotoAndPlay(2);
}
if ((hitTest(_root.NASU) && (_root.NASU.suelo == false)) && (_root.muerto == false)) {
_root.EAT_SOUND.start(0, 1);
_root.crearScoreFlotante(10);
removeMovieClip();
_root.crearCamaron();
}
}
}
}
var TT = 0;
}
Symbol 55 MovieClip [__Packages.ScoreFloat] Frame 0
class ScoreFloat extends MovieClip
{
var removeMovieClip;
function ScoreFloat () {
super();
}
function onEnterFrame() {
TT++;
if (TT > 10) {
removeMovieClip();
}
}
var TT = 0;
}
Symbol 56 MovieClip [__Packages.GOD] Frame 0
class GOD extends MovieClip
{
function GOD () {
super();
}
function formatoPuntaje(DATOS) {
var _local3 = DATOS;
if (DATOS < 10) {
DATOS = "0000" + _local3;
} else if ((DATOS >= 10) && (DATOS < 100)) {
DATOS = "000" + _local3;
} else if ((DATOS >= 100) && (DATOS < 1000)) {
DATOS = "00" + _local3;
} else if ((DATOS >= 1000) && (DATOS < 10000)) {
DATOS = "0" + _local3;
} else if (DATOS >= 10000) {
DATOS = _local3;
}
if (DATOS > 99999) {
DATOS = 99999 /* 0x01869F */;
_root.puntajeTotal = 99999 /* 0x01869F */;
}
return(DATOS);
}
var PuntajeMaximo = 0;
}
Symbol 57 MovieClip [__Packages.Bonus] Frame 0
class Bonus extends MovieClip
{
var _x, xvelocity, _y, removeMovieClip, hitTest;
function Bonus () {
super();
}
function onLoad() {
}
function onEnterFrame() {
if (_root.muerto == false) {
_x = _x + xvelocity;
_y = _y + yvelocity;
yvelocity = yvelocity + 1;
if (_y > 313) {
_y = 313;
yvelocity = -8;
}
if ((_x < 114) && (xvelocity < 0)) {
removeMovieClip();
}
if ((_x > 510) && (xvelocity > 0)) {
removeMovieClip();
}
if ((hitTest(_root.NASU) && (_root.NASU.suelo == false)) && (_root.muerto == false)) {
_root.EAT_SOUND.start(0, 1);
_root.crearScoreFlotante(300);
removeMovieClip();
}
}
}
var yvelocity = 0;
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 42
if (_root.puntajeTotal > _root.UBOA.PuntajeMaximo) {
_root.UBOA.PuntajeMaximo = _root.puntajeTotal;
}
_root.UBOA.PuntajeMomentarioMorir = _root.puntajeTotal;
_root.CamaronOBJ.removeMovieClip();
for (var i in _root.BonusOBJ) {
_root.BonusOBJ[i].removeMovieClip();
}
_root.gotoAndStop(4);
Symbol 42 MovieClip Frame 1
if (_root.muerto == true) {
stop();
}
Symbol 42 MovieClip Frame 2
if (_root.muerto == true) {
stop();
}
Symbol 42 MovieClip Frame 3
if (_root.muerto == true) {
stop();
}
Symbol 42 MovieClip Frame 4
if (_root.muerto == true) {
stop();
}
Symbol 42 MovieClip Frame 5
if (_root.muerto == true) {
stop();
}
Symbol 42 MovieClip Frame 6
if (_root.muerto == true) {
stop();
}
Symbol 42 MovieClip Frame 7
if (_root.muerto == true) {
stop();
}
Symbol 42 MovieClip Frame 8
if (_root.muerto == true) {
stop();
}
Symbol 42 MovieClip Frame 9
if (_root.muerto == true) {
stop();
}
Symbol 42 MovieClip Frame 10
if (_root.muerto == true) {
stop();
}
Symbol 45 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 25
stop();