怎么破解flash游戏?我想拿一个比较好的游戏当引擎,弄成扩展版本。。。。。
我反汇编了一个swf文件,用的是“flash反汇编大师”,可是提出的资源名字没有了,图像声音什么的都是序列123,没有代码里的名字了。提取的代码也有分成了好多文件,这怎么整啊。
我是菜鸟,求高手给讲下一般都怎么破解flash游戏,提取代码,制作简易游戏引擎什么的。谢谢。
function shokika()
{
b_num = 3;
max_mem = all_num = memory_num = seikai_num = g_num = 0;
}
function c_oto()
{
c_sound.setVolume(35);
c_sound.start(0, 1);
}
function pr_btn()
{
play ();
}
function roll_btn()
{
f_sound.start(0, 1);
trace (f_sound.getVolume());
}
stop ();
this._lockroot = true;
trace (_root);
wait_time = 560;
game_kaisuu = 10;
Stage.scaleMode = "exactFit";
seikai_click = "pyoron";
maru_oto = "correct";
this.createEmptyMovieClip("c_mc", 50);
c_sound = new Sound(c_mc);
c_sound.attachSound("count");
my_so = SharedObject.getLocal("myData1");
if (my_so.data.nenrei != undefined)
{
old = my_so.data.nenrei;
}
this.createEmptyMovieClip("f_mc", 51);
f_sound = new Sound(f_mc);
f_sound.setVolume(60);
f_sound.attachSound("roll");
trace (_root._url);
str_ary = _root._url.split("/");
str_flag = false;
for (i = 0; i < str_ary.length; i++)
{
if (str_ary[i] == "マイドキュメント" || str_ary[i] == "flashfabrica.com")
{
play ();
str_flag = true;
trace (str_ary[i]);
break;
}
}
if (str_flag == false)
{
str_en_ary = _root._url.split("\\");
for (i = 0; i < str_en_ary.length; i++)
{
if (str_en_ary[i] == "マイドキュメント" || str_en_ary[i] == "flashfabrica.com")
{
play ();
trace (str_en_ary[i]);
break;
}
}
}
url_btn.onPress = function ()
{
getURL("http://come-on.blog.xaonline.com/", "", "POST";
};
bntnext.onPress = function ()
{
gotoAndPlay(2);
};
stop ();
stop ();
if (_root.g_num != undefined)
{
rem_mc.set_rem(_root.game_kaisuu - _root.g_num);
}
if (_root.g_num != undefined && _root.g_num >= _root.game_kaisuu)
{
_root.gotoAndPlay("finish");
}
function game_start()
{
this.mondai_mc.attach_mc(b_num);
++g_num;
}
function set_kotae(flag, num)
{
all_num = all_num + b_num;
memory_num = memory_num + num;
if (max_mem < num)
{
max_mem = num;
}
if (flag)
{
++seikai_num;
++b_num;
}
else
{
--b_num;
if (b_num < 3)
{
b_num = 3;
}
else if (b_num > 10)
{
b_num = 10;
}
}
trace ("最大記憶数" + max_mem);
trace ("記憶指数" + Math.floor(memory_num / 82 * 100));
trace (memory_num + " ? " + all_num);
trace (Math.floor(memory_num / all_num * 100) + "%");
trace (seikai_num + " ? " + g_num);
trace (Math.floor(seikai_num / g_num * 100) + "%");
}
stop ();
if (b_num == undefined || g_num == undefined)
{
shokika();
}
this.game_start();
f_obj = new Object();
f_obj.f_sound = new Sound(this);
f_obj.f_sound.attachSound("finish");
f_obj.f_sound.start(0, 1);
f_obj.f_sound.onSoundComplete = function ()
{
};
if (memory_num >= 48)
{
Lank = 20;
}
if (memory_num < 48)
{
Lank = 69 - memory_num;
}
if (memory_num < 40)
{
Lank = 70 - memory_num;
}
if (memory_num < 30)
{
Lank = 80 - memory_num;
}
if (memory_num < 20)
{
Lank = 120;
}
if (seikai_num >= 8 || Lank < 20)
{
Lank = 20;
}
stop ();
setProperty("", _quality, "best");
Lank_txt.text = "";
Lank_num = 0;
this.createEmptyMovieClip("Lank_mc", 500);
trace (Lank);
Lank_mc.onEnterFrame = function ()
{
if (Lank > Lank_num)
{
Lank_txt.text = ++Lank_num;
}
else
{
_root.play();
this.removeMovieClip();
}
};
stop ();
_root.shokika();
this.rem_mc.rem_format();
[解决办法]
反编译后,学习学习别人的代码,我认为没什么不可以。
但是如果靠破解别人的东西来做自己的东西。你不觉得这种行为很可耻吗?