注册 登录 充值会员 退出
毕业设计 PHP源码
充值

html5叠房子消消乐小游戏代码

作者/代码整理:  (转载请附加本文地址,带有“懒人原生”字样的谢绝转载) 发布日期:2017-12-17
html5叠房子消消乐小游戏代码
html5叠房子消消乐小游戏代码是一款非常好玩的html5叠房子游戏源码,点击颜色相同的邻接区域,可以将这些区域合成到一处进行消除升级。


js代码

    <script>
        // The game configuration
        var qici = {};
        qici.config = {
            projectName: 'Subara',
            gameName: '消消乐',
            companyName: 'qcplay',
            bundleIdentifier: 'com.qcplay',
            gameInstance: 'qc_game',
            frameRate: {"mobile":40,"desktop":60},
            backgroundColor: 4210752,
            runInBackground: true,
            antialias: true,
            transparent: false,
            developerMode: false,
            renderer: 'Canvas',
            resolution : Math.min(2, devicePixelRatio),
            loadingPrefab: '',
            scene: {
                
            "SubaraCity" : "Assets/state/SubaraCity.bin"
            },
            entryScene : 'SubaraCity',
            dirtyRectangles: true,
            loading: {
                loadingText: 'Loading, please wait...',
                loadingInterval: 200,
                brightingInterval: 10,
                blinkingCount: 5,
                blinkingInterval: 70,
                fadingInInterval: 400,
                fadingOutInterval: 600
            }
        };

 		_pluginVariables_={}

        qici.scripts = [
            './Assets/meta/globalUrlMap.js',
            './xiaoxiaole/phaser.min.js',
            './xiaoxiaole/webfontloader.js',
            './xiaoxiaole/qc-core.js',
            './xiaoxiaole/qc-webgl.js',
            // External scripts for plugins

            // User scripts
            './js/game-scripts-mini-1.0.js'
        ];

		// Asset count that need preload in boot
		qici.loadingAssetCount = 11;
    </script>
    <script src='./xiaoxiaole/qc-loading.js'></script>