合体实验室

欢迎来到程序小院

合体实验室

玩法:将三个生物连在一起合成新的生物,再产生两种新的生物又可以合并,
点击左上角存放生物,生物溢出顶端游戏结束,快去合并生物吧^^。

开始游戏icon-default.png?t=N7T8https://www.ormcc.com/play/gameStart/270

html

<div id="enchant-stage"></div>
<div id="banad"></div>

css

body {
    background: url("../images/background.jpg") center 0 no-repeat #fff;
    height: 100%;
    padding-top: 49px;
}

js

var highestEvolutionLevel=0;
function pickAdURL() {}

function DetectIphone() {
    return -1 < uagent.search(deviceIphone) ? DetectIpad() || DetectIpod() ? !1 : !0 : !1
}

function DetectIpod() {
    return -1 < uagent.search(deviceIpod) ? !0 : !1
}

function DetectIpad() {
    return -1 < uagent.search(deviceIpad) && DetectWebkit() ? !0 : !1
}

function DetectIphoneOrIpod() {
    return -1 < uagent.search(deviceIphone) || -1 < uagent.search(deviceIpod) ? !0 : !1
}

function DetectIos() {
    return DetectIphoneOrIpod() || DetectIpad() ? !0 : !1
}

function DetectAndroid() {
    return -1 < uagent.search(deviceAndroid) || DetectGoogleTV() ? !0 : -1 < 
    uagent.search(deviceHtcFlyer) ? !0 : !1
}

function DetectAndroidPhone() {
    return DetectAndroid() && -1 < uagent.search(mobile) || DetectOperaAndroidPhone() ? 
    !0 : -1 < uagent.search(deviceHtcFlyer) ? !0 : !1
}

function DetectAndroidTablet() {
    return !DetectAndroid() || DetectOperaMobile() || -1 < uagent.search(deviceHtcFlyer) ?
    !1 : -1 < uagent.search(mobile) ? !1 : !0
}

function DetectAndroidWebKit() {
    return DetectAndroid() && DetectWebkit() ? !0 : !1
}

function DetectGoogleTV() {
    return -1 < uagent.search(deviceGoogleTV) ? !0 : !1
}

function DetectWebkit() {
    return -1 < uagent.search(engineWebKit) ? !0 : !1
}

function DetectS60OssBrowser() {
    return DetectWebkit() ? -1 < uagent.search(deviceS60) || -1 < 
    uagent.search(deviceSymbian) ? !0 : !1 : !1
}

function DetectSymbianOS() {
    return -1 < uagent.search(deviceSymbian) || -1 < uagent.search(deviceS60) || -1 < 
    uagent.search(deviceS70) || -1 < uagent.search(deviceS80) || -1 < 
    uagent.search(deviceS90) ? !0 : !1
}

function DetectWindowsPhone7() {
    return -1 < uagent.search(deviceWinPhone7) ? !0 : !1
}

function DetectWindowsMobile() {
    return DetectWindowsPhone7() ? !1 : -1 < uagent.search(deviceWinMob) || -1 < 
    uagent.search(deviceIeMob) || -1 < uagent.search(enginePie) || -1 < 
    uagent.search(devicePpc) && !(-1 < uagent.search(deviceMacPpc)) ? !0 : -1 < 
    uagent.search(manuHtc) && -1 < uagent.search(deviceWindows) ? !0 : !1
}

function DetectBlackBerry() {
    return -1 < uagent.search(deviceBB) ? !0 : -1 < uagent.search(vndRIM) ? !0 : !1
}

function DetectBlackBerryTablet() {
    return -1 < uagent.search(deviceBBPlaybook) ? !0 : !1
}

function DetectBlackBerryWebKit() {
    return DetectBlackBerry() && -1 < uagent.search(engineWebKit) ? !0 : !1
}

function DetectBlackBerryTouch() {
    return DetectBlackBerry() && (-1 < uagent.search(deviceBBStorm) || -1 < 
    uagent.search(deviceBBTorch) || -1 < uagent.search(deviceBBBoldTouch) || -1 < 
    uagent.search(deviceBBCurveTouch)) ? !0 : !1
}

function DetectBlackBerryHigh() {
    return DetectBlackBerryWebKit() ? !1 : DetectBlackBerry() ? DetectBlackBerryTouch() || 
    -1 < uagent.search(deviceBBBold) || -1 < uagent.search(deviceBBTour) || -1 < 
    uagent.search(deviceBBCurve) ? !0 : !1 : !1
}

function DetectBlackBerryLow() {
    return DetectBlackBerry() ? DetectBlackBerryHigh() || DetectBlackBerryWebKit() ? 
    !1 : !0 : !1
}

function DetectPalmOS() {
    return -1 < uagent.search(devicePalm) || -1 < uagent.search(engineBlazer) || -1 < 
    uagent.search(engineXiino) ? DetectPalmWebOS() ? !1 : !0 : !1
}

function DetectPalmWebOS() {
    return -1 < uagent.search(deviceWebOS) ? !0 : !1
}

function DetectWebOSTablet() {
    return -1 < uagent.search(deviceWebOShp) && -1 < uagent.search(deviceTablet) ? !0 : !1
}

function DetectGarminNuvifone() {
    return -1 < uagent.search(deviceNuvifone) ? !0 : !1
}

function DetectSmartphone() {
    return DetectIphoneOrIpod() || DetectAndroidPhone() || DetectS60OssBrowser() || 
    DetectSymbianOS() || DetectWindowsMobile() || DetectWindowsPhone7() || DetectBlack
    Berry() || DetectPalmWebOS() || DetectPalmOS() || DetectGarminNuvifone() ? !0 : !1
}

function DetectArchos() {
    return -1 < uagent.search(deviceArchos) ? !0 : !1
}

function DetectBrewDevice() {
    return -1 < uagent.search(deviceBrew) ? !0 : !1
}

function DetectDangerHiptop() {
    return -1 < uagent.search(deviceDanger) || -1 < uagent.search(deviceHiptop) ? !0 : !1
}

function DetectMaemoTablet() {
    return -1 < uagent.search(maemo) ? !0 : -1 < uagent.search(linux) && -1 < 
    uagent.search(deviceTablet) && !DetectWebOSTablet() && !DetectAndroid() ? !0 : !1
}

function DetectSonyMylo() {
    return -1 < uagent.search(manuSony) ? -1 < uagent.search(qtembedded) || -1 < 
    uagent.search(mylocom2) ? !0 : !1 : !1
}

function DetectOperaMobile() {
    return -1 < uagent.search(engineOpera) ? -1 < uagent.search(mini) || -1 < 
    uagent.search(mobi) ? !0 : !1 : !1
}

function DetectOperaAndroidPhone() {
    return -1 < uagent.search(engineOpera) && -1 < uagent.search(deviceAndroid) && 
    -1 < uagent.search(mobi) ? !0 : !1
}

function DetectOperaAndroidTablet() {
    return -1 < uagent.search(engineOpera) && -1 < uagent.search(deviceAndroid) && 
    -1 < uagent.search(deviceTablet) ? !0 : !1
}

function DetectSonyPlaystation() {
    return -1 < uagent.search(devicePlaystation) ? !0 : !1
}

function DetectNintendo() {
    return -1 < uagent.search(deviceNintendo) || -1 < uagent.search(deviceWii) || -1 
    < uagent.search(deviceNintendoDs) ? !0 : !1
}

function DetectXbox() {
    return -1 < uagent.search(deviceXbox) ? !0 : !1
}

function DetectGameConsole() {
    return DetectSonyPlaystation() || DetectNintendo() ? !0 : DetectXbox() ? !0 : !1
}

function DetectKindle() {
    return -1 < uagent.search(deviceKindle) && !DetectAndroid() ? !0 : !1
}

function DetectAmazonSilk() {
    return -1 < uagent.search(engineSilk) ? !0 : !1
}

function DetectMobileQuick() {
    return DetectTierTablet() ? !1 : DetectSmartphone() || -1 < uagent.search(deviceMidp) 
    || DetectBrewDevice() || DetectOperaMobile() || -1 < uagent.search(engineNetfront) 
    || -1 < uagent.search(engineUpBrowser) || -1 < uagent.search(engineOpenWeb) 
    || DetectDangerHiptop() || DetectMaemoTablet() || DetectArchos() 
    || -1 < uagent.search(devicePda) && !(-1 < uagent.search(disUpdate)) 
    || -1 < uagent.search(mobile) || DetectKindle() || DetectAmazonSilk() ? !0 : !1
}

function DetectMobileLong() {
    return DetectMobileQuick() || DetectGameConsole() || DetectSonyMylo() 
    || -1 < uagent.search(manuSamsung1) || -1 < uagent.search(manuSonyEricsson) 
    || -1 < uagent.search(manuericsson) || -1 < uagent.search(svcDocomo) 
    || -1 < uagent.search(svcKddi) || -1 < uagent.search(svcVodafone) ? !0 : !1
}

function DetectTierTablet() {
    return DetectIpad() || DetectAndroidTablet() || DetectBlackBerryTablet() 
    || DetectWebOSTablet() ? !0 : !1
}

function DetectTierIphone() {
    return DetectIphoneOrIpod() || DetectAndroidPhone() || DetectBlackBerryWebKit() 
    && DetectBlackBerryTouch() || DetectWindowsPhone7() || DetectPalmWebOS() ? 
    !0 : DetectGarminNuvifone() ? !0 : !1
}

function DetectTierRichCss() {
    return DetectMobileQuick() ? DetectTierIphone() || DetectKindle() ? !1 : 
    DetectWebkit() || DetectS60OssBrowser() || DetectBlackBerryHigh() || 
    DetectWindowsMobile() ? !0 : -1 < uagent.search(engineTelecaQ) ? !0 : !1 : !1
}

function DetectTierOtherPhones() {
    return DetectMobileLong() ? DetectTierIphone() || DetectTierRichCss() ? 
    !1 : !0 : !1
}

function InitDeviceScan() {
    isIphone = DetectIphoneOrIpod();
    isAndroidPhone = DetectAndroidPhone();
    isTierIphone = DetectTierIphone();
    isTierTablet = DetectTierTablet();
    isTierRichCss = DetectTierRichCss();
    isTierGenericMobile = DetectTierOtherPhones()
}

function randomSnd() {
    for (var e = 0, t = 0; 3 > t; t++) var n = Random.random(),
        e = e + (2 * n - 1);
    return e
}

function randNormal(e, t) {
    return randomSnd() * t + e
}

function rand(e) {
    return Math.floor(Math.random() * e)
}

function containsObject(e, t) {
    var n;
    for (n = 0; n < t.length; n++)
        if (t[n] === e) return !0;
    return !1
}

function addCommas(e) {
    x = (e + "").split(".");
    x1 = x[0];
    x2 = 1 < x.length ? "." + x[1] : "";
    for (e = /(\d+)(\d{3})/; e.test(x1);) x1 = x1.replace(e, "$1,$2");
    return x1 + x2
}

function initHighscore() {
    var e = localStorage[GAME_UID + "highscoreTable"];
    return void 0 === e || null === e ? [] : JSON.parse(e)
}

function createHighscoreEntry(e) {
    var t = {};
    t.date = Date.now();
    t.score = e;
    return t
}

function addToHighscoreList(e) {
    var t;
    for (t = 0; t < _G.highscoreTable.length && !(_G.highscoreTable[t].score < e.score); 
    t++);
    _G.highscoreTable.splice(t, 0, e);
    10 < _G.highscoreTable.length && _G.highscoreTable.pop();
    localStorage[GAME_UID + "highscoreTable"] = JSON.stringify(_G.highscoreTable)
}

