Commit fb4a421a authored by wildfirecode's avatar wildfirecode

1

parent 787fe8fb
node_modules node_modules
debug debug
\ No newline at end of file .rpt2_cache
\ No newline at end of file
# shuijf # shuijf
## manifest.json
- fps改成63,提升fps
- 使用fixedWidth
- webServiceUrl
- dataCenterConfig
## loading.gif
##
\ No newline at end of file
...@@ -21,6 +21,8 @@ export default class HelloScilla extends ScillaComponent { ...@@ -21,6 +21,8 @@ export default class HelloScilla extends ScillaComponent {
onAwake() { onAwake() {
super.onAwake(); super.onAwake();
console.log('fuck11')
this.labelRenderer = this.label.getComponent(TextRenderer); this.labelRenderer = this.label.getComponent(TextRenderer);
this.logoAnimation = this.logo.getComponent(Wave); this.logoAnimation = this.logo.getComponent(Wave);
} }
......
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>shuijf</title> <title>shuijf</title>
<meta name="viewport" <meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/> content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes"/> <meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true"/> <meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait"/> <meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true"/> <meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true"/> <meta name="360-fullscreen" content="true" />
<style> <style>
html, body { html,
body,
p {
padding: 0; padding: 0;
margin: 0; margin: 0;
border: 0; border: 0;
}
html,
body {
height: 100%; height: 100%;
background-color: #282C34; background-color: #282C34;
} }
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style> </style>
</head> </head>
<body> <body>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<script src="debug/bundle.js"></script> <div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<script> <div id="loading">
setTimeout(function(){ <img src="loading.gif" />
var options = window['inputOptions'] || {}; </div>
window['shuijf'].startup(document.getElementById('gameContainer'), options); <script src="./zepto.min.js"></script>
}, 100); <script src="./security.js"></script>
</script> <script src="debug/bundle.js"></script>
<script>
var CFG = { "actId": "3335069", "oaId": "3335069", "unitName": "积分", "btnUnitName": "积分", "doJoin": "/hdtool/doJoin?dpm=1.3.1.0&activityId=3335069", "quireOrder": "/hdtool/getOrderStatus", "styleConfig": "/hdtool/getHdtoolConfig", "getElement": "/hdtool/ajaxElement", "getPrizeDetail": "/hdtool/prizeDetail", "ajaxThroughInfo": "/hdtool/ajaxThroughInfo", "throughSubmit": "/hdtool/throughSubmit", "gameGetOrder": "/hdtool/getOrderInfo", "gameSubmit": "/hdtool/gameSubmit", "doSubmit": "/hdtool/submit", "adslotId": "", "consumerId": "1", "isNotLoginUser": false, "uid": "1", "hdType": "duiba", "hdToolId": "42363", "appType": "credits", "subType": "custom", "directSendCoupon": "false", "ajaxAction": "", "recommendQueue": "/recommend/getRecommend", "recommendSkin": "/recommend/getRecommendSkin", "isShowDetail": true, "preview": false, "from": "", "login": "//activity.m.duiba.com.cn/hdtool/login?dpm=1.3.3.0", "flowRedirectUrl": "", "flowRedirectTuiaUrl": "", "isOpenRecommend": false, "getCreditsLink": "http://baidu.com?uid=1&dbnewopen", "appId": "1", "recordUrl": "//activity.m.duiba.com.cn/crecord/record?dbnewopen&dpm=1.3.2.0", "shareDesc": "分享分享文案文案", "entranceDesc": "测试领奖,也可到我的奖品领奖,24小时内有效哦", "isSHowMeat": true, "needCouponModal": true, "needRecommendModal": true, "asyncFiles": [], "shareAndroidLinkActivity": "http://www.duiba.com.cn", "shareIosLinkActivity": "http://www.iqiyi.com", "appName": "custom", "needShare": true, "shareTitle": "", "shareSubTitle": "", "sharePicUrl": "", "shareLink": "", "shareAndroidDeeplink": "", "shareIOSDeeplink": "" };
function requirelogin() {
console.log('requirelogin');
}
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {};//window['inputOptions'] ||
window['shuijf'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
<script>
document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] +
':35729/livereload.js?snipver=1"></' + 'script>')
</script>
</body> </body>
</html>
</html>
\ No newline at end of file
loading.gif

9.21 KB

{ {
"name": "shuijf", "name": "shuijf",
"engineConfig": { "engineConfig": {
"fps": 60, "fps": 63,
"designWidth": 750, "designWidth": 750,
"designHeight": 1334, "designHeight": 1334,
"scaleMode": "showAll", "scaleMode": "fixedWidth",
"modifyCanvasSize": false, "modifyCanvasSize": false,
"resPath": "" "resPath": ""
}, },
...@@ -15,6 +15,13 @@ ...@@ -15,6 +15,13 @@
}, },
"entryScene": "main" "entryScene": "main"
}, },
"webServiceUrl-": "http://10.10.93.204:7555 http://localhost:3010",
"webServiceUrl": "http://localhost:4001" "webServiceUrl": "http://localhost:4001"
},
"dataCenterConfig": {
"dataCenterRoot": [
"API",
"CFG"
]
} }
} }
...@@ -4,7 +4,10 @@ ...@@ -4,7 +4,10 @@
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"mock": "game-cli m -p 4001 -f './mock' " "livereload": "livereload . -ee scene,jpg,png,html",
"mock": "game-cli m -p 4001 -f './mock'",
"server": "game-cli serve -p 3001",
"dev": "game-cli dev"
}, },
"build": { "build": {
"build-process": "scilla", "build-process": "scilla",
...@@ -17,5 +20,8 @@ ...@@ -17,5 +20,8 @@
"scilla-components": "git+http://gitlab2.dui88.com/laoqifeng/scilla-components#dev", "scilla-components": "git+http://gitlab2.dui88.com/laoqifeng/scilla-components#dev",
"scilla-launcher": "git+http://gitlab2.dui88.com/laoqifeng/scilla-launcher#dev" "scilla-launcher": "git+http://gitlab2.dui88.com/laoqifeng/scilla-launcher#dev"
}, },
"devDependencies": {} "devDependencies": {
} "livereload": "^0.8.0",
"tslib": "^1.9.3"
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment