Commit 9a236b7e authored by wildfirecode's avatar wildfirecode

1

parent ddcd79ab
No preview for this file type
No preview for this file type
......@@ -107,7 +107,9 @@
"getNgameStartStatus": "dynamic|API|getNgameStartStatus",
"getOrderStatus": "dynamic|API|getOrderStatus",
"Drop": "res|f46e6c22-442d-4e5c-a03f-b1b5a073f5a2",
"countTxt": "entity|69f9ed92-756e-4962-a4ad-7513b8f0b41f"
"countTxt": "entity|69f9ed92-756e-4962-a4ad-7513b8f0b41f",
"musiconbtn": "entity|69ea9749-a112-4228-931a-413b00818f7a",
"musicoffbtn": "entity|0b73e51e-93dc-4080-851f-0b9e37c24e56"
},
"disabled": false
},
......@@ -665,8 +667,8 @@
"script": "components/base/Transform",
"properties": {
"position": {
"x": -280,
"y": -762.1666666666667,
"x": 334.5454545454545,
"y": -760.3484848484849,
"_type_": "scilla/support/Vector2D"
}
}
......@@ -709,8 +711,8 @@
"script": "components/base/Transform",
"properties": {
"position": {
"x": 282,
"y": -762.1666666666667,
"x": 334.72727272727275,
"y": -703.9848484848485,
"_type_": "scilla/support/Vector2D"
}
}
......@@ -746,6 +748,104 @@
"children": [],
"uuid": "47299b0c-16e5-4ef6-8d9b-5b6b6ad1077d"
},
{
"name": "musiconBtn",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 229.2727272727273,
"y": -756.7121212121212,
"_type_": "scilla/support/Vector2D"
},
"scale": {
"x": 0.3,
"y": 0.3,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|06cc951c-e0ac-47b9-a7eb-ce4bd2436f18"
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"onClick": [
{
"entity": "entity|41f0a20e-9d0a-445b-8ffc-d8a0b04ab02c",
"component": 1,
"method": "onclick_music"
}
],
"disabledRes": "res|06cc951c-e0ac-47b9-a7eb-ce4bd2436f18",
"upRes": "res|06cc951c-e0ac-47b9-a7eb-ce4bd2436f18",
"downRes": "res|06cc951c-e0ac-47b9-a7eb-ce4bd2436f18"
}
}
],
"children": [],
"uuid": "69ea9749-a112-4228-931a-413b00818f7a"
},
{
"name": "musicoffBtn",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 229.2727272727273,
"y": -756.7121212121212,
"_type_": "scilla/support/Vector2D"
},
"scale": {
"x": 0.3,
"y": 0.3,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4"
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"onClick": [
{
"entity": "entity|41f0a20e-9d0a-445b-8ffc-d8a0b04ab02c",
"component": 1,
"method": "onclick_music"
}
],
"disabledRes": "res|dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4",
"upRes": "res|dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4",
"downRes": "res|dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4"
}
}
],
"children": [],
"uuid": "0b73e51e-93dc-4080-851f-0b9e37c24e56"
},
{
"name": "startBtn",
"components": [
......@@ -790,6 +890,50 @@
"children": [],
"uuid": "5f3ed06e-c47a-491e-a3a1-9ac0e700a302"
},
{
"name": "backBtn",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": -324.63636363636357,
"y": -757.8030303030303,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|afe9abeb-33c7-4773-83eb-8db8d4d5fce1"
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"onClick": [
{
"entity": "entity|41f0a20e-9d0a-445b-8ffc-d8a0b04ab02c",
"component": 1,
"method": "onClick_backbtn"
}
],
"disabledRes": "res|afe9abeb-33c7-4773-83eb-8db8d4d5fce1",
"upRes": "res|afe9abeb-33c7-4773-83eb-8db8d4d5fce1",
"downRes": "res|afe9abeb-33c7-4773-83eb-8db8d4d5fce1"
}
}
],
"children": [],
"uuid": "ebd37261-7796-4135-860e-178270f5194e"
},
{
"name": "tips",
"components": [
......@@ -1625,6 +1769,18 @@
{
"name": "树杆.png",
"uuid": "c45eb649-b3d7-41ba-8c8a-9c52f33a904d"
},
{
"name": "backbtn.png",
"uuid": "afe9abeb-33c7-4773-83eb-8db8d4d5fce1"
},
{
"name": "musicoff.png",
"uuid": "dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4"
},
{
"name": "musicon.png",
"uuid": "06cc951c-e0ac-47b9-a7eb-ce4bd2436f18"
}
]
}
......
......@@ -10,7 +10,10 @@ import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { getRotation, setRotation } from "../transformUtils";
import Drop from "./Drop";
import { setText } from "../entityUtils";
export const getURL = () => {
//`/customActivity/sjf/mainIndex?weddingId=2
return `/customActivity/sjf/mainIndex?weddingId=${window['CFG'].weddingId}`;
}
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
Drop: resource;
// doJoin: dynamic;
......@@ -21,6 +24,17 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
rankbtn: Entity;
rulebtn: Entity;
treeWrapper: Entity;
musiconbtn: Entity;
musicoffbtn: Entity;
onclick_music() {
this.musicoffbtn.enabled = !this.musicoffbtn.enabled;
this.musiconbtn.enabled = !this.musiconbtn.enabled;
if (this.musiconbtn.enabled) {
document.getElementById('bgmusic')['play']();
} else {
document.getElementById('bgmusic')['pause']();
}
}
_drop: Drop;
......@@ -28,6 +42,7 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
onAwake() {
super.onAwake();
this.musicoffbtn.enabled = false;
if (!this._drop) {
this._drop = instantiate(this.Drop).getComponent(Drop);
this._drop.entity.enabled = false;
......@@ -148,6 +163,11 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
}
}
onClick_backbtn() {
// console.log('onClick_backbtn');
window.location.href = getURL()
}
onGotDojoin(data) {
this._shakeTimes = this.SHAK_TIMERS;
this._counter = 0;
......
No preview for this file type
{"ver":"1.0.1","uuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","subMetas":{"rulebtn.png":{"ver":"1.0.1","uuid":"d092293f-6a84-45eb-a7c2-7735b747c2af","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"8分.png":{"ver":"1.0.1","uuid":"2b8c13b0-c675-4031-ac51-8d39afb41505","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"recordbtn.png":{"ver":"1.0.1","uuid":"7c2aa27c-5cf6-46d0-8509-d9b68052de09","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"roles.png":{"ver":"1.0.1","uuid":"5c3bc8ff-d886-437f-8320-cfef9bdc71e6","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"startbtn.png":{"ver":"1.0.1","uuid":"65d0864b-a3b8-438b-aa87-673311473c7f","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"text1.png":{"ver":"1.0.1","uuid":"ce594e8b-00d9-4171-a4e1-3d77fd6746f6","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"兑吧大牌券.png":{"ver":"1.0.1","uuid":"41a91467-d5fa-461d-b2dc-a842c786b76a","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"口红.png":{"ver":"1.0.1","uuid":"9c55b44d-3454-438d-b5fd-d73fea0a291c","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"栅栏.png":{"ver":"1.0.1","uuid":"13befe8b-8a33-46e2-bee6-fa0d17994329","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"树.png":{"ver":"1.0.1","uuid":"e4e0b901-f0ef-4c1c-a90e-bc923dd8c4e7","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"炸弹.png":{"ver":"1.0.1","uuid":"9c6e40d8-0c90-41fe-ad28-9064ca7103ee","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"礼盒.png":{"ver":"1.0.1","uuid":"e6ca4128-75b8-4b8b-8a7d-8f95d46f810f","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"组 81.png":{"ver":"1.0.1","uuid":"7e76fac1-7791-476b-b73f-7cd5b4ea1344","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"树杆.png":{"ver":"1.0.1","uuid":"c45eb649-b3d7-41ba-8c8a-9c52f33a904d","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"}},"type":"sheet"}
{"ver":"1.0.1","uuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","subMetas":{"rulebtn.png":{"ver":"1.0.1","uuid":"d092293f-6a84-45eb-a7c2-7735b747c2af","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"8分.png":{"ver":"1.0.1","uuid":"2b8c13b0-c675-4031-ac51-8d39afb41505","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"recordbtn.png":{"ver":"1.0.1","uuid":"7c2aa27c-5cf6-46d0-8509-d9b68052de09","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"roles.png":{"ver":"1.0.1","uuid":"5c3bc8ff-d886-437f-8320-cfef9bdc71e6","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"startbtn.png":{"ver":"1.0.1","uuid":"65d0864b-a3b8-438b-aa87-673311473c7f","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"text1.png":{"ver":"1.0.1","uuid":"ce594e8b-00d9-4171-a4e1-3d77fd6746f6","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"兑吧大牌券.png":{"ver":"1.0.1","uuid":"41a91467-d5fa-461d-b2dc-a842c786b76a","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"口红.png":{"ver":"1.0.1","uuid":"9c55b44d-3454-438d-b5fd-d73fea0a291c","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"栅栏.png":{"ver":"1.0.1","uuid":"13befe8b-8a33-46e2-bee6-fa0d17994329","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"树.png":{"ver":"1.0.1","uuid":"e4e0b901-f0ef-4c1c-a90e-bc923dd8c4e7","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"炸弹.png":{"ver":"1.0.1","uuid":"9c6e40d8-0c90-41fe-ad28-9064ca7103ee","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"礼盒.png":{"ver":"1.0.1","uuid":"e6ca4128-75b8-4b8b-8a7d-8f95d46f810f","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"组 81.png":{"ver":"1.0.1","uuid":"7e76fac1-7791-476b-b73f-7cd5b4ea1344","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"树杆.png":{"ver":"1.0.1","uuid":"c45eb649-b3d7-41ba-8c8a-9c52f33a904d","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"backbtn.png":{"ver":"1.0.1","uuid":"afe9abeb-33c7-4773-83eb-8db8d4d5fce1","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"musicoff.png":{"ver":"1.0.1","uuid":"dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"musicon.png":{"ver":"1.0.1","uuid":"06cc951c-e0ac-47b9-a7eb-ce4bd2436f18","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"}},"type":"sheet"}
assets/sheets/start.sht/recordbtn.png

3.42 KB | W: | H:

assets/sheets/start.sht/recordbtn.png

1.43 KB | W: | H:

assets/sheets/start.sht/recordbtn.png
assets/sheets/start.sht/recordbtn.png
assets/sheets/start.sht/recordbtn.png
assets/sheets/start.sht/recordbtn.png
  • 2-up
  • Swipe
  • Onion skin
assets/sheets/start.sht/rulebtn.png

3.19 KB | W: | H:

assets/sheets/start.sht/rulebtn.png

1.34 KB | W: | H:

assets/sheets/start.sht/rulebtn.png
assets/sheets/start.sht/rulebtn.png
assets/sheets/start.sht/rulebtn.png
assets/sheets/start.sht/rulebtn.png
  • 2-up
  • Swipe
  • Onion skin
No preview for this file type
<script src="https://yun.duiba.com.cn/db_games/debug/vconsole.min.js"></script>
<script>
// init vConsole
var vConsole = new VConsole();
console.log('Hello world');
</script>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
......@@ -20,7 +12,7 @@
<script src="//yun.duiba.com.cn/db_games/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/security.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/downloadApp.js"></script>
<script src="//yun.duiba.com.cn/db_games/1561797897/bundle.js"></script>
<script src="//yun.duiba.com.cn/db_games/1561982277/bundle.js"></script>
<script>
setTimeout(function () {
......@@ -33,18 +25,18 @@
}
var options = {
resPath: "//yun.duiba.com.cn/db_games/1561784668/"
resPath: "//yun.duiba.com.cn/db_games/1561982277/"
};
window['shuijf'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
window.ruleContent = '';
window.ruleContent += '1.点击接礼物,礼物树开始掉落奖品<br>';
window.ruleContent += '2.奖品为随机掉落,接到实物奖品的获奖用户请于获奖当日在宴会现场工作人员处领取奖品,否则视为放弃领奖<br>';
window.ruleContent += '3.若未在游戏开放时间内或剩余参与次数为0时开始游戏,将无法参与游戏<br>';
window.ruleContent += '4.点击【我的奖品】可查看获奖情况<br>';
window.ruleContent += '5.在本次活动期间,如用户存在任何违反法律、法规、水井坊活动规则的行为,包括但不限于作弊得奖等行为,水井坊有权取消用户的中奖资格,有权撤销违规交易<br>';
window.ruleContent += '6.在法律规定的范围内,水井坊对本次活动拥有最终解释权';
window.ruleContent += '1、点击接礼物,礼物树开始掉落奖品;<br>';
window.ruleContent += '2、奖品为随机掉落,接到实物奖品的获奖用户请于获奖当日在宴会现场工作人员处领取奖品,否则视为放弃领奖;<br>';
window.ruleContent += '3、若未在游戏开放时间内或剩余参与次数为0时开始游戏,将无法参与游戏;<br>';
window.ruleContent += '4、点击【我的奖品】可查看获奖情况;<br>';
window.ruleContent += '5、在本次活动期间,如用户存在任何违反法律、法规、水井坊活动规则的行为,包括但不限于作弊得奖等行为,水井坊有权取消用户的中奖资格,有权撤销违规交易;<br>';
window.ruleContent += '6、在法律规定的范围内,水井坊对本次活动拥有最终解释权。';
</script>
<style>
......@@ -81,3 +73,33 @@
}
</style>
<audio id="bgmusic" src="//yun.duiba.com.cn/db_games/10.mp3" autoplay preload loop></audio>
<!-- 当使用方法1时必须加载 JS-SDK 的 JS 文件, 方法2不需要加载这个 JS -->
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
function autoPlayAudio() {
var ua = navigator.userAgent.toLowerCase();console.log(ua);
if (ua.match(/MicroMessenger/i)) {
console.log('MicroMessenger');
wx.config({
debug: false,
appId: '',
timestamp: 1,
nonceStr: '',
signature: '',
jsApiList: []
});
wx.ready(function() {console.log('ready');
document.getElementById('bgmusic').play();
});
} else {
window.onload=function(){
document.getElementById('bgmusic').play();
}
document.addEventListener("click",function(){
document.getElementById('bgmusic').play();
})
}
}
autoPlayAudio(); // 推荐使用方法1
</script>
\ No newline at end of file
......@@ -56,6 +56,7 @@
<script src="./zepto.min.js"></script>
<script src="./security.js"></script>
<script src="debug/bundle.js"></script>
<audio id="bgmusic" src="//video.duiba.com.cn/ts_video/V1905/m1.mp3" autoplay preload loop></audio>
<script>
var CFG = {
'startTime': 0.1561703100000,
......
......@@ -16,8 +16,8 @@
"entryScene": "main"
},
"webServiceUrl-": "http://10.10.93.204:7555 http://localhost:3010",
"webServiceUrl1": "",
"webServiceUrl": "http://localhost:4001"
"webServiceUrl": "",
"webServiceUrl1": "http://localhost:4001"
},
"dataCenterConfig": {
"dataCenterRoot": [
......
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