function setLoadingScene() {
    var e = new Scene,
        t = new Sprite(320, 480);
    t.image = enchant.Game.instance.assets["res/splashScreen.png"];
    e.addChild(t);
    enchant.Game.instance.loadingScene = e;
    enchant.Game.instance.start()
}
var isIphone = !1,
    isAndroidPhone = !1,
    isTierTablet = !1,
    isTierIphone = !1,
    isTierRichCss = !1,
    isTierGenericMobile = !1,
    engineWebKit = "webkit",
    deviceIphone = "iphone",
    deviceIpod = "ipod",
    deviceIpad = "ipad",
    deviceMacPpc = "macintosh",
    deviceAndroid = "android",
    deviceGoogleTV = "googletv",
    deviceXoom = "xoom",
    deviceHtcFlyer = "htc_flyer",
    deviceNuvifone = "nuvifone",
    deviceSymbian = "symbian",
    deviceS60 = "series60",
    deviceS70 = "series70",
    deviceS80 = "series80",
    deviceS90 = "series90",
    deviceWinPhone7 = "windows phone os 7",
    deviceWinMob = "windows ce",
    deviceWindows = "windows",
    deviceIeMob = "iemobile",
    devicePpc = "ppc",
    enginePie = "wm5 pie",
    deviceBB = "blackberry",
    vndRIM = "vnd.rim",
    deviceBBStorm = "blackberry95",
    deviceBBBold = "blackberry97",
    deviceBBBoldTouch = "blackberry 99",
    deviceBBTour = "blackberry96",
    deviceBBCurve = "blackberry89",
    deviceBBCurveTouch = "blackberry 938",
    deviceBBTorch = "blackberry 98",
    deviceBBPlaybook = "playbook",
    devicePalm = "palm",
    deviceWebOS = "webos",
    deviceWebOShp = "hpwos",
    engineBlazer = "blazer",
    engineXiino = "xiino",
    deviceKindle = "kindle",
    engineSilk = "silk",
    vndwap = "vnd.wap",
    wml = "wml",
    deviceTablet = "tablet",
    deviceBrew = "brew",
    deviceDanger = "danger",
    deviceHiptop = "hiptop",
    devicePlaystation = "playstation",
    deviceNintendoDs = "nitro",
    deviceNintendo = "nintendo",
    deviceWii = "wii",
    deviceXbox = "xbox",
    deviceArchos = "archos",
    engineOpera = "opera",
    engineNetfront = "netfront",
    engineUpBrowser = "up.browser",
    engineOpenWeb = "openweb",
    deviceMidp = "midp",
    uplink = "up.link",
    engineTelecaQ = "teleca q",
    devicePda = "pda",
    mini = "mini",
    mobile = "mobile",
    mobi = "mobi",
    maemo = "maemo",
    linux = "linux",
    qtembedded = "qt embedded",
    mylocom2 = "com2",
    manuSonyEricsson = "sonyericsson",
    manuericsson = "ericsson",
    manuSamsung1 = "sec-sgh",
    manuSony = "sony",
    manuHtc = "htc",
    svcDocomo = "docomo",
    svcKddi = "kddi",
    svcVodafone = "vodafone",
    disUpdate = "update",
    uagent = "";
navigator && navigator.userAgent && (uagent = navigator.userAgent.toLowerCase());
InitDeviceScan();
Random = {};
(function(e, t, n, r, i, s, o) {
    function u(e) {
        var t, r, i = this,
            s = e.length,
            o = 0,
            u = i.i = i.j = i.m = 0;
        i.S = [];
        i.c = [];
        for (s || (e = [s++]); o < n;) i.S[o] = o++;
        for (o = 0; o < n; o++) t = i.S[o], u = u + t + e[o % s] & n - 1, r = i.S[u],
        i.S[o] = r, i.S[u] = t;
        i.g = function(e) {
            var t = i.S,
                r = i.i + 1 & n - 1,
                s = t[r],
                o = i.j + s & n - 1,
                u = t[o];
            t[r] = u;
            t[o] = s;
            for (var a = t[s + u & n - 1]; --e;) r = r + 1 & n - 1, s = t[r], o = o + 
            s & n - 1, u = t[o], t[r] = u, t[o] = s, a = a * n + t[s + u & n - 1];
            i.i = r;
            i.j = o;
            return a
        };
        i.g(n)
    }

    function a(e, t, n, r, i) {
        n = [];
        i = typeof e;
        if (t && "object" == i)
            for (r in e)
                if (5 > r.indexOf("S")) try {
                    n.push(a(e[r], t - 1))
                } catch (s) {}
                return n.length ? n : e + ("string" != i ? "\0" : "")
    }

    function f(e, t, r, i) {
        e += "";
        for (i = r = 0; i < e.length; i++) {
            var s = t,
                o = i & n - 1,
                u = (r ^= 19 * t[i & n - 1]) + e.charCodeAt(i);
            s[o] = u & n - 1
        }
        e = "";
        for (i in t) e += String.fromCharCode(t[i]);
        return e
    }
    t.seedrandom = function(l, p) {
        var v = [],
            m, l = f(a(p ? [l, e] : arguments.length ? l : [(new Date).getTime(), e, window], 3), v);
        m = new u(v);
        f(m.S, e);
        t.random = function() {
            for (var e = m.g(r), t = o, u = 0; e < i;) e = (e + u) * n, t *= n, u = m.g(1);
            for (; e >= s;) e /= 2, t /= 2, u >>>= 1;
            return (e + u) / t
        };
        return l
    };
    o = Math.pow(n, r);
    i = Math.pow(2, i);
    s = 2 * i;
    f(Math.random(), e)
})([], Random, 256, 6, 52);

源码

需要源码请关注添加好友哦^ ^

转载:欢迎来到本站,转载请注明文章出处https://ormcc.com/

  • 24
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值